summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <[email protected]>2017-07-24 18:55:52 +0200
committerFriedrich W. H. Kossebau <[email protected]>2017-07-24 19:18:37 +0200
commitd30cd77c8956af6312adebdebc7b48423e1c351a (patch)
tree47f26cbbaefde5038922da5e5a539390992f8acc
parentd3c5572fcf34361942e782943893f6049bfab83d (diff)
Remove unneeded wrapper widget in structures settings dialog
-rw-r--r--kasten/controllers/view/structures/structview.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/kasten/controllers/view/structures/structview.cpp b/kasten/controllers/view/structures/structview.cpp
index ad3f3ae..931d688 100644
--- a/kasten/controllers/view/structures/structview.cpp
+++ b/kasten/controllers/view/structures/structview.cpp
@@ -153,16 +153,12 @@ void StructView::openSettingsDlg()
KConfigDialog* dialog = new KConfigDialog(this, QStringLiteral("Structures Tool Settings"),
StructViewPreferences::self());
StructViewDisplaySettingsWidget* displaySettings = new StructViewDisplaySettingsWidget();
- QWidget* structSelectionWrapper = new QWidget();
StructuresManagerView* structureSettings = new StructuresManagerView(mTool, this);
KPageWidgetItem* displ = dialog->addPage(displaySettings, i18n("Value Display"),
QStringLiteral("configure"));
- QHBoxLayout* hbox = new QHBoxLayout();
- structSelectionWrapper->setLayout(hbox);
- hbox->addWidget(structureSettings);
Q_ASSERT(structureSettings->objectName() == QLatin1String("kcfg_LoadedStructures"));
- dialog->addPage(structSelectionWrapper, i18n("Structures management"),
- QStringLiteral("preferences-plugin"));
+ dialog->addPage(structureSettings, i18n("Structures management"),
+ QStringLiteral("preferences-plugin"));
//User edited the configuration - update your local copies of the configuration data
connect(dialog, &KConfigDialog::settingsChanged, mTool, &StructTool::setSelectedStructuresInView);