Skip to content

Commit

Permalink
Make tile and object context menu options a bit more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn committed Jun 17, 2010
1 parent 0eddc0e commit 01058d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/mapobjectitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
3 changes: 2 additions & 1 deletion src/tilesetview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 01058d1

Please sign in to comment.