aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-01-18 22:01:48 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-01-18 22:01:48 -0500
commit0c61f00d57a4ebe6e3072dd220091f31db2838c0 (patch)
treea70036d9b37df07c4f23fc4fd0ef0d0b7d68af9f
parent44e59c5ff469a1f4b9d86a27068e6d0388d4f233 (diff)
downloaderable-godot-0c61f00d57a4ebe6e3072dd220091f31db2838c0.tar.gz
erable-godot-0c61f00d57a4ebe6e3072dd220091f31db2838c0.tar.bz2
erable-godot-0c61f00d57a4ebe6e3072dd220091f31db2838c0.zip
Added project files
-rw-r--r--AleePlayer.pro34
-rw-r--r--AleePlayer_en_CA.ts3
-rw-r--r--main.cpp11
-rw-r--r--player.cpp15
-rw-r--r--player.h21
-rw-r--r--player.ui22
6 files changed, 106 insertions, 0 deletions
diff --git a/AleePlayer.pro b/AleePlayer.pro
new file mode 100644
index 0000000..1b6707b
--- /dev/null
+++ b/AleePlayer.pro
@@ -0,0 +1,34 @@
+QT += core gui
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+CONFIG += c++11
+
+# The following define makes your compiler emit warnings if you use
+# any Qt feature that has been marked deprecated (the exact warnings
+# depend on your compiler). Please consult the documentation of the
+# deprecated API in order to know how to port your code away from it.
+DEFINES += QT_DEPRECATED_WARNINGS
+
+# You can also make your code fail to compile if it uses deprecated APIs.
+# In order to do so, uncomment the following line.
+# You can also select to disable deprecated APIs only up to a certain version of Qt.
+#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
+
+SOURCES += \
+ main.cpp \
+ player.cpp
+
+HEADERS += \
+ player.h
+
+FORMS += \
+ player.ui
+
+TRANSLATIONS += \
+ AleePlayer_en_CA.ts
+
+# Default rules for deployment.
+qnx: target.path = /tmp/$${TARGET}/bin
+else: unix:!android: target.path = /opt/$${TARGET}/bin
+!isEmpty(target.path): INSTALLS += target
diff --git a/AleePlayer_en_CA.ts b/AleePlayer_en_CA.ts
new file mode 100644
index 0000000..3cee958
--- /dev/null
+++ b/AleePlayer_en_CA.ts
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE TS>
+<TS version="2.1" language="AleePlayer_en_CA"></TS>
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 0000000..784d95d
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,11 @@
+#include "player.h"
+
+#include <QApplication>
+
+int main(int argc, char *argv[])
+{
+ QApplication a(argc, argv);
+ Player w;
+ w.show();
+ return a.exec();
+}
diff --git a/player.cpp b/player.cpp
new file mode 100644
index 0000000..121d5e0
--- /dev/null
+++ b/player.cpp
@@ -0,0 +1,15 @@
+#include "player.h"
+#include "ui_player.h"
+
+Player::Player(QWidget *parent)
+ : QMainWindow(parent)
+ , ui(new Ui::Player)
+{
+ ui->setupUi(this);
+}
+
+Player::~Player()
+{
+ delete ui;
+}
+
diff --git a/player.h b/player.h
new file mode 100644
index 0000000..aaa5a5d
--- /dev/null
+++ b/player.h
@@ -0,0 +1,21 @@
+#ifndef PLAYER_H
+#define PLAYER_H
+
+#include <QMainWindow>
+
+QT_BEGIN_NAMESPACE
+namespace Ui { class Player; }
+QT_END_NAMESPACE
+
+class Player : public QMainWindow
+{
+ Q_OBJECT
+
+public:
+ Player(QWidget *parent = nullptr);
+ ~Player();
+
+private:
+ Ui::Player *ui;
+};
+#endif // PLAYER_H
diff --git a/player.ui b/player.ui
new file mode 100644
index 0000000..df71347
--- /dev/null
+++ b/player.ui
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Player</class>
+ <widget class="QMainWindow" name="Player">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>800</width>
+ <height>600</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Player</string>
+ </property>
+ <widget class="QWidget" name="centralwidget"/>
+ <widget class="QMenuBar" name="menubar"/>
+ <widget class="QStatusBar" name="statusbar"/>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>