mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-23 12:37:45 +00:00
launcher: Port to NovusMainWindow
This commit is contained in:
parent
90ab618a36
commit
4b04e68c31
4 changed files with 9 additions and 5 deletions
|
@ -4,5 +4,5 @@
|
|||
add_executable(novus-launcher
|
||||
src/main.cpp
|
||||
src/mainwindow.cpp)
|
||||
target_link_libraries(novus-launcher PUBLIC Qt6::Widgets KF6::ConfigCore physis z)
|
||||
target_link_libraries(novus-launcher PUBLIC Qt6::Widgets KF6::ConfigCore physis z novus-common)
|
||||
target_include_directories(novus-launcher PUBLIC include)
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <QMainWindow>
|
||||
#include "novusmainwindow.h"
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
class MainWindow : public NovusMainWindow
|
||||
{
|
||||
public:
|
||||
MainWindow();
|
||||
|
|
|
@ -8,12 +8,17 @@
|
|||
#include <QMessageBox>
|
||||
#include <physis.hpp>
|
||||
|
||||
#include "aboutdata.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
customizeAboutData(QStringLiteral("launcher"),
|
||||
QStringLiteral("SDK Launcher"),
|
||||
QStringLiteral("Handles setting up and launching various Novus SDK components."));
|
||||
|
||||
KConfig config(QStringLiteral("novusrc"));
|
||||
KConfigGroup game = config.group(QStringLiteral("Game"));
|
||||
|
||||
|
|
|
@ -18,9 +18,8 @@ static QMap<QString, QString> applications = {{QStringLiteral("Armoury - View an
|
|||
{QStringLiteral("Model Viewer - Preview MDL files"), QStringLiteral("novus-mdlviewer")}};
|
||||
|
||||
MainWindow::MainWindow()
|
||||
: NovusMainWindow()
|
||||
{
|
||||
setWindowTitle(QStringLiteral("Novus SDK"));
|
||||
|
||||
auto appList = new QListWidget();
|
||||
|
||||
auto applicationHeader = new QListWidgetItem();
|
||||
|
|
Loading…
Add table
Reference in a new issue