diff options
author | hjk <[email protected]> | 2009-05-05 10:14:35 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2009-05-05 10:15:09 +0200 |
commit | 307470b21fba51db8cf4428920ff553b435122aa (patch) | |
tree | 1970eeebcb24ff37f24d42dd3c42785e8a235d7f /src/plugins/debugger/sourcefileswindow.cpp | |
parent | eb63bebc3ee0c8ec958e4e1b628aca4e2f388220 (diff) |
debugger: make striped background of debug views optional
Diffstat (limited to 'src/plugins/debugger/sourcefileswindow.cpp')
-rw-r--r-- | src/plugins/debugger/sourcefileswindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/debugger/sourcefileswindow.cpp b/src/plugins/debugger/sourcefileswindow.cpp index 6f36a8f1f32..f22c3317451 100644 --- a/src/plugins/debugger/sourcefileswindow.cpp +++ b/src/plugins/debugger/sourcefileswindow.cpp @@ -165,6 +165,7 @@ SourceFilesWindow::SourceFilesWindow(QWidget *parent) : QTreeView(parent) { m_model = new SourceFilesModel(this); + QAction *act = theDebuggerAction(UseAlternatingRowColors); QSortFilterProxyModel *proxyModel = new QSortFilterProxyModel(this); proxyModel->setSourceModel(m_model); @@ -172,13 +173,15 @@ SourceFilesWindow::SourceFilesWindow(QWidget *parent) setWindowTitle(tr("Source Files")); setSortingEnabled(true); - setAlternatingRowColors(true); + setAlternatingRowColors(act->isChecked()); setRootIsDecorated(false); setIconSize(QSize(10, 10)); //header()->setDefaultAlignment(Qt::AlignLeft); connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(sourceFileActivated(QModelIndex))); + connect(act, SIGNAL(toggled(bool)), + this, SLOT(setAlternatingRowColorsHelper(bool))); } void SourceFilesWindow::sourceFileActivated(const QModelIndex &index) |