mirror of
https://github.com/hyprwm/hyprland-qtutils.git
synced 2025-12-20 13:20:03 +01:00
20 lines
471 B
C++
20 lines
471 B
C++
|
|
#include "DonateScreen.hpp"
|
||
|
|
|
||
|
|
#include <print>
|
||
|
|
#include <QDesktopServices>
|
||
|
|
|
||
|
|
#include <hyprutils/string/String.hpp>
|
||
|
|
#include <hyprutils/os/Process.hpp>
|
||
|
|
using namespace Hyprutils::String;
|
||
|
|
|
||
|
|
CDonateScreen::CDonateScreen(QObject* parent) : QObject(parent) {
|
||
|
|
;
|
||
|
|
}
|
||
|
|
|
||
|
|
void CDonateScreen::onButtonPress(QString buttonName) {
|
||
|
|
if (buttonName == "quit")
|
||
|
|
exit(0);
|
||
|
|
if (buttonName == "donate")
|
||
|
|
QDesktopServices::openUrl(QUrl("https://hyprland.org/support"));
|
||
|
|
}
|