summaryrefslogtreecommitdiffstats
path: root/src/designer/src/components/formeditor/dpi_chooser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/components/formeditor/dpi_chooser.cpp')
-rw-r--r--src/designer/src/components/formeditor/dpi_chooser.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/designer/src/components/formeditor/dpi_chooser.cpp b/src/designer/src/components/formeditor/dpi_chooser.cpp
index 915623f40..5e2f9f605 100644
--- a/src/designer/src/components/formeditor/dpi_chooser.cpp
+++ b/src/designer/src/components/formeditor/dpi_chooser.cpp
@@ -78,11 +78,9 @@ DPI_Chooser::DPI_Chooser(QWidget *parent) :
m_dpiXSpinBox(new QSpinBox),
m_dpiYSpinBox(new QSpinBox)
{
- typedef void (QComboBox::*QComboIntSignal)(int);
-
// Predefined settings: System
DeviceProfile::systemResolution(&(m_systemEntry->dpiX), &(m_systemEntry->dpiY));
- m_systemEntry->description = 0;
+ m_systemEntry->description = nullptr;
const struct DPI_Entry *systemEntry = m_systemEntry;
//: System resolution
m_predefinedCombo->addItem(tr("System (%1 x %2)").arg(m_systemEntry->dpiX).arg(m_systemEntry->dpiY), QVariant::fromValue(systemEntry));
@@ -96,7 +94,7 @@ DPI_Chooser::DPI_Chooser(QWidget *parent) :
setFocusProxy(m_predefinedCombo);
m_predefinedCombo->setEditable(false);
m_predefinedCombo->setCurrentIndex(0);
- connect(m_predefinedCombo, static_cast<QComboIntSignal>(&QComboBox::currentIndexChanged),
+ connect(m_predefinedCombo, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &DPI_Chooser::syncSpinBoxes);
// top row with predefined settings
QVBoxLayout *vBoxLayout = new QVBoxLayout;