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... --- newmoviewizard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newmoviewizard.cpp') diff --git a/newmoviewizard.cpp b/newmoviewizard.cpp index 36bf016..18fe68d 100644 --- a/newmoviewizard.cpp +++ b/newmoviewizard.cpp @@ -219,7 +219,8 @@ void MovieInfoPage::setupGui(){ mFileView = new QTreeView; mFileView->setModel(mFileModel); connect(mFileView->selectionModel(), SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(fileSelectionChanged(QModelIndex,QModelIndex))); - mFileView->setAlternatingRowColors(true); + mFileView->setAlternatingRowColors(true); + SmGlobals::instance()->treeWidgets().append(mFileView); //add + remove files QHBoxLayout *fileButtonLayout = new QHBoxLayout; -- cgit v1.2.3-70-g09d2