diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2014-12-17 13:39:42 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2014-12-17 14:04:57 +0100 |
commit | 1209493113dbf8f43837ee935e705f0776aead38 (patch) | |
tree | 77410c3c389ab157f7ef419b6f24e76e5ba1796a /tests/manual/dwmfeatures | |
parent | 8a13b5fdd462ee7e064c6f6d565424de5d0a82d1 (diff) |
Use Qt 5 signals & slot syntax.
Change-Id: I548076eebc2c8f1204ef76bb4e6e09ed00352553
Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'tests/manual/dwmfeatures')
-rw-r--r-- | tests/manual/dwmfeatures/testwidget.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/tests/manual/dwmfeatures/testwidget.cpp b/tests/manual/dwmfeatures/testwidget.cpp index 78361de..29525f4 100644 --- a/tests/manual/dwmfeatures/testwidget.cpp +++ b/tests/manual/dwmfeatures/testwidget.cpp @@ -45,16 +45,21 @@ TestWidget::TestWidget(QWidget *parent) : { ui->setupUi(this); - connect(ui->btnPeekDisallow, SIGNAL(clicked()), SLOT(onDisallowPeekClicked())); - connect(ui->btnPeekExclude, SIGNAL(clicked()), SLOT(onExcludeFromPeekClicked())); - connect(ui->radioFlipDefault, SIGNAL(clicked()), SLOT(onFlip3DPolicyChanged())); - connect(ui->radioFlipAbove, SIGNAL(clicked()), SLOT(onFlip3DPolicyChanged())); - connect(ui->radioFlipBelow, SIGNAL(clicked()), SLOT(onFlip3DPolicyChanged())); - connect(ui->btnFrameReset, SIGNAL(clicked()), SLOT(onResetGlassFrameClicked())); - connect(ui->frameTop, SIGNAL(valueChanged(int)), SLOT(onGlassMarginsChanged())); - connect(ui->frameRight, SIGNAL(valueChanged(int)), SLOT(onGlassMarginsChanged())); - connect(ui->frameBottom, SIGNAL(valueChanged(int)), SLOT(onGlassMarginsChanged())); - connect(ui->frameLeft, SIGNAL(valueChanged(int)), SLOT(onGlassMarginsChanged())); + connect(ui->btnPeekDisallow, &QAbstractButton::clicked, this, &TestWidget::onDisallowPeekClicked); + connect(ui->btnPeekExclude, &QAbstractButton::clicked, this, &TestWidget::onExcludeFromPeekClicked); + connect(ui->radioFlipDefault, &QAbstractButton::clicked, this, &TestWidget::onFlip3DPolicyChanged); + connect(ui->radioFlipAbove, &QAbstractButton::clicked, this, &TestWidget::onFlip3DPolicyChanged); + connect(ui->radioFlipBelow, &QAbstractButton::clicked, this, &TestWidget::onFlip3DPolicyChanged); + connect(ui->btnFrameReset, &QAbstractButton::clicked, this, &TestWidget::onResetGlassFrameClicked); + typedef void(QSpinBox::*IntSignal)(int); + connect(ui->frameTop, static_cast<IntSignal>(&QSpinBox::valueChanged), + this, &TestWidget::onGlassMarginsChanged); + connect(ui->frameRight, static_cast<IntSignal>(&QSpinBox::valueChanged), + this, &TestWidget::onGlassMarginsChanged); + connect(ui->frameBottom, static_cast<IntSignal>(&QSpinBox::valueChanged), + this, &TestWidget::onGlassMarginsChanged); + connect(ui->frameLeft, static_cast<IntSignal>(&QSpinBox::valueChanged), + this, &TestWidget::onGlassMarginsChanged); } TestWidget::~TestWidget() |