aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2014-06-06 00:53:31 +0200
committerhjk <[email protected]>2014-06-23 11:24:37 +0200
commite61119feb9a88f9bd5d6a2e3debdd09ad85d1cb5 (patch)
treec3cfd07c8dfa6a6c5df950d0c79a67d500c58071 /src/plugins/debugger/debuggerplugin.cpp
parent0f17cb8046ae65d75c57309fe961fb341e7261d8 (diff)
Debugger: Some view resizeing fine-tuning
Change-Id: I5ad041e658089ed3f965cf5fb77fda00571389b9 Reviewed-by: Orgad Shaneh <[email protected]> Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index 303a1af21ee..e966ebd7e77 100644
--- a/src/plugins/debugger/debuggerplugin.cpp
+++ b/src/plugins/debugger/debuggerplugin.cpp
@@ -530,17 +530,20 @@ public:
//
///////////////////////////////////////////////////////////////////////
-static QWidget *addSearch(BaseTreeView *treeView, const QString &title, const char *objectName)
+static QWidget *addSearch(BaseTreeView *treeView, const QString &title,
+ const char *objectName, bool adjustColumns = false)
{
QAction *act = debuggerCore()->action(UseAlternatingRowColors);
treeView->setAlternatingRowColors(act->isChecked());
QObject::connect(act, SIGNAL(toggled(bool)),
treeView, SLOT(setAlternatingRowColorsHelper(bool)));
- act = debuggerCore()->action(AlwaysAdjustColumnWidths);
- treeView->setAlwaysAdjustColumns(act->isChecked());
- QObject::connect(act, SIGNAL(toggled(bool)),
+ if (adjustColumns) {
+ act = debuggerCore()->action(AlwaysAdjustColumnWidths);
+ treeView->setAlwaysAdjustColumns(act->isChecked());
+ QObject::connect(act, SIGNAL(toggled(bool)),
treeView, SLOT(setAlwaysAdjustColumns(bool)));
+ }
QWidget *widget = TreeViewFind::createSearchableWrapper(treeView);
widget->setObjectName(QLatin1String(objectName));
@@ -2817,16 +2820,16 @@ void DebuggerPluginPrivate::extensionsInitialized()
m_threadsWindow = addSearch(m_threadsView, tr("Threads"), DOCKWIDGET_THREADS);
m_returnView = new WatchTreeView(ReturnType);
- m_returnWindow = addSearch(m_returnView, tr("Locals and Expressions"), "CppDebugReturn");
+ m_returnWindow = addSearch(m_returnView, tr("Locals and Expressions"), "CppDebugReturn", true);
m_localsView = new WatchTreeView(LocalsType);
- m_localsWindow = addSearch(m_localsView, tr("Locals and Expressions"), "CppDebugLocals");
+ m_localsWindow = addSearch(m_localsView, tr("Locals and Expressions"), "CppDebugLocals", true);
m_watchersView = new WatchTreeView(WatchersType);
- m_watchersWindow = addSearch(m_watchersView, tr("Locals and Expressions"), "CppDebugWatchers");
+ m_watchersWindow = addSearch(m_watchersView, tr("Locals and Expressions"), "CppDebugWatchers", true);
m_inspectorView = new WatchTreeView(InspectType);
- m_inspectorWindow = addSearch(m_inspectorView, tr("Locals and Expressions"), "Inspector");
+ m_inspectorWindow = addSearch(m_inspectorView, tr("Locals and Expressions"), "Inspector", true);
// Snapshot
m_snapshotHandler = new SnapshotHandler;