Exemple #1
0
void PencilTool::setupActions()
{
    TAction *pencil = new TAction(QPixmap(kAppProp->themeDir() + "icons/pencil.png"), tr("Pencil"), this);
    pencil->setShortcut(QKeySequence(tr("P")));
    k->cursor = QCursor(kAppProp->themeDir() + "cursors/pencil.png", 0, 16);
    pencil->setCursor(k->cursor);

    k->actions.insert(tr("Pencil"), pencil);
}
Exemple #2
0
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);
}