From 08b627c59c98d67d057e061612f165b4ff3cb966 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 22 Nov 2019 17:46:39 +0100 Subject: Get rid of HoverWindow It depended on X11, because the hover center wasn't where it was supposed to be, so I worked around it with Xfixes.h, which unfortunately isn't even available in MSYS2. So another fix for compiling this under Windows. --- configurationdialog.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'configurationdialog.cpp') diff --git a/configurationdialog.cpp b/configurationdialog.cpp index ce957bc..0fabe2f 100644 --- a/configurationdialog.cpp +++ b/configurationdialog.cpp @@ -92,27 +92,6 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S QVBoxLayout *miscLayout = new QVBoxLayout; miscLayout->setAlignment(Qt::AlignTop); - //misc - hover - QGroupBox *hoverBox = new QGroupBox(tr("Hover options")); - QVBoxLayout *hoverLayout = new QVBoxLayout; - mHoverPics = new QCheckBox(tr("Show picture when hovering")); - hoverLayout->addWidget(mHoverPics); - mHoverOpacity = new QSpinBox; - mHoverOpacity->setMinimum(1); - mHoverOpacity->setMaximum(10); - QGridLayout *miscInputGrid = new QGridLayout; - QLabel *miscl6 = new QLabel(tr("Opacity of hover window")); - miscInputGrid->addWidget(miscl6, 0, 0); - miscInputGrid->addWidget(mHoverOpacity, 0, 1); - QLabel *miscl8 = new QLabel(tr("Y cursor offset (hover)")); - mCursorOffset = new QSpinBox; - mCursorOffset->setMinimum(-100); - mCursorOffset->setMaximum(100); - miscInputGrid->addWidget(miscl8, 2, 0); - miscInputGrid->addWidget(mCursorOffset, 2, 1); - hoverLayout->addLayout(miscInputGrid); - hoverBox->setLayout(hoverLayout); - //misc - archiving movies QGroupBox *archiveBox = new QGroupBox(tr("Archiving options")); QVBoxLayout *archiveLayout = new QVBoxLayout; @@ -148,7 +127,6 @@ ConfigurationDialog::ConfigurationDialog(QWidget *parent, Qt::WindowFlags f) : S clearWizardBox->setLayout(clearWizardLayout); //misc - assemble - miscLayout->addWidget(hoverBox); miscLayout->addWidget(archiveBox); miscLayout->addWidget(autoRefreshBox); miscLayout->addWidget(clearWizardBox); @@ -450,11 +428,8 @@ void ConfigurationDialog::readSettings(){ mIconForMeta->setCurrentIndex(pos); // read misc - mHoverPics->setChecked(s.value("ui/hoverpics", false).toBool()); - mHoverOpacity->setValue(s.value("ui/hoveropacity", 10).toInt()); mAutoAddCovers->setChecked(s.value("ui/autoaddcovers", false).toBool()); mIconizeCovers->setChecked(s.value("ui/iconizecovers", false).toBool()); - mCursorOffset->setValue(s.value("ui/cursoroffset", SmGlobals::instance()->cursorSize().height()).toInt()); mAutoRefresh->setChecked(s.value("ui/autorefresh", false).toBool()); mAutoRefreshValue->setValue(s.value("ui/autorefreshvalue", 5).toInt()); mClearNewMovieWizard->setChecked(s.value("ui/clearnewmoviewizard", false).toBool()); @@ -542,11 +517,8 @@ void ConfigurationDialog::writeSettings(){ s.setValue("ui/metaicon", mIconForMeta->currentText()); //write misc - s.setValue("ui/hoverpics", (mHoverPics->checkState() == Qt::Checked)); - s.setValue("ui/hoveropacity", mHoverOpacity->value()); s.setValue("ui/autoaddcovers", (mAutoAddCovers->checkState() == Qt::Checked)); s.setValue("ui/iconizecovers", (mIconizeCovers->checkState() == Qt::Checked)); - s.setValue("ui/cursoroffset", mCursorOffset->value()); s.setValue("ui/autorefresh", (mAutoRefresh->checkState() == Qt::Checked)); s.setValue("ui/autorefreshvalue", mAutoRefreshValue->value()); s.setValue("ui/clearnewmoviewizard", (mClearNewMovieWizard->checkState() == Qt::Checked)); -- cgit v1.2.3-70-g09d2