summaryrefslogtreecommitdiffstats
path: root/src/designer/src/components/formeditor/templateoptionspage.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/components/formeditor/templateoptionspage.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/components/formeditor/templateoptionspage.cpp')
-rw-r--r--src/designer/src/components/formeditor/templateoptionspage.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/designer/src/components/formeditor/templateoptionspage.cpp b/src/designer/src/components/formeditor/templateoptionspage.cpp
index d5e8e1714..90892a995 100644
--- a/src/designer/src/components/formeditor/templateoptionspage.cpp
+++ b/src/designer/src/components/formeditor/templateoptionspage.cpp
@@ -57,10 +57,12 @@ TemplateOptionsWidget::TemplateOptionsWidget(QDesignerFormEditorInterface *core,
m_ui->m_removeTemplatePathButton->setIcon(
qdesigner_internal::createIconSet(QString::fromUtf8("minus.png")));
- connect(m_ui->m_templatePathListWidget, SIGNAL(itemSelectionChanged()),
- this, SLOT(templatePathSelectionChanged()));
- connect(m_ui->m_addTemplatePathButton, SIGNAL(clicked()), this, SLOT(addTemplatePath()));
- connect(m_ui->m_removeTemplatePathButton, SIGNAL(clicked()), this, SLOT(removeTemplatePath()));
+ connect(m_ui->m_templatePathListWidget, &QListWidget::itemSelectionChanged,
+ this, &TemplateOptionsWidget::templatePathSelectionChanged);
+ connect(m_ui->m_addTemplatePathButton, &QAbstractButton::clicked,
+ this, &TemplateOptionsWidget::addTemplatePath);
+ connect(m_ui->m_removeTemplatePathButton, &QAbstractButton::clicked,
+ this, &TemplateOptionsWidget::removeTemplatePath);
}
TemplateOptionsWidget::~TemplateOptionsWidget()