From 843029b334e4e256c652f618ae998508d20ee2a6 Mon Sep 17 00:00:00 2001 From: alecksphillips Date: Tue, 24 Jun 2014 11:15:46 +0100 Subject: [PATCH] Changes as requested Removed unnecessary () and changed to hypnotoad_.get() --- src/widgets/nowplayingwidget.cpp | 12 ++++++------ src/widgets/nowplayingwidget.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/widgets/nowplayingwidget.cpp b/src/widgets/nowplayingwidget.cpp index b31073e1b..0649f3c4e 100644 --- a/src/widgets/nowplayingwidget.cpp +++ b/src/widgets/nowplayingwidget.cpp @@ -269,7 +269,7 @@ void NowPlayingWidget::UpdateDetailsText() { case LargeSongDetailsBelow: details_->setTextWidth(cover_loader_options_.desired_height_); if (fit_width_) { - details_->setDefaultStyleSheet( + details_->setDefaultStyleSheet( "p {" " font-size: small;" "}"); @@ -534,11 +534,11 @@ void NowPlayingWidget::contextMenuEvent(QContextMenuEvent* e) { menu_->popup(mapToGlobal(e->pos())); } -void NowPlayingWidget::mouseReleaseEvent(QMouseEvent *) { - //Same behaviour as right-click > Show Fullsize - if((!aww_) && !(static_cast(hypnotoad_))){ - ShowCover(); - } +void NowPlayingWidget::mouseReleaseEvent(QMouseEvent*) { + // Same behaviour as right-click > Show Fullsize + if (!aww_ && !hypnotoad_.get()) { + ShowCover(); + } } void NowPlayingWidget::ShowAboveStatusBar(bool above) { diff --git a/src/widgets/nowplayingwidget.h b/src/widgets/nowplayingwidget.h index 0e8f447b7..b50b6ff1b 100644 --- a/src/widgets/nowplayingwidget.h +++ b/src/widgets/nowplayingwidget.h @@ -79,7 +79,7 @@ signals: void paintEvent(QPaintEvent* e); void resizeEvent(QResizeEvent*); void contextMenuEvent(QContextMenuEvent* e); - void mouseReleaseEvent(QMouseEvent *); + void mouseReleaseEvent(QMouseEvent*); void dragEnterEvent(QDragEnterEvent* e); void dropEvent(QDropEvent* e);