Commit c2bdf290 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Refactor NavigatorWidget::createToolBarWidgets

Change-Id: I92003bda65077a5f1f15e34e3aec46edac852c56
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 0f555828
......@@ -81,24 +81,24 @@ QList<QToolButton *> NavigatorWidget::createToolBarWidgets()
{
QList<QToolButton *> buttons;
buttons << new QToolButton();
buttons.append(new QToolButton());
buttons.last()->setIcon(QIcon(":/navigator/icon/arrowleft.png"));
buttons.last()->setToolTip(tr("Become last sibling of parent (CTRL + Left)."));
buttons.last()->setShortcut(QKeySequence(Qt::Key_Left | Qt::CTRL));
connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(leftButtonClicked()));
buttons << new QToolButton();
buttons.append(new QToolButton());
buttons.last()->setIcon(QIcon(":/navigator/icon/arrowright.png"));
buttons.last()->setToolTip(tr("Become child of last sibling (CTRL + Right)."));
buttons.last()->setShortcut(QKeySequence(Qt::Key_Right | Qt::CTRL));
connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(rightButtonClicked()));
buttons << new QToolButton();
buttons.append(new QToolButton());
buttons.last()->setIcon(QIcon(":/navigator/icon/arrowdown.png"));
buttons.last()->setToolTip(tr("Move down (CTRL + Down)."));
buttons.last()->setShortcut(QKeySequence(Qt::Key_Down | Qt::CTRL));
connect(buttons.last(), SIGNAL(clicked()), this, SIGNAL(downButtonClicked()));
buttons << new QToolButton();
buttons.append(new QToolButton());
buttons.last()->setIcon(QIcon(":/navigator/icon/arrowup.png"));
buttons.last()->setToolTip(tr("Move up (CTRL + Up)."));
buttons.last()->setShortcut(QKeySequence(Qt::Key_Up | Qt::CTRL));
......
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