Mercurial > hg > octave-lojdl
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 +++ 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 &)));
--- 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();
--- 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) {