From 01058d18769ce813a853ce446ff924030bd50bd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Thu, 17 Jun 2010 22:02:41 +0200 Subject: [PATCH] Make tile and object context menu options a bit more specific --- src/mapobjectitem.cpp | 7 ++++--- src/tilesetview.cpp | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mapobjectitem.cpp b/src/mapobjectitem.cpp index e4520cea76..a8dbe5b9f1 100644 --- a/src/mapobjectitem.cpp +++ b/src/mapobjectitem.cpp @@ -262,10 +262,11 @@ void MapObjectItem::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) QIcon dupIcon(QLatin1String(":images/16x16/stock-duplicate-16.png")); QIcon delIcon(QLatin1String(":images/16x16/edit-delete.png")); QIcon propIcon(QLatin1String(":images/16x16/document-properties.png")); - QAction *dupAction = menu.addAction(dupIcon, tr("&Duplicate")); - QAction *removeAction = menu.addAction(delIcon, tr("&Remove")); + QAction *dupAction = menu.addAction(dupIcon, tr("&Duplicate Object")); + QAction *removeAction = menu.addAction(delIcon, tr("&Remove Object")); menu.addSeparator(); - QAction *propertiesAction = menu.addAction(propIcon, tr("&Properties...")); + QAction *propertiesAction = menu.addAction(propIcon, + tr("Object &Properties...")); Utils::setThemeIcon(removeAction, "edit-delete"); Utils::setThemeIcon(propertiesAction, "document-properties"); diff --git a/src/tilesetview.cpp b/src/tilesetview.cpp index 3a62d3c88d..4646ad40ba 100644 --- a/src/tilesetview.cpp +++ b/src/tilesetview.cpp @@ -161,7 +161,8 @@ void TilesetView::contextMenuEvent(QContextMenuEvent *event) QMenu menu; QIcon propIcon(QLatin1String(":images/16x16/document-properties.png")); - QAction *tileProperties = menu.addAction(propIcon, tr("Properties...")); + QAction *tileProperties = menu.addAction(propIcon, + tr("Tile &Properties...")); // Disable this action when it's an external tileset tileProperties->setEnabled(m->tileset()->fileName().isEmpty());