From 7295d50591be94a79bfd4c2ac5e159091fb2489c Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 30 May 2011 14:00:29 +0200 Subject: [PATCH] debugger: less system specific ui Change-Id: I6d453a61e56ce52b682a90f03f07330b9a6e24a7 Reviewed-on: http://codereview.qt.nokia.com/225 Reviewed-by: Qt Sanity Bot Reviewed-by: hjk --- src/plugins/debugger/moduleswindow.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/debugger/moduleswindow.cpp b/src/plugins/debugger/moduleswindow.cpp index d5bf0a13294..ee23318b789 100644 --- a/src/plugins/debugger/moduleswindow.cpp +++ b/src/plugins/debugger/moduleswindow.cpp @@ -134,10 +134,8 @@ void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev) actEditFile->setEnabled(false); actShowModuleSymbols = new QAction(tr("Show Symbols"), &menu); actShowModuleSymbols->setEnabled(false); -#ifdef Q_OS_WIN actShowDependencies = new QAction(tr("Show Dependencies"), &menu); actShowDependencies->setEnabled(false); -#endif } else { actLoadSymbolsForModule = new QAction(tr("Load Symbols for Module \"%1\"").arg(name), &menu); @@ -149,16 +147,17 @@ void ModulesWindow::contextMenuEvent(QContextMenuEvent *ev) = new QAction(tr("Show Symbols in File \"%1\"").arg(name), &menu); actShowModuleSymbols ->setEnabled(capabilities & ShowModuleSymbolsCapability); -#ifdef Q_OS_WIN actShowDependencies = new QAction(tr("Show Dependencies of \"%1\"").arg(name), &menu); actShowDependencies->setEnabled(!fileName.isEmpty()); +#ifndef Q_OS_WIN + // FIXME: Dependencies only available on Windows, when "depends" is installed. + actShowDependencies->setEnabled(false); #endif } menu.addAction(actUpdateModuleList); //menu.addAction(actShowModuleSources); // FIXME - if (actShowDependencies) - menu.addAction(actShowDependencies); + menu.addAction(actShowDependencies); menu.addAction(actLoadSymbolsForAllModules); menu.addAction(actExamineAllModules); menu.addAction(actLoadSymbolsForModule);