# HG changeset patch # User Jacob Dawid # Date 1302769091 -7200 # Node ID 6b3dae8b4061df5e832547420a2de3fb72f525d0 # Parent 46cbccfb46c1a41127e6418719cc17591d83d935 Set alternating row colors. diff --git a/gui//src/FilesDockWidget.cpp b/gui//src/FilesDockWidget.cpp --- a/gui//src/FilesDockWidget.cpp +++ b/gui//src/FilesDockWidget.cpp @@ -38,6 +38,8 @@ m_fileTreeView->setModel(m_fileSystemModel); m_fileTreeView->setRootIndex(rootPathIndex); m_fileTreeView->setSortingEnabled(true); + m_fileTreeView->setAlternatingRowColors(true); + m_fileTreeView->setAnimated(true); connect(m_fileTreeView, SIGNAL(doubleClicked(const QModelIndex &)), this, SLOT(itemDoubleClicked(const QModelIndex &))); diff --git a/gui//src/HistoryDockWidget.cpp b/gui//src/HistoryDockWidget.cpp --- a/gui//src/HistoryDockWidget.cpp +++ b/gui//src/HistoryDockWidget.cpp @@ -29,6 +29,7 @@ m_historyListModel = new QStringListModel(); m_historyListView = new QListView(this); m_historyListView->setModel(m_historyListModel); + m_historyListView->setAlternatingRowColors(true); QHBoxLayout *layout = new QHBoxLayout(); diff --git a/gui//src/VariablesDockWidget.cpp b/gui//src/VariablesDockWidget.cpp --- a/gui//src/VariablesDockWidget.cpp +++ b/gui//src/VariablesDockWidget.cpp @@ -40,6 +40,8 @@ m_variablesTreeWidget->insertTopLevelItem(3, treeWidgetItem); m_variablesTreeWidget->expandAll(); + m_variablesTreeWidget->setAlternatingRowColors(true); + m_variablesTreeWidget->setAnimated(true); } void VariablesDockWidget::updateTreeEntry(QTreeWidgetItem *treeItem, SymbolRecord symbolRecord) {