plugins/aurorae: Set layout for config module
There is no layout by default, which causes a crash
This commit is contained in:
parent
3415d6e0b3
commit
45ad400f41
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,7 @@ void ConfigurationModule::initSvg()
|
|||
form->layout()->addWidget(label);
|
||||
form->layout()->addWidget(sizes);
|
||||
|
||||
widget()->setLayout(new QVBoxLayout);
|
||||
widget()->layout()->addWidget(form);
|
||||
|
||||
KCoreConfigSkeleton *skel = new KCoreConfigSkeleton(KSharedConfig::openConfig(QStringLiteral("auroraerc")), this);
|
||||
|
@ -108,6 +109,7 @@ void ConfigurationModule::initQml()
|
|||
QWidget *customConfigForm = loader->load(&uiFile, widget());
|
||||
translator->addContextToMonitor(customConfigForm->objectName());
|
||||
uiFile.close();
|
||||
widget()->setLayout(new QVBoxLayout);
|
||||
widget()->layout()->addWidget(customConfigForm);
|
||||
// connect the ui file with the skeleton
|
||||
addConfig(m_skeleton, customConfigForm);
|
||||
|
|
Loading…
Reference in a new issue