|
| 1 | +diff --git a/utils/dialog/CMakeLists.txt b/utils/dialog/CMakeLists.txt |
| 2 | +index ad7ae44..5611a34 100644 |
| 3 | +--- a/utils/dialog/CMakeLists.txt |
| 4 | ++++ b/utils/dialog/CMakeLists.txt |
| 5 | +@@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| 6 | + |
| 7 | + find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient) |
| 8 | + find_package(PkgConfig REQUIRED) |
| 9 | ++find_package(fmt REQUIRED) |
| 10 | + |
| 11 | + pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils) |
| 12 | + |
| 13 | +@@ -24,7 +25,7 @@ qt_add_qml_module(hyprland-dialog |
| 14 | + ) |
| 15 | + |
| 16 | + target_link_libraries(hyprland-dialog PRIVATE |
| 17 | +- Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils |
| 18 | ++ Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils fmt::fmt |
| 19 | + ) |
| 20 | + |
| 21 | + |
| 22 | +diff --git a/utils/dialog/Dialog.cpp b/utils/dialog/Dialog.cpp |
| 23 | +index 8b161c7..73465e2 100644 |
| 24 | +--- a/utils/dialog/Dialog.cpp |
| 25 | ++++ b/utils/dialog/Dialog.cpp |
| 26 | +@@ -1,5 +1,5 @@ |
| 27 | + #include "Dialog.hpp" |
| 28 | +-#include <print> |
| 29 | ++#include <fmt/core.h> |
| 30 | + #include <hyprutils/string/String.hpp> |
| 31 | + using namespace Hyprutils::String; |
| 32 | + |
| 33 | +@@ -8,6 +8,6 @@ CDialog::CDialog(QObject* parent) : QObject(parent) { |
| 34 | + } |
| 35 | + |
| 36 | + void CDialog::onButtonPress(QString buttonName) { |
| 37 | +- std::print("{}\n", trim(buttonName.toStdString())); |
| 38 | ++ fmt::print("{}\n", trim(buttonName.toStdString())); |
| 39 | + exit(0); |
| 40 | + } |
| 41 | +diff --git a/utils/dialog/main.cpp b/utils/dialog/main.cpp |
| 42 | +index 7fd3c75..b15f0ad 100644 |
| 43 | +--- a/utils/dialog/main.cpp |
| 44 | ++++ b/utils/dialog/main.cpp |
| 45 | +@@ -1,6 +1,6 @@ |
| 46 | + #include "Dialog.hpp" |
| 47 | + #include <hyprutils/string/VarList.hpp> |
| 48 | +-#include <print> |
| 49 | ++#include <fmt/core.h> |
| 50 | + #include <qapplication.h> |
| 51 | + #include <qqmlapplicationengine.h> |
| 52 | + #include <qquickstyle.h> |
| 53 | +@@ -21,7 +21,7 @@ int main(int argc, char* argv[]) { |
| 54 | + |
| 55 | + if (arg == "--title") { |
| 56 | + if (i + 1 >= argc) { |
| 57 | +- std::print(stderr, "--title requires a parameter\n"); |
| 58 | ++ fmt::print(stderr, "--title requires a parameter\n"); |
| 59 | + return 1; |
| 60 | + } |
| 61 | + |
| 62 | +@@ -33,7 +33,7 @@ int main(int argc, char* argv[]) { |
| 63 | + |
| 64 | + if (arg == "--apptitle") { |
| 65 | + if (i + 1 >= argc) { |
| 66 | +- std::print(stderr, "--apptitle requires a parameter\n"); |
| 67 | ++ fmt::print(stderr, "--apptitle requires a parameter\n"); |
| 68 | + return 1; |
| 69 | + } |
| 70 | + |
| 71 | +@@ -45,7 +45,7 @@ int main(int argc, char* argv[]) { |
| 72 | + |
| 73 | + if (arg == "--text") { |
| 74 | + if (i + 1 >= argc) { |
| 75 | +- std::print(stderr, "--text requires a parameter\n"); |
| 76 | ++ fmt::print(stderr, "--text requires a parameter\n"); |
| 77 | + return 1; |
| 78 | + } |
| 79 | + |
| 80 | +@@ -57,7 +57,7 @@ int main(int argc, char* argv[]) { |
| 81 | + |
| 82 | + if (arg == "--buttons") { |
| 83 | + if (i + 1 >= argc) { |
| 84 | +- std::print(stderr, "--buttons requires a parameter\n"); |
| 85 | ++ fmt::print(stderr, "--buttons requires a parameter\n"); |
| 86 | + return 1; |
| 87 | + } |
| 88 | + |
| 89 | +@@ -71,7 +71,7 @@ int main(int argc, char* argv[]) { |
| 90 | + continue; |
| 91 | + } |
| 92 | + |
| 93 | +- std::print(stderr, "invalid arg {}\n", argv[i]); |
| 94 | ++ fmt::print(stderr, "invalid arg {}\n", argv[i]); |
| 95 | + return 1; |
| 96 | + } |
| 97 | + |
| 98 | +diff --git a/utils/donate-screen/CMakeLists.txt b/utils/donate-screen/CMakeLists.txt |
| 99 | +index cad04e6..9d9ff0f 100644 |
| 100 | +--- a/utils/donate-screen/CMakeLists.txt |
| 101 | ++++ b/utils/donate-screen/CMakeLists.txt |
| 102 | +@@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| 103 | + |
| 104 | + find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient) |
| 105 | + find_package(PkgConfig REQUIRED) |
| 106 | ++find_package(fmt REQUIRED) |
| 107 | + |
| 108 | + pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils) |
| 109 | + |
| 110 | +@@ -24,7 +25,7 @@ qt_add_qml_module(hyprland-donate-screen |
| 111 | + ) |
| 112 | + |
| 113 | + target_link_libraries(hyprland-donate-screen PRIVATE |
| 114 | +- Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils |
| 115 | ++ Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils fmt::fmt |
| 116 | + ) |
| 117 | + |
| 118 | + |
| 119 | +diff --git a/utils/donate-screen/DonateScreen.cpp b/utils/donate-screen/DonateScreen.cpp |
| 120 | +index 66c3ac5..05e3b29 100644 |
| 121 | +--- a/utils/donate-screen/DonateScreen.cpp |
| 122 | ++++ b/utils/donate-screen/DonateScreen.cpp |
| 123 | +@@ -1,6 +1,6 @@ |
| 124 | + #include "DonateScreen.hpp" |
| 125 | + |
| 126 | +-#include <print> |
| 127 | ++#include <fmt/core.h> |
| 128 | + #include <QDesktopServices> |
| 129 | + |
| 130 | + #include <hyprutils/string/String.hpp> |
| 131 | +diff --git a/utils/donate-screen/main.cpp b/utils/donate-screen/main.cpp |
| 132 | +index 48f8ca1..258c06a 100644 |
| 133 | +--- a/utils/donate-screen/main.cpp |
| 134 | ++++ b/utils/donate-screen/main.cpp |
| 135 | +@@ -1,6 +1,6 @@ |
| 136 | + #include "DonateScreen.hpp" |
| 137 | + #include <hyprutils/string/VarList.hpp> |
| 138 | +-#include <print> |
| 139 | ++#include <fmt/core.h> |
| 140 | + #include <qapplication.h> |
| 141 | + #include <qqmlapplicationengine.h> |
| 142 | + #include <qquickstyle.h> |
| 143 | +diff --git a/utils/update-screen/CMakeLists.txt b/utils/update-screen/CMakeLists.txt |
| 144 | +index 17d2096..e43486c 100644 |
| 145 | +--- a/utils/update-screen/CMakeLists.txt |
| 146 | ++++ b/utils/update-screen/CMakeLists.txt |
| 147 | +@@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| 148 | + |
| 149 | + find_package(Qt6 6.5 REQUIRED COMPONENTS Widgets Quick QuickControls2 WaylandClient) |
| 150 | + find_package(PkgConfig REQUIRED) |
| 151 | ++find_package(fmt REQUIRED) |
| 152 | + |
| 153 | + pkg_check_modules(hyprutils REQUIRED IMPORTED_TARGET hyprutils) |
| 154 | + |
| 155 | +@@ -26,7 +27,7 @@ qt_add_qml_module(hyprland-update-screen |
| 156 | + ) |
| 157 | + |
| 158 | + target_link_libraries(hyprland-update-screen PRIVATE |
| 159 | +- Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils |
| 160 | ++ Qt6::Widgets Qt6::QuickControls2 Qt6::WaylandClientPrivate PkgConfig::hyprutils fmt::fmt |
| 161 | + ) |
| 162 | + |
| 163 | + |
| 164 | +diff --git a/utils/update-screen/UpdateScreen.cpp b/utils/update-screen/UpdateScreen.cpp |
| 165 | +index 71ddb67..d1a287d 100644 |
| 166 | +--- a/utils/update-screen/UpdateScreen.cpp |
| 167 | ++++ b/utils/update-screen/UpdateScreen.cpp |
| 168 | +@@ -1,6 +1,6 @@ |
| 169 | + #include "UpdateScreen.hpp" |
| 170 | + |
| 171 | +-#include <print> |
| 172 | ++#include <fmt/core.h> |
| 173 | + #include <QDesktopServices> |
| 174 | + |
| 175 | + #include <hyprutils/string/String.hpp> |
| 176 | +diff --git a/utils/update-screen/main.cpp b/utils/update-screen/main.cpp |
| 177 | +index 6885efa..11a5bb7 100644 |
| 178 | +--- a/utils/update-screen/main.cpp |
| 179 | ++++ b/utils/update-screen/main.cpp |
| 180 | +@@ -1,6 +1,6 @@ |
| 181 | + #include "UpdateScreen.hpp" |
| 182 | + #include <hyprutils/string/VarList.hpp> |
| 183 | +-#include <print> |
| 184 | ++#include <fmt/core.h> |
| 185 | + #include <qapplication.h> |
| 186 | + #include <qqmlapplicationengine.h> |
| 187 | + #include <qquickstyle.h> |
| 188 | +@@ -21,7 +21,7 @@ int main(int argc, char* argv[]) { |
| 189 | + |
| 190 | + if (arg == "--new-version") { |
| 191 | + if (i + 1 >= argc) { |
| 192 | +- std::println(stderr, "--new-version requires a parameter"); |
| 193 | ++ fmt::print(stderr, "--new-version requires a parameter"); |
| 194 | + return 1; |
| 195 | + } |
| 196 | + |
| 197 | +@@ -31,12 +31,12 @@ int main(int argc, char* argv[]) { |
| 198 | + continue; |
| 199 | + } |
| 200 | + |
| 201 | +- std::println(stderr, "invalid arg {}", argv[i]); |
| 202 | ++ fmt::print(stderr, "invalid arg {}", argv[i]); |
| 203 | + return 1; |
| 204 | + } |
| 205 | + |
| 206 | + if (dialog->newVersion.isEmpty()) { |
| 207 | +- std::println(stderr, "missing --new-version"); |
| 208 | ++ fmt::print(stderr, "missing --new-version"); |
| 209 | + return 1; |
| 210 | + } |
| 211 | + |
0 commit comments