summaryrefslogtreecommitdiffstats
path: root/examples/itemviews/editabletreemodel/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/itemviews/editabletreemodel/mainwindow.cpp')
-rw-r--r--examples/itemviews/editabletreemodel/mainwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/itemviews/editabletreemodel/mainwindow.cpp b/examples/itemviews/editabletreemodel/mainwindow.cpp
index 6f08ced0e9..486a9ad1c6 100644
--- a/examples/itemviews/editabletreemodel/mainwindow.cpp
+++ b/examples/itemviews/editabletreemodel/mainwindow.cpp
@@ -48,6 +48,11 @@ MainWindow::MainWindow(QWidget *parent)
{
setupUi(this);
+#ifdef Q_WS_MAEMO_5
+ // Alternating row colors look bad on Maemo
+ view->setAlternatingRowColors(false);
+#endif
+
QStringList headers;
headers << tr("Title") << tr("Description");