summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/orderdialog.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-06-01 16:46:21 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-07-14 10:58:03 +0000
commitf23befda718870f3dbb8f6e005e12a251fdfd059 (patch)
treee200a5acca465c75475a0ccc731307362af3f489 /src/designer/src/lib/shared/orderdialog.cpp
parent710e94a886a2cd870debd9f01db4b4fb393f4865 (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/lib/shared/orderdialog.cpp')
-rw-r--r--src/designer/src/lib/shared/orderdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/designer/src/lib/shared/orderdialog.cpp b/src/designer/src/lib/shared/orderdialog.cpp
index 48f38160f..25bae7ad8 100644
--- a/src/designer/src/lib/shared/orderdialog.cpp
+++ b/src/designer/src/lib/shared/orderdialog.cpp
@@ -58,10 +58,12 @@ OrderDialog::OrderDialog(QWidget *parent) :
m_ui->upButton->setIcon(createIconSet(QString::fromUtf8("up.png")));
m_ui->downButton->setIcon(createIconSet(QString::fromUtf8("down.png")));
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
- connect(m_ui->buttonBox->button(QDialogButtonBox::Reset), SIGNAL(clicked()), this, SLOT(slotReset()));
+ connect(m_ui->buttonBox->button(QDialogButtonBox::Reset), &QAbstractButton::clicked,
+ this, &OrderDialog::slotReset);
// Catch the remove operation of a DnD operation in QAbstractItemView::InternalMove mode to enable buttons
// Selection mode is 'contiguous' to enable DnD of groups
- connect(m_ui->pageList->model(), SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(slotEnableButtonsAfterDnD()));
+ connect(m_ui->pageList->model(), &QAbstractItemModel::rowsRemoved,
+ this, &OrderDialog::slotEnableButtonsAfterDnD);
m_ui->upButton->setEnabled(false);
m_ui->downButton->setEnabled(false);