26 : QPushButton(parent), d(new
Private)
28 QWidget *popup =
new QWidget();
30 d->
ui =
new Ui::KisWheelInputEditor;
31 d->
ui->setupUi(popup);
37 QWidgetAction *action =
new QWidgetAction(
this);
38 action->setDefaultWidget(popup);
40 QMenu *menu =
new QMenu(
this);
41 menu->addAction(action);
44 QTimer::singleShot(0,
this, SLOT(showMenu()));
48 connect(
d->
ui->clearWheelButton, SIGNAL(clicked(
bool)),
d->
ui->wheelButton, SLOT(clear()));
49 connect(
d->
ui->clearModifiersButton, SIGNAL(clicked(
bool)),
d->
ui->modifiersButton, SLOT(clear()));