diff options
Diffstat (limited to 'playerwidget.cpp')
-rw-r--r-- | playerwidget.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/playerwidget.cpp b/playerwidget.cpp index 563f531..1e4a7c6 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -31,7 +31,6 @@ #include "playerwidget.h" #include "beetview.h" #include "indexerdialog.h" -#include "toolwindow.h" #include "globals.h" #include "helper.h" @@ -55,9 +54,6 @@ void PlayerWidget::setupGui(){ mTrayIcon->setIcon(QIcon(":/stop.png")); mTrayIcon->show(); - //tool window - mToolWin = new ToolWindow; - //THE view mView = new BeetView; mView->setAlternatingRowColors(true); @@ -638,8 +634,6 @@ void PlayerWidget::doPlay(){ emit setWinTitle(mCurWinTitle); mTrayIcon->setIcon(QIcon(":/play.png")); mTrayIcon->setToolTip(mCurWinTitle); - mToolWin->toHTML(tr("[Continue...]")); - mToolWin->showMe(); return; } int playListCount = mPlayListModel->rowCount(); @@ -664,8 +658,6 @@ void PlayerWidget::doStop(){ emit setWinTitle(winTitle); mTrayIcon->setIcon(QIcon(":/stop.png")); mTrayIcon->setToolTip(tr("[Stopped]")); - mToolWin->toHTML("[Stopped]"); - mToolWin->showMe(); } void PlayerWidget::doPause(){ @@ -676,8 +668,6 @@ void PlayerWidget::doPause(){ emit setWinTitle(winTitle); mTrayIcon->setIcon(QIcon(":/pause.png")); mTrayIcon->setToolTip(tr("[Paused]")); - mToolWin->toHTML("[Paused]"); - mToolWin->showMe(); } void PlayerWidget::doPlayOrPause(){ @@ -1021,8 +1011,6 @@ void PlayerWidget::play(const QString &fullPath){ toolStr.append(QString("<p style=\"margin:7px;\"><span style=\"font-weight: bold; font-size: large;\">%1</span></p>").arg(artist)); toolStr.append(QString("<p style=\"margin:7px;\"><span style=\"font-weight: normal; font-size: medium;\">%1</span></p>").arg(title)); toolStr.append("</body></html>"); - mToolWin->setText(toolStr); - mToolWin->showMe(); mPlayer->play(); mPlayA->setChecked(true); @@ -1033,18 +1021,10 @@ void PlayerWidget::volumeChanged(int volume){ QString s = QString("%1 %").arg(volume, 3, 10, QChar('0')); mVolumePos->setText(s); QString tool = QString(tr("Volume: %1")).arg(s); - mToolWin->toHTML(tool); - mToolWin->showMe(); } void PlayerWidget::mute(bool triggered){ mPlayer->setMuted(triggered); - if(triggered){ - mToolWin->toHTML(tr("[Muted]")); - }else{ - mToolWin->toHTML(tr("[Unmuted]")); - } - mToolWin->showMe(); } void PlayerWidget::next(){ |