diff options
author | Arno <am@disconnect.de> | 2010-12-22 16:59:12 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-12-26 20:49:27 +0100 |
commit | 7bb7295a9033c0a6729b301e7c9b76393539e29a (patch) | |
tree | df92ec2f09e1cf6797fde07dc495efb051c94b74 /archivetreeview.cpp | |
parent | 832d48d3b9249db178f649d00c5c7134bea2becb (diff) | |
download | SheMov-7bb7295a9033c0a6729b301e7c9b76393539e29a.tar.gz SheMov-7bb7295a9033c0a6729b301e7c9b76393539e29a.tar.bz2 SheMov-7bb7295a9033c0a6729b301e7c9b76393539e29a.zip |
Made colors configurable
Added a tab to ConfigurationDialog to make some colors configurable. It
works somehow. The font color isn't evaluated yet, since I'm not
convinced that it is a good idea.
But one problem is that calling qApp->setPalette() doesn't propagate to
non visible child dialogs. Dunno if it's worth fixing.
Diffstat (limited to 'archivetreeview.cpp')
-rw-r--r-- | archivetreeview.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/archivetreeview.cpp b/archivetreeview.cpp index 5d8a96d..1a58041 100644 --- a/archivetreeview.cpp +++ b/archivetreeview.cpp @@ -82,6 +82,8 @@ ArchiveTreeView::ArchiveTreeView(QWidget *parent) : QWidget(parent){ mNoCoverDialog = new NoCoverMovieDialog(this); mNoCoverDialog->setHidden(true); connect(mNoCoverDialog->view(), SIGNAL(doubleClicked(QModelIndex)), this, SLOT(selectMovie(QModelIndex))); + mFilesWidget->filesTree()->setAlternatingRowColors(true); + mSeriesWidget->seriesTree()->setAlternatingRowColors(true); // layout QHBoxLayout *mainLayout = new QHBoxLayout; @@ -94,6 +96,7 @@ ArchiveTreeView::ArchiveTreeView(QWidget *parent) : QWidget(parent){ setLayout(mainLayout); constructWindowTitle(); + readSettings(); } void ArchiveTreeView::setFileViewMode(int mode){ @@ -196,6 +199,12 @@ void ArchiveTreeView::copyPath(int type){ } } +void ArchiveTreeView::readSettings(){ + seriesWidget()->seriesTree()->readSettings(); + filesWidget()->filesTree()->readSettings(); + mFilesModel->readSettings(); +} + void ArchiveTreeView::currentChanged(const QItemSelection &selected, const QItemSelection &deselected){ Q_UNUSED(selected); Q_UNUSED(deselected); |