void PencilTool::setupActions() { k->cursor = QCursor(kAppProp->themeDir() + "cursors/pencil.png", 0, 15); TAction *pencil = new TAction(QPixmap(kAppProp->themeDir() + "icons/pencil.png"), tr("Pencil"), this); pencil->setShortcut(QKeySequence(tr("P"))); pencil->setToolTip(tr("Pencil") + " - " + "P"); pencil->setCursor(k->cursor); k->actions.insert(tr("Pencil"), pencil); }
void NodesTool::setupActions() { k->activeSelection = false; TAction *nodes = new TAction(QPixmap(kAppProp->themeDir() + "icons/nodes.png"), tr("Nodes Selection"), this); nodes->setShortcut(QKeySequence(tr("N"))); nodes->setToolTip(tr("Nodes Selection") + " - " + "N"); k->actions.insert(tr("Nodes Selection"), nodes); }