Debugger: Enable 'Select Widget ...' only if one can add expression evaluators

Change-Id: Ie515e3d318137206f4f60021d7f154c370b83932
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Kai Koehne
2012-05-16 13:42:00 +02:00
committed by hjk
parent 616e81428d
commit 8e2d5e5d72

View File

@@ -769,7 +769,7 @@ void WatchTreeView::contextMenuEvent(QContextMenuEvent *ev)
menu.addAction(tr("Insert New Expression Evaluator")); menu.addAction(tr("Insert New Expression Evaluator"));
actInsertNewWatchItem->setEnabled(canHandleWatches && canInsertWatches); actInsertNewWatchItem->setEnabled(canHandleWatches && canInsertWatches);
QAction *actSelectWidgetToWatch = menu.addAction(tr("Select Widget to Add into Expression Evaluator")); QAction *actSelectWidgetToWatch = menu.addAction(tr("Select Widget to Add into Expression Evaluator"));
actSelectWidgetToWatch->setEnabled(canHandleWatches actSelectWidgetToWatch->setEnabled(canHandleWatches && canInsertWatches
&& engine->hasCapability(WatchWidgetsCapability)); && engine->hasCapability(WatchWidgetsCapability));
QAction *actEditTypeFormats = menu.addAction(tr("Change Global Display Formats...")); QAction *actEditTypeFormats = menu.addAction(tr("Change Global Display Formats..."));
actEditTypeFormats->setEnabled(true); actEditTypeFormats->setEnabled(true);