From 5c023652164cf1b04fefcf22832dc3aa094ca628 Mon Sep 17 00:00:00 2001 From: Julian POIDEVIN Date: Tue, 16 May 2017 19:41:51 +0200 Subject: [PATCH] Added donation button (Closes #17) --- mainwindow.cpp | 8 ++++++++ mainwindow.h | 1 + mainwindow.ui | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 60eea27..373a8ab 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -829,3 +829,11 @@ void MainWindow::on_versionButton_clicked() return; } + +void MainWindow::on_pushButton_clicked() +{ + QString link = "https://www.tipeee.com/MBPMid2010_GPUFix"; + QDesktopServices::openUrl(QUrl(link)); + + return; +} diff --git a/mainwindow.h b/mainwindow.h index aed2e16..d2d4958 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -52,6 +52,7 @@ private slots: void on_restoreButton_clicked(); void on_gitHubButton_clicked(); void on_versionButton_clicked(); + void on_pushButton_clicked(); void exit(); diff --git a/mainwindow.ui b/mainwindow.ui index 83c2b05..bf32244 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -113,6 +113,25 @@ true + + + + -10 + 181 + 113 + 32 + + + + + + + ♥ Donate + + + true + +