Commit 8cf4cf81 authored by Boudewijn Rempt's avatar Boudewijn Rempt

connect the brush option slider actions to a slot

BUG:78557
parent 9374485d
......@@ -195,10 +195,12 @@ KisPaintopBox::KisPaintopBox(KisView2 * view, QWidget *parent, const char * name
action = new KAction(i18n("Brush option slider 1"), this);
view->actionCollection()->addAction("brushslider1", action);
action->setDefaultWidget(m_sliderChooser[0]);
connect(action, SIGNAL(triggered()), m_sliderChooser[0], SLOT(showPopupWidget()));
action = new KAction(i18n("Brush option slider 2"), this);
view->actionCollection()->addAction("brushslider2", action);
action->setDefaultWidget(m_sliderChooser[1]);
connect(action, SIGNAL(triggered()), m_sliderChooser[1], SLOT(showPopupWidget()));
QWidget* mirrorActions = new QWidget(this);
QHBoxLayout* mirrorLayout = new QHBoxLayout(mirrorActions);
......
......@@ -75,7 +75,8 @@ public:
TWidget* getWidget(const QString& id) const {
return dynamic_cast<TWidget*>(getWidget(id));
}
public slots:
void showPopupWidget();
private:
......
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