diff options
author | lbartoletti <l.bartoletti@free.fr> | 2019-10-28 21:31:51 +0100 |
---|---|---|
committer | lbartoletti <l.bartoletti@free.fr> | 2019-10-28 21:31:51 +0100 |
commit | 72bfb7175c19ead9cf83fcda5c86d245c3292f20 (patch) | |
tree | df98e3bf647ee7f86786a91793933840a7c80f00 /src-qt5/core/lumina-theme-engine/src | |
parent | fix setTabStopWidth (diff) | |
download | lumina-72bfb7175c19ead9cf83fcda5c86d245c3292f20.tar.gz lumina-72bfb7175c19ead9cf83fcda5c86d245c3292f20.tar.bz2 lumina-72bfb7175c19ead9cf83fcda5c86d245c3292f20.zip |
remove QSignalMapper. Use lambda func instead.
Diffstat (limited to 'src-qt5/core/lumina-theme-engine/src')
-rw-r--r-- | src-qt5/core/lumina-theme-engine/src/lthemeengine/fontspage.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine/fontspage.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine/fontspage.cpp index 8d1ed1ab..15a0ef3d 100644 --- a/src-qt5/core/lumina-theme-engine/src/lthemeengine/fontspage.cpp +++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine/fontspage.cpp @@ -1,4 +1,3 @@ -#include <QSignalMapper> #include <QMessageBox> #include <QSettings> #include <QApplication> @@ -13,12 +12,8 @@ FontsPage::FontsPage(QWidget *parent) : TabPage(parent), m_ui(new Ui::FontsPage){ m_ui->setupUi(this); - QSignalMapper *mapper = new QSignalMapper(this); - mapper->setMapping(m_ui->changeGeneralFontButton, m_ui->generalFontLabel); - mapper->setMapping(m_ui->changeFixedWidthFontButton, m_ui->fixedFontLabel); - connect(m_ui->changeGeneralFontButton, SIGNAL(clicked()), mapper, SLOT(map())); - connect(m_ui->changeFixedWidthFontButton, SIGNAL(clicked()), mapper, SLOT(map())); - connect(mapper, SIGNAL(mapped(QWidget*)), SLOT(onFontChangeRequested(QWidget*))); + connect(m_ui->changeGeneralFontButton, &QToolButton::clicked, [this](){onFontChangeRequested(m_ui->generalFontLabel);}); + connect(m_ui->changeFixedWidthFontButton, &QToolButton::clicked, [this](){onFontChangeRequested(m_ui->fixedFontLabel);}); readSettings(); //icons |