diff options
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) |