Skip to content

Commit

Permalink
Fixed tool tips on flipping and rotating stamp actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Jun 27, 2017
1 parent cf1ea29 commit 1679f3f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/tiled/stampactions.cpp
Expand Up @@ -48,23 +48,17 @@ StampActions::StampActions(QObject *parent) : QObject(parent)

mFlipHorizontal = new QAction(this);
mFlipHorizontal->setIcon(flipHorizontalIcon);
mFlipHorizontal->setToolTip(tr("Flip Horizontally"));
mFlipHorizontal->setShortcut(QKeySequence(tr("X")));

mFlipVertical = new QAction(this);
mFlipVertical->setIcon(flipVerticalIcon);
mFlipHorizontal->setToolTip(tr("Flip Vertically"));
mFlipVertical->setShortcut(QKeySequence(tr("Y")));

mRotateLeft = new QAction(this);
mRotateLeft->setIcon(rotateLeftIcon);
mRotateLeft->setToolTip(tr("Rotate Left"));
mRotateLeft->setShortcut(QKeySequence(tr("Shift+Z")));

mRotateRight = new QAction(this);
mRotateRight->setIcon(rotateRightIcon);
mRotateLeft->setToolTip(tr("Rotate Right"));
mRotateRight->setShortcut(QKeySequence(tr("Z")));

languageChanged();
}

StampActions::~StampActions()
Expand All @@ -75,9 +69,9 @@ void StampActions::languageChanged()
{
mRandom->setToolTip(tr("Random Mode"));
mFlipHorizontal->setToolTip(tr("Flip Horizontally"));
mFlipHorizontal->setToolTip(tr("Flip Vertically"));
mFlipVertical->setToolTip(tr("Flip Vertically"));
mRotateLeft->setToolTip(tr("Rotate Left"));
mRotateLeft->setToolTip(tr("Rotate Right"));
mRotateRight->setToolTip(tr("Rotate Right"));

mRandom->setShortcut(QKeySequence(tr("D")));
mFlipHorizontal->setShortcut(QKeySequence(tr("X")));
Expand Down

0 comments on commit 1679f3f

Please sign in to comment.