From 4caea48fbbe05ae927448d39a4166e75c4907aa4 Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Mon, 30 Aug 2021 13:16:38 +0530 Subject: updated rateApp and about dialog --- src/WhatsApp.pro | 2 +- src/about.cpp | 5 ++++ src/about.h | 2 ++ src/about.ui | 17 +++++++++---- src/mainwindow.cpp | 2 +- src/rateapp.cpp | 7 ++++++ src/rateapp.h | 2 ++ src/rateapp.ui | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 8 files changed, 98 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/WhatsApp.pro b/src/WhatsApp.pro index 2c9a11b..c7d256f 100644 --- a/src/WhatsApp.pro +++ b/src/WhatsApp.pro @@ -43,7 +43,7 @@ CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT # Set program version -VERSION = 1.0 +VERSION = 2.0 DEFINES += VERSIONSTR=\\\"$${VERSION}\\\" SOURCES += \ diff --git a/src/about.cpp b/src/about.cpp index 8344283..2212700 100644 --- a/src/about.cpp +++ b/src/about.cpp @@ -100,3 +100,8 @@ void About::on_debugInfoButton_clicked() } } + +void About::on_donate_2_clicked() +{ + QDesktopServices::openUrl(QUrl("https://opencollective.com/whatsie")); +} diff --git a/src/about.h b/src/about.h index 34551b3..74bfe0d 100644 --- a/src/about.h +++ b/src/about.h @@ -18,6 +18,8 @@ public: private slots: void on_debugInfoButton_clicked(); + void on_donate_2_clicked(); + private: Ui::About *ui; diff --git a/src/about.ui b/src/about.ui index e8a09af..653d972 100644 --- a/src/about.ui +++ b/src/about.ui @@ -168,21 +168,21 @@ p, li { white-space: pre-wrap; } - Donate + Donate Paypal - + - Rate in Store + Donate OpenCollective - + - Source Code + Rate in Store @@ -197,6 +197,13 @@ p, li { white-space: pre-wrap; } + + + + Source Code + + + diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 85df9ae..e75166c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -24,7 +24,7 @@ MainWindow::MainWindow(QWidget *parent) setWindowTitle(QApplication::applicationName()); setWindowIcon(QIcon(":/icons/app/icon-256.png")); - setMinimumWidth(650); + setMinimumWidth(500); setMinimumHeight(520); restoreGeometry(settings.value("geometry").toByteArray()); diff --git a/src/rateapp.cpp b/src/rateapp.cpp index 21d2f1c..47382f5 100644 --- a/src/rateapp.cpp +++ b/src/rateapp.cpp @@ -130,3 +130,10 @@ void RateApp::on_donate_clicked() this->reset(); this->close(); } + +void RateApp::on_donate_2_clicked() +{ + QDesktopServices::openUrl(QUrl("https://opencollective.com/whatsie")); + this->reset(); + this->close(); +} diff --git a/src/rateapp.h b/src/rateapp.h index e87719e..50d5b98 100644 --- a/src/rateapp.h +++ b/src/rateapp.h @@ -40,6 +40,8 @@ private slots: void on_donate_clicked(); + void on_donate_2_clicked(); + private: Ui::RateApp *ui; QString app_rating_url; diff --git a/src/rateapp.ui b/src/rateapp.ui index 9b6ee24..38ebc00 100644 --- a/src/rateapp.ui +++ b/src/rateapp.ui @@ -6,8 +6,8 @@ 0 0 - 472 - 224 + 477 + 257 @@ -64,6 +64,19 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -77,6 +90,19 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -84,8 +110,32 @@ + + + + + + + + Donate via Paypal + + + - + + + Qt::Horizontal + + + + 40 + 20 + + + + + + 0 @@ -98,9 +148,22 @@ - + + + Qt::Horizontal + + + + 40 + 20 + + + + + + - Donate + Donate via OpenCollective -- cgit v1.2.3