From 21f2659dd4d4267f6385fd5492d6e407d8b183a2 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 26 Jan 2020 17:03:37 -0500 Subject: Changed ui layout --- main.cpp | 14 ++++++- player.cpp | 6 +-- player.h | 2 +- player.ui | 137 ++++++++++++++++++++++++------------------------------------- 4 files changed, 71 insertions(+), 88 deletions(-) diff --git a/main.cpp b/main.cpp index 85f57aa..063d45d 100644 --- a/main.cpp +++ b/main.cpp @@ -1,12 +1,24 @@ #include "player.h" #include #include +#include +#include #include int main(int argc, char *argv[]) { - qInfo() << "AleePlayer: A music player by Alee Productions. Licensed with GPL-3.0\n"; + qInfo() << "AleePlayer: A music player by Alee Productions. Licensed with GPL-3.0.\n"; + + qDebug() << "Creating files..."; + + //QDir directory(QDir::homePath() + "/.alee-productions/AleePlayer"); + + //File file(directory.absoluteFilePath("test.txt")); + + //file.open(QFile::WriteOnly); + //file.close(); + QApplication a(argc, argv); Player musicPlayer; musicPlayer.show(); diff --git a/player.cpp b/player.cpp index 69fdd8a..632e9e2 100644 --- a/player.cpp +++ b/player.cpp @@ -6,7 +6,7 @@ #include "ui_player.h" #include "about.h" -void Player::mFileDialog() +void Player::loadFile() { QString mFile; QMessageBox msgbox; @@ -92,12 +92,12 @@ void Player::on_actionAbout_triggered() void Player::on_mediaButton_pressed() { - mFileDialog(); + loadFile(); } void Player::on_actionOpen_triggered() { - mFileDialog(); + loadFile(); } diff --git a/player.h b/player.h index efecef9..69d035e 100644 --- a/player.h +++ b/player.h @@ -30,7 +30,7 @@ private slots: void on_stopButton_pressed(); - void mFileDialog(); + void loadFile(); void on_volumeSlider_sliderMoved(int position); diff --git a/player.ui b/player.ui index b983fac..6127b82 100644 --- a/player.ui +++ b/player.ui @@ -6,8 +6,8 @@ 0 0 - 800 - 607 + 837 + 680 @@ -15,6 +15,9 @@ + + + @@ -26,19 +29,7 @@ - - - - 14 - - - - <html><head/><body><p>Coming soon in a later update!</p></body></html> - - - Qt::AlignCenter - - + @@ -46,13 +37,11 @@ Playlist + - - - - + false @@ -62,7 +51,7 @@ - + @@ -80,7 +69,7 @@ QFrame::Raised - + Stop @@ -90,20 +79,7 @@ - - - - Qt::Horizontal - - - - 40 - 20 - - - - - + Browse @@ -113,33 +89,42 @@ - - - - Qt::Horizontal + + + + Volume - - - 40 - 20 - + + + + + + + 14 + - + + Title + + - - - - Qt::Horizontal + + + + Play - - - 40 - 20 - + + false - + + false + + + false + + - + false @@ -158,42 +143,22 @@ - - - - Play - - - false - - - false - - - false - - - - - + + Qt::Horizontal + + QSizePolicy::Maximum + - 40 + 200 20 - - - - Volume - - - @@ -204,7 +169,7 @@ 0 0 - 800 + 837 23 @@ -217,7 +182,13 @@ + + + View + + + -- cgit v1.2.3