summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configurationdialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/configurationdialog.cpp b/configurationdialog.cpp
index 9f49e8e..df7e2fb 100644
--- a/configurationdialog.cpp
+++ b/configurationdialog.cpp
@@ -352,7 +352,7 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S
colorGrid->addWidget(favoriteColorBtn, 7, 2);
mAlternateColors = new QCheckBox(tr("Use alternating row colors"));
mAlternateColors->setTristate(false);
- connect(mAlternateColors, &QCheckBox::stateChanged, this, &ConfigurationDialog::alternateColorsChanged);
+ connect(mAlternateColors, &QCheckBox::checkStateChanged, this, &ConfigurationDialog::alternateColorsChanged);
colorGrid->addWidget(mAlternateColors, 8, 1, 1, 2, Qt::AlignLeft);
colorsWidget->setLayout(colorGrid);
@@ -368,7 +368,7 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S
pvGrid->addWidget(mPVBgButton, 0, 2);
mPVGradient = new QCheckBox(tr("Use random gradient as background"));
mPVGradient->setTristate(false);
- connect(mPVGradient, &QCheckBox::stateChanged, this, &ConfigurationDialog::randomGradientChanged);
+ connect(mPVGradient, &QCheckBox::checkStateChanged, this, &ConfigurationDialog::randomGradientChanged);
pvGrid->addWidget(mPVGradient, 1, 1, 1, 2, Qt::AlignLeft);
QGroupBox *treeGB = new QGroupBox(tr("Treeview colors"));
@@ -588,7 +588,7 @@ bool ConfigurationDialog::checkDvdPath(){
continue;
}
QStringList options = fsParts.at(3).split(',');
- for(const QString &opt : options){
+ for(const QString &opt : std::as_const(options)){
if(opt.toLower().trimmed() == "user"){
ok = true;
break;