- QAction * action = new QAction(QIcon(":/res/pen-stamp.png"), tr(""), this);
- action->setToolTip(tr("Stamp Selected"));
- action->setStatusTip(tr("Stamp selected objects with pen attributes."));
- action->setShortcut(QKeySequence(tr("p,p")));
-// action->setCheckable(checkable);
- qtb->setDefaultAction(action);
+ stampAction->setToolTip(tr("Stamp Selected"));
+ stampAction->setStatusTip(tr("Stamp selected objects with pen attributes."));
+ stampAction->setShortcut(QKeySequence(tr("p,p")));
+ stampAction->setCheckable(true);
+ tbStamp->setDefaultAction(stampAction);
+
+ dropperAction->setToolTip(tr("Color Picker"));
+ dropperAction->setStatusTip(tr("Get pen attributes from objects."));
+ dropperAction->setShortcut(QKeySequence(tr("d,d")));
+ dropperAction->setCheckable(true);
+ tbDropper->setDefaultAction(dropperAction);