core: Custom QT_QUICK_CONTROLS_STYLE fix (#20)
Some checks failed
Build / nix (push) Has been cancelled

This commit is contained in:
Blaadick 2025-09-28 20:23:48 +03:00 committed by GitHub
parent 5ffdfc13ed
commit 629b15c19f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 26 additions and 26 deletions

1
.gitignore vendored
View file

@ -34,6 +34,7 @@
build/
.cache/
.vscode/
.idea/
# nix
result*

View file

@ -24,7 +24,7 @@ qt_add_qml_module(hyprland-dialog
)
target_link_libraries(hyprland-dialog PRIVATE
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
)

View file

@ -1,11 +1,11 @@
#include "Dialog.hpp"
#include <hyprutils/string/VarList.hpp>
#include <print>
#include <qapplication.h>
#include <qqmlapplicationengine.h>
#include <qquickstyle.h>
#include <qtenvironmentvariables.h>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QtEnvironmentVariables>
#include <print>
#include <hyprutils/string/VarList.hpp>
using namespace Hyprutils::String;
@ -75,7 +75,7 @@ int main(int argc, char* argv[]) {
return 1;
}
QApplication app(argc, argv);
QGuiApplication app(argc, argv);
app.setApplicationName(appTitle.isEmpty() ? dialog->title : appTitle);
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE"))

View file

@ -30,7 +30,7 @@ qt_add_resources(hyprland-donate-screen "assets"
)
target_link_libraries(hyprland-donate-screen PRIVATE
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
)

View file

@ -1,11 +1,10 @@
#include "DonateScreen.hpp"
#include <hyprutils/string/VarList.hpp>
#include <print>
#include <qapplication.h>
#include <qqmlapplicationengine.h>
#include <qquickstyle.h>
#include <qtenvironmentvariables.h>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QtEnvironmentVariables>
#include <hyprutils/string/VarList.hpp>
using namespace Hyprutils::String;
@ -15,7 +14,7 @@ int main(int argc, char* argv[]) {
auto dialog = new CDonateScreen();
QApplication app(argc, argv);
QGuiApplication app(argc, argv);
app.setApplicationName("Support Hyprland");
app.setApplicationDisplayName("Support Hyprland");

View file

@ -32,7 +32,7 @@ qt_add_resources(hyprland-update-screen "assets"
)
target_link_libraries(hyprland-update-screen PRIVATE
Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
Qt6::Quick Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils
)

View file

@ -1,12 +1,12 @@
#include "UpdateScreen.hpp"
#include <hyprutils/string/VarList.hpp>
#include <print>
#include <qapplication.h>
#include <qqmlapplicationengine.h>
#include <qquickstyle.h>
#include <qtenvironmentvariables.h>
#include <QQmlContext>
#include "Dialog.hpp"
#include "UpdateScreen.hpp"
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include <QtEnvironmentVariables>
#include <print>
#include <hyprutils/string/VarList.hpp>
using namespace Hyprutils::String;
@ -40,7 +40,7 @@ int main(int argc, char* argv[]) {
return 1;
}
QApplication app(argc, argv);
QGuiApplication app(argc, argv);
app.setApplicationName("Hyprland Updated!");
app.setApplicationDisplayName("Hyprland Updated");