summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2016-06-21 06:48:32 +0200
committerMontel Laurent <[email protected]>2016-06-21 06:48:32 +0200
commite7ab62a3f1d94eafe1d18ab308781ec90182faaf (patch)
tree784f37085e8c9b4c9e947ec1ca71dea54b7e9f3b
parentb15f1604fc5e25675fe3940d2e96ca225c82ce44 (diff)
const'ify
-rw-r--r--src/configurecustomsettingdialog.cpp2
-rw-r--r--src/configurecustomsettingdialog.h2
-rw-r--r--src/configurecustomsettingwidget.cpp2
-rw-r--r--src/configurecustomsettingwidget.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/configurecustomsettingdialog.cpp b/src/configurecustomsettingdialog.cpp
index 2cde5da..a5fcac1 100644
--- a/src/configurecustomsettingdialog.cpp
+++ b/src/configurecustomsettingdialog.cpp
@@ -59,7 +59,7 @@ void ConfigureCustomSettingDialog::setRule(const QString &rule)
mCustomSettingWidget->setRule(rule);
}
-QString ConfigureCustomSettingDialog::rule()
+QString ConfigureCustomSettingDialog::rule() const
{
return mCustomSettingWidget->rule();
}
diff --git a/src/configurecustomsettingdialog.h b/src/configurecustomsettingdialog.h
index e1ea5f3..6d71d59 100644
--- a/src/configurecustomsettingdialog.h
+++ b/src/configurecustomsettingdialog.h
@@ -31,7 +31,7 @@ public:
explicit ConfigureCustomSettingDialog(QWidget *parent = Q_NULLPTR);
~ConfigureCustomSettingDialog();
void setRule(const QString &rule);
- QString rule();
+ QString rule() const;
private:
ConfigureCustomSettingWidget *mCustomSettingWidget;
};
diff --git a/src/configurecustomsettingwidget.cpp b/src/configurecustomsettingwidget.cpp
index 700a348..71d3301 100644
--- a/src/configurecustomsettingwidget.cpp
+++ b/src/configurecustomsettingwidget.cpp
@@ -81,7 +81,7 @@ void ConfigureCustomSettingWidget::setRule(const QString &rule)
#endif
}
-QString ConfigureCustomSettingWidget::rule()
+QString ConfigureCustomSettingWidget::rule() const
{
QString ruleStr = mCategoryLineEdit->text().trimmed();
#if 0 //FIXME
diff --git a/src/configurecustomsettingwidget.h b/src/configurecustomsettingwidget.h
index 20c7233..42ae8b2 100644
--- a/src/configurecustomsettingwidget.h
+++ b/src/configurecustomsettingwidget.h
@@ -32,7 +32,7 @@ public:
explicit ConfigureCustomSettingWidget(QWidget *parent = Q_NULLPTR);
~ConfigureCustomSettingWidget();
- QString rule();
+ QString rule() const;
void setRule(const QString &rule);
Q_SIGNALS: