diff options
author | 2023-05-17 21:59:43 +0530 | |
---|---|---|
committer | 2023-05-17 21:59:43 +0530 | |
commit | 5f10a0f9657358fcd86c55ec065f3855bad0c160 (patch) | |
tree | 340f949dbe076db57bf62879ad150fabc884905a /src/about.cpp | |
parent | b4b5dc3397966bea899bbb5ec0f756bb745dbff1 (diff) | |
download | whatsie-5f10a0f9657358fcd86c55ec065f3855bad0c160.tar.gz whatsie-5f10a0f9657358fcd86c55ec065f3855bad0c160.zip |
feat: minor fixes + code cleanup
Diffstat (limited to 'src/about.cpp')
-rw-r--r-- | src/about.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/about.cpp b/src/about.cpp index 81657e8..3c7f826 100644 --- a/src/about.cpp +++ b/src/about.cpp @@ -17,7 +17,7 @@ About::About(QWidget *parent) : QWidget(parent), ui(new Ui::About) { appAuthorEmail = "keshavnrj@gmail.com"; appAuthorLink = "http://ktechpit.com"; donateLink = "https://paypal.me/keshavnrj/5"; - moreAppsLink = "https://snapcraft.io/search?q=keshavnrj"; + moreAppsLink = "https://snapcraft.io/publisher/keshavnrj"; appSourceCodeLink = "https://github.com/keshavbhatt/whatsie"; appRateLink = "snap://whatsie"; @@ -42,7 +42,7 @@ About::About(QWidget *parent) : QWidget(parent), ui(new Ui::About) { ui->version->setText("Version: " + QApplication::applicationVersion()); - ui->debugInfoText->setHtml(utils::appDebugInfo()); + ui->debugInfoText->setHtml(Utils::appDebugInfo()); ui->debugInfoText->hide(); @@ -92,14 +92,9 @@ void About::on_debugInfoButton_clicked() { } } -void About::keyPressEvent(QKeyEvent *e) -{ - if (e->key() == Qt::Key_Escape) - this->close(); +void About::keyPressEvent(QKeyEvent *e) { + if (e->key() == Qt::Key_Escape) + this->close(); - QWidget::keyPressEvent(e); -} - -void About::on_donate_2_clicked() { - QDesktopServices::openUrl(QUrl("https://opencollective.com/whatsie")); + QWidget::keyPressEvent(e); } |