mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-21 18:02:09 +00:00
refactor(cleanup): add ui icon
This commit is contained in:
parent
569302dffe
commit
ec37172b83
4 changed files with 3 additions and 3 deletions
|
|
@ -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})
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue