reimplementaion of fix for QColorDialog on macOS Sierra bug.

doesn't use destructor because destructor causes another crash.
This commit is contained in:
Daisuke Cato
2016-10-22 19:14:07 +09:00
commit a08b5f8af0
986 changed files with 90393 additions and 0 deletions

View File

@ -0,0 +1,39 @@
#ifndef __OPTIONS_DIALOG_H
#define __OPTIONS_DIALOG_H
#include <QtWidgets>
#include "yacreader_options_dialog.h"
#include "yacreader_global.h"
using namespace YACReader;
class OptionsDialog : public YACReaderOptionsDialog
{
Q_OBJECT
public:
OptionsDialog(QWidget * parent = 0);
public slots:
void editApiKey();
void restoreOptions(QSettings * settings);
private slots:
void useBackgroundImageCheckClicked(bool checked);
void backgroundImageOpacitySliderChanged(int value);
void backgroundImageBlurRadiusSliderChanged(int value);
void useCurrentComicCoverCheckClicked(bool checked);
void resetToDefaults();
private:
QCheckBox * useBackgroundImageCheck;
QCheckBox * useCurrentComicCoverCheck;
QSlider * backgroundImageOpacitySlider;
QSlider * backgroundImageBlurRadiusSlider;
QLabel * opacityLabel;
QLabel * blurLabel;
QPushButton * resetButton;
};
#endif