diff options
author | 2023-05-17 21:59:43 +0530 | |
---|---|---|
committer | 2023-05-17 21:59:43 +0530 | |
commit | 5f10a0f9657358fcd86c55ec065f3855bad0c160 (patch) | |
tree | 340f949dbe076db57bf62879ad150fabc884905a /src/rateapp.h | |
parent | b4b5dc3397966bea899bbb5ec0f756bb745dbff1 (diff) | |
download | whatsie-5f10a0f9657358fcd86c55ec065f3855bad0c160.tar.gz whatsie-5f10a0f9657358fcd86c55ec065f3855bad0c160.zip |
feat: minor fixes + code cleanup
Diffstat (limited to 'src/rateapp.h')
-rw-r--r-- | src/rateapp.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/src/rateapp.h b/src/rateapp.h index 50d5b98..ffb601c 100644 --- a/src/rateapp.h +++ b/src/rateapp.h @@ -1,55 +1,55 @@ #ifndef RATEAPP_H #define RATEAPP_H -#include <QWidget> -#include <QSettings> #include <QDateTime> -#include <QUrl> #include <QDesktopServices> #include <QTimer> +#include <QUrl> +#include <QWidget> + +#include "settingsmanager.h" namespace Ui { class RateApp; } -class RateApp : public QWidget -{ - Q_OBJECT +class RateApp : public QWidget { + Q_OBJECT signals: - void showRateDialog(); + void showRateDialog(); public: - explicit RateApp(QWidget *parent = nullptr , QString app_rating_url = "", - int app_launch_count = 5, int app_install_days = 5, int present_delay = 5000); - ~RateApp(); + explicit RateApp(QWidget *parent = nullptr, QString app_rating_url = "", + int app_launch_count = 5, int app_install_days = 5, + int present_delay = 5000); + ~RateApp(); public slots: - void delayShowEvent(); + void delayShowEvent(); private slots: - void on_rateNowBtn_clicked(); + void on_rateNowBtn_clicked(); - void on_alreadyDoneBtn_clicked(); + void on_alreadyDoneBtn_clicked(); - void on_laterBtn_clicked(); + void on_laterBtn_clicked(); - bool shouldShow(); - void reset(); - void on_rateOnGithub_clicked(); + bool shouldShow(); + void reset(); + void on_rateOnGithub_clicked(); - void on_donate_clicked(); + void on_donate_clicked(); - void on_donate_2_clicked(); + void on_donate_2_clicked(); private: - Ui::RateApp *ui; - QString app_rating_url; - int app_launch_count; - int app_install_days; - int present_delay; - QSettings settings; - QTimer *showTimer; + Ui::RateApp *ui; + QString app_rating_url; + int app_launch_count; + int app_install_days; + int present_delay; + QTimer *showTimer; }; #endif // RATEAPP_H |