Commit b288aa29 authored by Ismael Asensio's avatar Ismael Asensio
Browse files

[KCM] Remove extra margins on standalone settings

This makes the standalone KCM dialog consistent with the same KCM
when launched via kcmshell, systemsettings, or even other modules.

The dialog is required so it doesn't need to depend on kde-cli-tools.
parent 95ff13bf
Pipeline #143859 passed with stage
in 1 minute and 59 seconds
......@@ -41,12 +41,6 @@ int main(int argc, char** argv)
KCMultiDialog* dialog = new KCMultiDialog;
dialog->addModule(KPluginMetaData(QStringLiteral("kcm_kdeconnect")), {parser.value(QStringLiteral("args"))});
auto style = dialog->style();
dialog->setContentsMargins(style->pixelMetric(QStyle::PM_LayoutLeftMargin),
style->pixelMetric(QStyle::PM_LayoutTopMargin),
style->pixelMetric(QStyle::PM_LayoutRightMargin),
style->pixelMetric(QStyle::PM_LayoutBottomMargin));
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();
......
Supports Markdown
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