aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-10-02 05:20:41 -0400
committerKen Moore <ken@ixsystems.com>2017-10-02 05:20:41 -0400
commit63269d970b014f2475a6906a1afeba8d7920e16e (patch)
treea2f44f3707594af74f82d9d04414a1eaa6d7711e /src-qt5/core
parentAdd a "copy" button to the QSS page for copying files to make changes. (diff)
downloadlumina-63269d970b014f2475a6906a1afeba8d7920e16e.tar.gz
lumina-63269d970b014f2475a6906a1afeba8d7920e16e.tar.bz2
lumina-63269d970b014f2475a6906a1afeba8d7920e16e.zip
Remove the "ok" button, and change the "cancel" button to "close".
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.cpp2
-rw-r--r--src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.ui2
2 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.cpp b/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.cpp
index d4544c7b..28a5e558 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.cpp
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.cpp
@@ -55,7 +55,7 @@ void MainWindow::on_buttonBox_clicked(QAbstractButton *button){
if(p) { p->writeSettings(); }
}
}
- if(id == QDialogButtonBox::Ok || id == QDialogButtonBox::Cancel){
+ if(id == QDialogButtonBox::Ok || id == QDialogButtonBox::Cancel || id== QDialogButtonBox::Close){
close();
qApp->quit();
}
diff --git a/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.ui b/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.ui
index dd676c37..0dc3245d 100644
--- a/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.ui
+++ b/src-qt5/core/lumina-theme-engine/src/lthemeengine/mainwindow.ui
@@ -293,7 +293,7 @@ Styles</string>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
- <set>QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
+ <set>QDialogButtonBox::Apply|QDialogButtonBox::Close</set>
</property>
</widget>
</item>
bgstack15