diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-06-01 16:46:21 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-07-14 10:58:03 +0000 |
commit | f23befda718870f3dbb8f6e005e12a251fdfd059 (patch) | |
tree | e200a5acca465c75475a0ccc731307362af3f489 /src/designer/src/components/taskmenu/itemlisteditor.cpp | |
parent | 710e94a886a2cd870debd9f01db4b4fb393f4865 (diff) |
Port Qt Designer to Qt 5 signals & slot connection syntax.
Use Qt 5 signals & slot connection with exception of private
slots and tool classes from the shared directory.
Change-Id: I2bf4bfbdff709d15c8ee4ae3de3039bf3d210d6a
Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
Diffstat (limited to 'src/designer/src/components/taskmenu/itemlisteditor.cpp')
-rw-r--r-- | src/designer/src/components/taskmenu/itemlisteditor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/designer/src/components/taskmenu/itemlisteditor.cpp b/src/designer/src/components/taskmenu/itemlisteditor.cpp index febc52401..92738badd 100644 --- a/src/designer/src/components/taskmenu/itemlisteditor.cpp +++ b/src/designer/src/components/taskmenu/itemlisteditor.cpp @@ -84,11 +84,11 @@ AbstractItemEditor::AbstractItemEditor(QDesignerFormWindowInterface *form, QWidg m_propertyBrowser->setFactoryForManager((QtVariantPropertyManager *)m_propertyManager, m_editorFactory); - connect(m_editorFactory, SIGNAL(resetProperty(QtProperty*)), - SLOT(resetProperty(QtProperty*))); - connect(m_propertyManager, SIGNAL(valueChanged(QtProperty*,QVariant,bool)), - SLOT(propertyChanged(QtProperty*))); - connect(iconCache(), SIGNAL(reloaded()), this, SLOT(cacheReloaded())); + connect(m_editorFactory, &DesignerEditorFactory::resetProperty, + this, &AbstractItemEditor::resetProperty); + connect(m_propertyManager, &DesignerPropertyManager::valueChanged, + this, &AbstractItemEditor::propertyChanged); + connect(iconCache(), &DesignerIconCache::reloaded, this, &AbstractItemEditor::cacheReloaded); } AbstractItemEditor::~AbstractItemEditor() @@ -285,8 +285,8 @@ ItemListEditor::ItemListEditor(QDesignerFormWindowInterface *form, QWidget *pare ui.setupUi(this); injectPropertyBrowser(this, ui.widget); - connect(ui.showPropertiesButton, SIGNAL(clicked()), - this, SLOT(togglePropertyBrowser())); + connect(ui.showPropertiesButton, &QAbstractButton::clicked, + this, &ItemListEditor::togglePropertyBrowser); setPropertyBrowserVisible(false); QIcon upIcon = createIconSet(QString::fromUtf8("up.png")); @@ -298,7 +298,7 @@ ItemListEditor::ItemListEditor(QDesignerFormWindowInterface *form, QWidget *pare ui.newListItemButton->setIcon(plusIcon); ui.deleteListItemButton->setIcon(minusIcon); - connect(iconCache(), SIGNAL(reloaded()), this, SLOT(cacheReloaded())); + connect(iconCache(), &DesignerIconCache::reloaded, this, &AbstractItemEditor::cacheReloaded); } void ItemListEditor::setupEditor(QWidget *object, PropertyDefinition *propList) |