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/lib/shared/qdesigner_toolbar.cpp | |
parent | 710e94a886a2cd870debd9f01db4b4fb393f4865 (diff) | |
download | qttools-f23befda718870f3dbb8f6e005e12a251fdfd059.tar.gz |
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/lib/shared/qdesigner_toolbar.cpp')
-rw-r--r-- | src/designer/src/lib/shared/qdesigner_toolbar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/designer/src/lib/shared/qdesigner_toolbar.cpp b/src/designer/src/lib/shared/qdesigner_toolbar.cpp index b9dcbbd68..afcc3170b 100644 --- a/src/designer/src/lib/shared/qdesigner_toolbar.cpp +++ b/src/designer/src/lib/shared/qdesigner_toolbar.cpp @@ -141,7 +141,7 @@ ActionList ToolBarEventFilter::contextMenuActions(const QPoint &globalPos) QAction *newSeperatorAct = new QAction(tr("Insert Separator before '%1'").arg(action->objectName()), 0); itemData.setValue(action); newSeperatorAct->setData(itemData); - connect(newSeperatorAct, SIGNAL(triggered()), this, SLOT(slotInsertSeparator())); + connect(newSeperatorAct, &QAction::triggered, this, &ToolBarEventFilter::slotInsertSeparator); rc.push_back(newSeperatorAct); } @@ -150,7 +150,7 @@ ActionList ToolBarEventFilter::contextMenuActions(const QPoint &globalPos) QAction *newSeperatorAct = new QAction(tr("Append Separator"), 0); itemData.setValue(static_cast<QAction*>(0)); newSeperatorAct->setData(itemData); - connect(newSeperatorAct, SIGNAL(triggered()), this, SLOT(slotInsertSeparator())); + connect(newSeperatorAct, &QAction::triggered, this, &ToolBarEventFilter::slotInsertSeparator); rc.push_back(newSeperatorAct); } // Promotion @@ -162,12 +162,12 @@ ActionList ToolBarEventFilter::contextMenuActions(const QPoint &globalPos) QAction *a = new QAction(tr("Remove action '%1'").arg(action->objectName()), 0); itemData.setValue(action); a->setData(itemData); - connect(a, SIGNAL(triggered()), this, SLOT(slotRemoveSelectedAction())); + connect(a, &QAction::triggered, this, &ToolBarEventFilter::slotRemoveSelectedAction); rc.push_back(a); } QAction *remove_toolbar = new QAction(tr("Remove Toolbar '%1'").arg(m_toolBar->objectName()), 0); - connect(remove_toolbar, SIGNAL(triggered()), this, SLOT(slotRemoveToolBar())); + connect(remove_toolbar, &QAction::triggered, this, &ToolBarEventFilter::slotRemoveToolBar); rc.push_back(remove_toolbar); return rc; } |