From 3380fd84e8a8f73fc5523111821c743bde988009 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 6 May 2017 02:35:54 +0200 Subject: Indicate position of selected file Indicate the position of the selected file (left or right of the view) by unicode sign 0x26a5 on the respective side. --- playerwidget.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/playerwidget.cpp b/playerwidget.cpp index f34725a..ec6fe0b 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -192,7 +192,8 @@ void PlayerWidget::setupGui(){ songSliderL->addWidget(mPos); //now playing info - QGroupBox *currentInfoGB = new QGroupBox(tr("Now playing")); + QString currentInfoGBS = QString(tr("Now Playing %1")).arg(QChar(0x26A5)); + QGroupBox *currentInfoGB = new QGroupBox(currentInfoGBS); mCurrentTE = new QTextEdit; mCurrentTE->setFont(QFont("courier")); mCurrentTE->setReadOnly(true); @@ -201,7 +202,8 @@ void PlayerWidget::setupGui(){ currentInfoGB->setLayout(currentInfoL); //current left info - QGroupBox *leftInfoGB = new QGroupBox(tr("<-- Selected")); + QString leftInfoGBS = QString(tr("%1 Selected")).arg(QChar(0x26A5)); + QGroupBox *leftInfoGB = new QGroupBox(leftInfoGBS); mLeftTE = new QTextEdit; mLeftTE->setFont(QFont("courier")); mLeftTE->setReadOnly(true); @@ -210,7 +212,8 @@ void PlayerWidget::setupGui(){ leftInfoGB->setLayout(leftInfoL); //current right info - QGroupBox *rightInfoGB = new QGroupBox(tr("Selected -->")); + QString rightInfoGBS = QString(tr("Selected %1")).arg(QChar(0x26A5)); + QGroupBox *rightInfoGB = new QGroupBox(rightInfoGBS); mRightTE = new QTextEdit; mRightTE->setFont(QFont("courier")); mRightTE->setReadOnly(true); -- cgit v1.2.3-70-g09d2