Commit 81453d3f authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix propertizing Color History and Common Colors actions

BUG:348033
parent e1d0a836
...@@ -93,15 +93,10 @@ KisColorSelectorNgDockerWidget::KisColorSelectorNgDockerWidget(QWidget *parent) ...@@ -93,15 +93,10 @@ KisColorSelectorNgDockerWidget::KisColorSelectorNgDockerWidget(QWidget *parent)
emit settingsChanged(); emit settingsChanged();
m_colorHistoryAction = new QAction("Show color history", this); m_colorHistoryAction = KisActionRegistry::instance()->makeQAction("show_color_history", this);
m_colorHistoryAction->setShortcut(QKeySequence(tr("H")));
// m_colorHistoryAction = KisActionRegistry::instance()->makeQAction("show_color_history", this);
connect(m_colorHistoryAction, SIGNAL(triggered()), m_colorHistoryWidget, SLOT(showPopup()), Qt::UniqueConnection); connect(m_colorHistoryAction, SIGNAL(triggered()), m_colorHistoryWidget, SLOT(showPopup()), Qt::UniqueConnection);
m_commonColorsAction = KisActionRegistry::instance()->makeQAction("show_common_colors", this);
m_commonColorsAction = new QAction("Show common colors", this);
m_commonColorsAction->setShortcut(QKeySequence(tr("U")));
// m_colorHistoryAction = KisActionRegistry::instance()->makeQAction("show_common_colors", this);
connect(m_commonColorsAction, SIGNAL(triggered()), m_commonColorsWidget, SLOT(showPopup()), Qt::UniqueConnection); connect(m_commonColorsAction, SIGNAL(triggered()), m_commonColorsWidget, SLOT(showPopup()), Qt::UniqueConnection);
} }
......
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