summaryrefslogtreecommitdiffstats
path: root/configurationdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configurationdialog.cpp')
-rw-r--r--configurationdialog.cpp83
1 files changed, 48 insertions, 35 deletions
diff --git a/configurationdialog.cpp b/configurationdialog.cpp
index db54dfe..da7142d 100644
--- a/configurationdialog.cpp
+++ b/configurationdialog.cpp
@@ -178,32 +178,40 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S
folderIconLayout->addWidget(mIconForFolder);
folderIconBox->setLayout(folderIconLayout);
- QGroupBox *movieIconBox = new QGroupBox(tr("Icon for movies"));
- QHBoxLayout *movieIconLayout = new QHBoxLayout;
- mIconForMovie = new QComboBox;
- mIconForMovie->setModel(mIconModel);
- movieIconLayout->addWidget(mIconForMovie);
- movieIconBox->setLayout(movieIconLayout);
-
- QGroupBox *pictureIconBox = new QGroupBox(tr("Icon for pictures"));
- QHBoxLayout *pictureIconLayout = new QHBoxLayout;
- mIconForPic = new QComboBox;
- mIconForPic->setModel(mIconModel);
- pictureIconLayout->addWidget(mIconForPic);
- pictureIconBox->setLayout(pictureIconLayout);
-
- QGroupBox *otherIconBox = new QGroupBox(tr("Icon for other"));
- QHBoxLayout *otherIconLayout = new QHBoxLayout;
- mIconForOther = new QComboBox;
- mIconForOther->setModel(mIconModel);
- otherIconLayout->addWidget(mIconForOther);
- otherIconBox->setLayout(otherIconLayout);
+ QGroupBox *fileIconBox = new QGroupBox(tr("Icon for files"));
+ QHBoxLayout *fileIconLayout = new QHBoxLayout;
+ mIconForFile = new QComboBox;
+ mIconForFile->setModel(mIconModel);
+ fileIconLayout->addWidget(mIconForFile);
+ fileIconBox->setLayout(fileIconLayout);
+
+ QGroupBox *seriesIconBox = new QGroupBox(tr("Icon for series"));
+ QHBoxLayout *seriesIconLayout = new QHBoxLayout;
+ mIconForSeries= new QComboBox;
+ mIconForSeries->setModel(mIconModel);
+ seriesIconLayout->addWidget(mIconForSeries);
+ seriesIconBox->setLayout(seriesIconLayout);
+
+ QGroupBox *actorIconBox = new QGroupBox(tr("Icon for actors"));
+ QHBoxLayout *actorIconLayout = new QHBoxLayout;
+ mIconForActor = new QComboBox;
+ mIconForActor->setModel(mIconModel);
+ actorIconLayout->addWidget(mIconForActor);
+ actorIconBox->setLayout(actorIconLayout);
+
+ QGroupBox *genreIconBox = new QGroupBox(tr("Icon for genres"));
+ QHBoxLayout *genreIconLayout = new QHBoxLayout;
+ mIconForGenre = new QComboBox;
+ mIconForGenre->setModel(mIconModel);
+ genreIconLayout->addWidget(mIconForGenre);
+ genreIconBox->setLayout(genreIconLayout);
QVBoxLayout *iconWidgetLayout = new QVBoxLayout;
iconWidgetLayout->addWidget(folderIconBox);
- iconWidgetLayout->addWidget(movieIconBox);
- iconWidgetLayout->addWidget(pictureIconBox);
- iconWidgetLayout->addWidget(otherIconBox);
+ iconWidgetLayout->addWidget(fileIconBox);
+ iconWidgetLayout->addWidget(seriesIconBox);
+ iconWidgetLayout->addWidget(actorIconBox);
+ iconWidgetLayout->addWidget(genreIconBox);
iconWidgetLayout->addStretch();
QWidget *iconWidget = new QWidget;
iconWidget->setLayout(iconWidgetLayout);
@@ -433,18 +441,22 @@ void ConfigurationDialog::readSettings(){
int pos = mIconForFolder->findText(iconText);
pos = pos > -1 ? pos : 0;
mIconForFolder->setCurrentIndex(pos);
- iconText = s.value("ui/movieicon", "Dildo").toString();
- pos = mIconForMovie->findText(iconText);
+ iconText = s.value("ui/fileicon", "Dildo").toString();
+ pos = mIconForFile->findText(iconText);
pos = pos > -1 ? pos : 0;
- mIconForMovie->setCurrentIndex(pos);
- iconText = s.value("ui/pictureicon", "Dildo").toString();
- pos = mIconForPic->findText(iconText);
+ mIconForFile->setCurrentIndex(pos);
+ iconText = s.value("ui/seriesicon", "Dildo").toString();
+ pos = mIconForSeries->findText(iconText);
pos = pos > -1 ? pos : 0;
- mIconForPic->setCurrentIndex(pos);
- iconText = s.value("ui/othericon", "Dildo").toString();
- pos = mIconForOther->findText(iconText);
+ mIconForSeries->setCurrentIndex(pos);
+ iconText = s.value("ui/actoricon", "Dildo").toString();
+ pos = mIconForActor->findText(iconText);
pos = pos > -1 ? pos : 0;
- mIconForOther->setCurrentIndex(pos);
+ mIconForActor->setCurrentIndex(pos);
+ iconText = s.value("ui/genreicon", "Dildo").toString();
+ pos = mIconForGenre->findText(iconText);
+ pos = pos > -1 ? pos : 0;
+ mIconForGenre->setCurrentIndex(pos);
// read misc
mHoverPics->setChecked(s.value("ui/hoverpics", false).toBool());
@@ -536,9 +548,10 @@ void ConfigurationDialog::writeSettings(){
//write icons
s.setValue("ui/foldericon", mIconForFolder->currentText());
- s.setValue("ui/movieicon", mIconForMovie->currentText());
- s.setValue("ui/pictureicon", mIconForPic->currentText());
- s.setValue("ui/othericon", mIconForOther->currentText());
+ s.setValue("ui/fileicon", mIconForFile->currentText());
+ s.setValue("ui/seriesicon", mIconForSeries->currentText());
+ s.setValue("ui/actoricon", mIconForActor->currentText());
+ s.setValue("ui/genreicon", mIconForGenre->currentText());
//write misc
s.setValue("ui/hoverpics", (mHoverPics->checkState() == Qt::Checked));