[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:
parent
95ff13bf61
commit
b288aa2910
1 changed files with 0 additions and 6 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue