From 9e8f876c07f2e29a7d421fb6399114b974b714c9 Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Mon, 7 Jun 2021 12:25:47 +0530 Subject: added more rating options in rate dialog --- src/rateapp.cpp | 14 +++++++ src/rateapp.h | 4 ++ src/rateapp.ui | 123 +++++++++++++++++++++++++++++++++++++++----------------- 3 files changed, 105 insertions(+), 36 deletions(-) (limited to 'src') diff --git a/src/rateapp.cpp b/src/rateapp.cpp index ead9508..21d2f1c 100644 --- a/src/rateapp.cpp +++ b/src/rateapp.cpp @@ -116,3 +116,17 @@ void RateApp::reset() settings.setValue("app_launched_count",0); settings.setValue("app_install_time",QDateTime::currentSecsSinceEpoch()); } + +void RateApp::on_rateOnGithub_clicked() +{ + QDesktopServices::openUrl(QUrl("https://github.com/keshavbhatt/whatsie")); + this->reset(); + this->close(); +} + +void RateApp::on_donate_clicked() +{ + QDesktopServices::openUrl(QUrl("https://paypal.me/keshavnrj/5.00")); + this->reset(); + this->close(); +} diff --git a/src/rateapp.h b/src/rateapp.h index e296080..e87719e 100644 --- a/src/rateapp.h +++ b/src/rateapp.h @@ -36,6 +36,10 @@ private slots: bool shouldShow(); void reset(); + void on_rateOnGithub_clicked(); + + void on_donate_clicked(); + private: Ui::RateApp *ui; QString app_rating_url; diff --git a/src/rateapp.ui b/src/rateapp.ui index 9243daa..9b6ee24 100644 --- a/src/rateapp.ui +++ b/src/rateapp.ui @@ -6,8 +6,8 @@ 0 0 - 424 - 189 + 472 + 224 @@ -51,43 +51,94 @@ - - - - - Later - - - - - - - Qt::Horizontal - - - - 40 - 10 - - - - + + + 0 + - - - - - - Already Done - - + + + + + Rate in Store + + + + + + + + 0 + 0 + + + + Or + + + + + + + Star rate Github repo + + + + + + + + 0 + 0 + + + + Or + + + + + + + Donate + + + + - - - Rate Now - - + + + + + Later + + + + + + + Qt::Horizontal + + + + 40 + 10 + + + + + + + + + + + Already Done + + + + -- cgit v1.2.3