┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/viewmodes/viewsettingstab.cpp
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2019-05-05 17:20:44 +0200
committerElvis Angelaccio <[email protected]>2019-05-05 17:53:29 +0200
commit9d11e5d4b40feac2272c2a58c714c4902eb1b6e5 (patch)
treef8f7d4a5080aa26014199ee4cc99ba431c32686a /src/settings/viewmodes/viewsettingstab.cpp
parent957a6f4f31d6a50682cb3ac16447dc72498afea9 (diff)
Get rid of ugly static_cast usages in connect() calls
Diffstat (limited to 'src/settings/viewmodes/viewsettingstab.cpp')
-rw-r--r--src/settings/viewmodes/viewsettingstab.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings/viewmodes/viewsettingstab.cpp b/src/settings/viewmodes/viewsettingstab.cpp
index 925a982d9..06b0b8cf5 100644
--- a/src/settings/viewmodes/viewsettingstab.cpp
+++ b/src/settings/viewmodes/viewsettingstab.cpp
@@ -120,11 +120,11 @@ ViewSettingsTab::ViewSettingsTab(Mode mode, QWidget* parent) :
switch (m_mode) {
case IconsMode:
- connect(m_widthBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &ViewSettingsTab::changed);
- connect(m_maxLinesBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &ViewSettingsTab::changed);
+ connect(m_widthBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &ViewSettingsTab::changed);
+ connect(m_maxLinesBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &ViewSettingsTab::changed);
break;
case CompactMode:
- connect(m_widthBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &ViewSettingsTab::changed);
+ connect(m_widthBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &ViewSettingsTab::changed);
break;
case DetailsMode:
connect(m_expandableFolders, &QCheckBox::toggled, this, &ViewSettingsTab::changed);