From 0c61f00d57a4ebe6e3072dd220091f31db2838c0 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 18 Jan 2020 22:01:48 -0500 Subject: Added project files --- AleePlayer.pro | 34 ++++++++++++++++++++++++++++++++++ AleePlayer_en_CA.ts | 3 +++ main.cpp | 11 +++++++++++ player.cpp | 15 +++++++++++++++ player.h | 21 +++++++++++++++++++++ player.ui | 22 ++++++++++++++++++++++ 6 files changed, 106 insertions(+) create mode 100644 AleePlayer.pro create mode 100644 AleePlayer_en_CA.ts create mode 100644 main.cpp create mode 100644 player.cpp create mode 100644 player.h create mode 100644 player.ui 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 @@ + + + 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 + +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 + +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 @@ + + + Player + + + + 0 + 0 + 800 + 600 + + + + Player + + + + + + + + -- cgit v1.2.3