changeset 13438:6b3dae8b4061

Set alternating row colors.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Thu, 14 Apr 2011 10:18:11 +0200
parents 46cbccfb46c1
children 8b09300bbf29
files gui//src/FilesDockWidget.cpp gui//src/HistoryDockWidget.cpp gui//src/VariablesDockWidget.cpp
diffstat 3 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui//src/FilesDockWidget.cpp	Thu Apr 14 10:06:28 2011 +0200
+++ b/gui//src/FilesDockWidget.cpp	Thu Apr 14 10:18:11 2011 +0200
@@ -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 &)));
 
--- a/gui//src/HistoryDockWidget.cpp	Thu Apr 14 10:06:28 2011 +0200
+++ b/gui//src/HistoryDockWidget.cpp	Thu Apr 14 10:18:11 2011 +0200
@@ -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();
 
--- a/gui//src/VariablesDockWidget.cpp	Thu Apr 14 10:06:28 2011 +0200
+++ b/gui//src/VariablesDockWidget.cpp	Thu Apr 14 10:18:11 2011 +0200
@@ -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) {