Skip to content
Snippets Groups Projects
Commit 00917e7b authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

format ActionManager

parent d6a8295d
No related branches found
No related tags found
1 merge request!2452cleanup autosave, style sheet & palette; split save some files; dissolve GUI/Support
......@@ -133,7 +133,7 @@ void ActionManager::createMenus()
{
auto* action = new QWidgetAction(m_settings_menu);
action->setText("&Enable autosave");
action->setText("&Enable autosave");
auto* box = new QCheckBox("&Enable autosave", m_settings_menu);
action->setDefaultWidget(box);
action->setToolTip("Project will be saved periodically in project's autosave directory.\n"
......@@ -146,10 +146,10 @@ void ActionManager::createMenus()
{
auto* action = new QWidgetAction(m_settings_menu);
action->setToolTip("Color gradient for 2d plots");
auto* w = new QWidget;
auto* l = new QHBoxLayout(w);
l->addWidget(new QLabel("2D plot color scheme"));
action->setToolTip("Color gradient for 2d plots");
auto* w = new QWidget;
auto* l = new QHBoxLayout(w);
l->addWidget(new QLabel("2D plot color scheme"));
QComboBox* box =
GUI::Util::createComboBox([this] { return *gApp->color_gradient_combo; },
[this](const QString& s) {
......@@ -157,7 +157,7 @@ void ActionManager::createMenus()
emit gApp->gradientChanged();
},
false);
l->addWidget(box);
l->addWidget(box);
action->setDefaultWidget(w);
m_settings_menu->addAction(action);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment