diff options
Diffstat (limited to 'configurationdialog.cpp')
-rw-r--r-- | configurationdialog.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configurationdialog.cpp b/configurationdialog.cpp index 724b4cb..2570434 100644 --- a/configurationdialog.cpp +++ b/configurationdialog.cpp @@ -203,12 +203,20 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S genreIconLayout->addWidget(mIconForGenre); genreIconBox->setLayout(genreIconLayout); + QGroupBox *metaIconBox = new QGroupBox(tr("Icon for metadata")); + QHBoxLayout *metaIconLayout = new QHBoxLayout; + mIconForMeta = new QComboBox; + mIconForMeta->setModel(mIconModel); + metaIconLayout->addWidget(mIconForMeta); + metaIconBox->setLayout(metaIconLayout); + QVBoxLayout *iconWidgetLayout = new QVBoxLayout; iconWidgetLayout->addWidget(folderIconBox); iconWidgetLayout->addWidget(fileIconBox); iconWidgetLayout->addWidget(seriesIconBox); iconWidgetLayout->addWidget(actorIconBox); iconWidgetLayout->addWidget(genreIconBox); + iconWidgetLayout->addWidget(metaIconBox); iconWidgetLayout->addStretch(); QWidget *iconWidget = new QWidget; iconWidget->setLayout(iconWidgetLayout); @@ -444,6 +452,10 @@ void ConfigurationDialog::readSettings(){ pos = mIconForGenre->findText(iconText); pos = pos > -1 ? pos : 0; mIconForGenre->setCurrentIndex(pos); + iconText = s.value("ui/metaicon", "Dildo").toString(); + pos = mIconForMeta->findText(iconText); + pos = pos > -1 ? pos : 0; + mIconForMeta->setCurrentIndex(pos); // read misc mHoverPics->setChecked(s.value("ui/hoverpics", false).toBool()); @@ -536,6 +548,7 @@ void ConfigurationDialog::writeSettings(){ s.setValue("ui/seriesicon", mIconForSeries->currentText()); s.setValue("ui/actoricon", mIconForActor->currentText()); s.setValue("ui/genreicon", mIconForGenre->currentText()); + s.setValue("ui/metaicon", mIconForMeta->currentText()); //write misc s.setValue("ui/hoverpics", (mHoverPics->checkState() == Qt::Checked)); |