Commit 9717348d authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau

Merge branch 'Applications/17.08'

parents 87b0d9f7 0a7e18e5
......@@ -153,21 +153,17 @@ 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);
#pragma message("TODO: kconfig_compiler signals work now, use those signals and not the generic KConfigDialog::settingsChanged")
// TODO: kconfig_compiler signals work now, use those signals and not the generic KConfigDialog::settingsChanged
dialog->setCurrentPage(displ);
dialog->show();
}
......
Markdown is supported
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