Commit f953678e authored by Roman Gilg's avatar Roman Gilg Committed by Nicolas Fella
Browse files

Define content margins for settings app

The settings app is supposed to be used on its own. The buttons are without
any margins to the window border though (when borders are deactivated - the
default on Breeze).

Set the default layout margins to improve the look.
parent 1204da79
Pipeline #30991 passed with stage
in 10 minutes and 51 seconds
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <QApplication> #include <QApplication>
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QStyle>
#include <KCMultiDialog> #include <KCMultiDialog>
#include <KAboutData> #include <KAboutData>
...@@ -35,6 +36,13 @@ int main(int argc, char** argv) ...@@ -35,6 +36,13 @@ int main(int argc, char** argv)
KCMultiDialog* dialog = new KCMultiDialog; KCMultiDialog* dialog = new KCMultiDialog;
dialog->addModule(QStringLiteral("kcm_kdeconnect"), {parser.value(QStringLiteral("args"))}); dialog->addModule(QStringLiteral("kcm_kdeconnect"), {parser.value(QStringLiteral("args"))});
auto style = dialog->style();
dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show(); dialog->show();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment