refactor(cleanup): add ui icon

This commit is contained in:
PancakeTAS 2025-12-23 21:35:22 +01:00
parent 569302dffe
commit ec37172b83
4 changed files with 3 additions and 3 deletions

View file

@ -14,6 +14,7 @@ set(UI_RESOURCES
"rsc/widgets/FileEdit.qml"
"rsc/widgets/FlowSlider.qml"
"rsc/widgets/List.qml"
"rsc/icon.png"
"rsc/UI.qml")
qt_add_executable(lsfg-vk-ui ${UI_SOURCES})

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -6,8 +6,6 @@
#include <QStringListModel>
#include <QString>
#include <atomic>
#include <qstringlistmodel.h>
#include <qtmetamacros.h>
#include <utility>
#define getters public
@ -19,7 +17,6 @@ namespace lsfgvk::ui {
class Backend : public QObject {
Q_OBJECT
Q_PROPERTY(QStringListModel* profiles READ calculateProfileListModel NOTIFY refreshUI)
Q_PROPERTY(int profile_index READ getProfileIndex WRITE profileSelected NOTIFY refreshUI)

View file

@ -1,5 +1,6 @@
#include "backend.hpp"
#include <QIcon>
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
@ -9,6 +10,7 @@ using namespace lsfgvk::ui;
int main(int argc, char* argv[]) {
const QGuiApplication app(argc, argv);
QGuiApplication::setWindowIcon(QIcon(":/rsc/icon.png"));
QGuiApplication::setApplicationName("lsfg-vk-ui");
QGuiApplication::setApplicationDisplayName("lsfg-vk-ui");