summaryrefslogtreecommitdiffstats
path: root/mappingtablewidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-03-17 13:18:09 +0100
committerArno <am@disconnect.de>2013-03-17 13:18:09 +0100
commit89946d85a39f3c0b5ea87c887340b4781b6b2900 (patch)
tree5052cbebd07f86f5363dd79f20f47ccb21e250ac /mappingtablewidget.cpp
parentc81dcb6c33342027017f0559444685168523f486 (diff)
downloadSheMov-89946d85a39f3c0b5ea87c887340b4781b6b2900.tar.gz
SheMov-89946d85a39f3c0b5ea87c887340b4781b6b2900.tar.bz2
SheMov-89946d85a39f3c0b5ea87c887340b4781b6b2900.zip
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...
Diffstat (limited to 'mappingtablewidget.cpp')
-rw-r--r--mappingtablewidget.cpp1
1 files changed, 1 insertions, 0 deletions
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<MappingTableModel*>(SmGlobals::instance()->model(mTable));