[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.
This commit is contained in:
Ismael Asensio 2022-02-28 21:34:56 +01:00
parent 95ff13bf61
commit b288aa2910

View file

@ -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();