uh lets ignore that I did the last commits from the wrong folder
This commit is contained in:
22
src/Public/MainWindow.cpp
Normal file → Executable file
22
src/Public/MainWindow.cpp
Normal file → Executable file
@@ -1,15 +1,8 @@
|
||||
#include <QtWidgets>
|
||||
#include <QLayout>
|
||||
|
||||
#include "MainWindow.h"
|
||||
#include "Modules/FloatingControls/FloatingControls.h"
|
||||
#include "Layouts/QOverlayout.h"
|
||||
#include "Pages/pages.h"
|
||||
#include "Pages/Playlist/PlaylistPage.h"
|
||||
#include "Widgets/Playlist/PlaylistWidget.h"
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
|
||||
void MainWindow::setupMainWindow( ) {
|
||||
this->setWindowTitle("Crylia Player");
|
||||
this->setWindowIcon(QIcon(":aqua.jpg"));
|
||||
|
||||
QWidget* mw = new QWidget(this);
|
||||
mw->setContentsMargins(10, 10, 10, 10);
|
||||
@@ -20,7 +13,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
|
||||
Pages* p = new Pages(mw);
|
||||
PlaylistPage* pp = new PlaylistPage(mw);
|
||||
PlaylistWidget* pw = new PlaylistWidget(mw);
|
||||
FloatingControls* fc = new FloatingControls(mw);
|
||||
FloatingControls* fc = new FloatingControls(mw, this->path);
|
||||
|
||||
QVBoxLayout* vbox = new QVBoxLayout( );
|
||||
vbox->addWidget(fc, 0, Qt::AlignBottom);
|
||||
@@ -41,4 +34,13 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
|
||||
this->setCentralWidget(mw);
|
||||
}
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) {
|
||||
setupMainWindow( );
|
||||
}
|
||||
|
||||
MainWindow::MainWindow(std::filesystem::path path, QWidget* parent)
|
||||
: QMainWindow(parent), path(path) {
|
||||
setupMainWindow( );
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow( ) { }
|
||||
|
||||
Reference in New Issue
Block a user