mirror of
https://github.com/hyprwm/hyprland-qtutils.git
synced 2025-12-20 06:20:02 +01:00
Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56d993aced | |||
|
|
629b15c19f | ||
|
|
5ffdfc13ed |
8 changed files with 32 additions and 29 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -34,6 +34,7 @@
|
|||
build/
|
||||
.cache/
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
# nix
|
||||
result*
|
||||
|
|
|
|||
|
|
@ -1,5 +1,8 @@
|
|||
# Hyprland QT utils
|
||||
|
||||
> [!IMPORTANT]
|
||||
> This repo has been superseded by 
|
||||
|
||||
This repo houses some qt/qml utilities that might be used by various hypr* apps.
|
||||
|
||||
## Dependencies
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ project(hyprland-dialog VERSION ${VER} LANGUAGES CXX)
|
|||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
|
||||
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
|
||||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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"))
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ project(hyprland-donate-screen VERSION ${VER} LANGUAGES CXX)
|
|||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
|
||||
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
|
||||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ project(hyprland-update-screen VERSION ${VER} LANGUAGES CXX)
|
|||
set(CMAKE_CXX_STANDARD 23)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient)
|
||||
find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient WaylandClientPrivate)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils)
|
||||
|
|
@ -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
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue