hyprland-qtutils/utils/dialog/Dialog.cpp

14 lines
298 B
C++
Raw Permalink Normal View History

2024-10-27 15:40:05 +01:00
#include "Dialog.hpp"
#include <print>
#include <hyprutils/string/String.hpp>
using namespace Hyprutils::String;
CDialog::CDialog(QObject* parent) : QObject(parent) {
;
}
void CDialog::onButtonPress(QString buttonName) {
std::print("{}\n", trim(buttonName.toStdString()));
exit(0);
}