From 89946d85a39f3c0b5ea87c887340b4781b6b2900 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 17 Mar 2013 13:18:09 +0100 Subject: Fix Colors This is more a qt5-fix than a SmDirModel fix. The global palette doesn't propagate any more, so we have to set the palette in every QTreeView separately. Very annoying and tedious. Maybe I missed a Widget or two, dunno... --- mappingtablewidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'mappingtablewidget.cpp') diff --git a/mappingtablewidget.cpp b/mappingtablewidget.cpp index 8b220a5..991b09d 100644 --- a/mappingtablewidget.cpp +++ b/mappingtablewidget.cpp @@ -28,6 +28,7 @@ MappingTableWidget::MappingTableWidget(const QString &table, QWidget *parent) : mModel->setHeaderData(0, Qt::Horizontal, mTable); mView->setModel(mModel); mView->setAlternatingRowColors(true); + SmGlobals::instance()->treeWidgets().append(mView); //mapping model mMappingModel = static_cast(SmGlobals::instance()->model(mTable)); -- cgit v1.2.3-70-g09d2