summaryrefslogtreecommitdiffstats
path: root/playerwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'playerwidget.cpp')
-rw-r--r--playerwidget.cpp29
1 files changed, 26 insertions, 3 deletions
diff --git a/playerwidget.cpp b/playerwidget.cpp
index ce62306..714e47d 100644
--- a/playerwidget.cpp
+++ b/playerwidget.cpp
@@ -191,8 +191,8 @@ void PlayerWidget::setupGui(){
songSliderL->addWidget(mSongSlider);
songSliderL->addWidget(mPos);
- //current info
- QGroupBox *currentInfoGB = new QGroupBox(tr("Current"));
+ //now playing info
+ QGroupBox *currentInfoGB = new QGroupBox(tr("Now playing"));
mCurrentTE = new QTextEdit;
mCurrentTE->setFont(QFont("courier"));
mCurrentTE->setReadOnly(true);
@@ -200,6 +200,24 @@ void PlayerWidget::setupGui(){
currentInfoL->addWidget(mCurrentTE);
currentInfoGB->setLayout(currentInfoL);
+ //current left info
+ QGroupBox *leftInfoGB = new QGroupBox(tr("<-- Selected"));
+ mLeftTE = new QTextEdit;
+ mLeftTE->setFont(QFont("courier"));
+ mLeftTE->setReadOnly(true);
+ QVBoxLayout *leftInfoL = new QVBoxLayout;
+ leftInfoL->addWidget(mLeftTE);
+ leftInfoGB->setLayout(leftInfoL);
+
+ //current right info
+ QGroupBox *rightInfoGB = new QGroupBox(tr("Selected -->"));
+ mRightTE = new QTextEdit;
+ mRightTE->setFont(QFont("courier"));
+ mRightTE->setReadOnly(true);
+ QVBoxLayout *rightInfoL = new QVBoxLayout;
+ rightInfoL->addWidget(mRightTE);
+ rightInfoGB->setLayout(rightInfoL);
+
//volume slider
QLabel *l2 = new QLabel(tr("Volume"));
mVolumeSlider = new QSlider;
@@ -219,11 +237,16 @@ void PlayerWidget::setupGui(){
//center widget
QWidget *centerWidget = new QWidget;
QVBoxLayout *centerWidgetL = new QVBoxLayout;
+ QSplitter *centerSplitter = new QSplitter;
+ centerSplitter->setOrientation(Qt::Vertical);
+ centerSplitter->addWidget(currentInfoGB);
+ centerSplitter->addWidget(leftInfoGB);
+ centerSplitter->addWidget(rightInfoGB);
mToolBar = new QToolBar;
centerWidgetL->addWidget(mToolBar);
centerWidgetL->addWidget(mNowPlayingL);
centerWidgetL->addLayout(songSliderL);
- centerWidgetL->addWidget(currentInfoGB);
+ centerWidgetL->addWidget(centerSplitter);
centerWidgetL->addLayout(volumeL);
centerWidget->setLayout(centerWidgetL);