Changes as requested

Removed unnecessary () and changed to hypnotoad_.get()
This commit is contained in:
alecksphillips 2014-06-24 11:15:46 +01:00
parent a9c944e42a
commit 843029b334
2 changed files with 7 additions and 7 deletions

View File

@ -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<bool>(hypnotoad_))){
ShowCover();
}
void NowPlayingWidget::mouseReleaseEvent(QMouseEvent*) {
// Same behaviour as right-click > Show Fullsize
if (!aww_ && !hypnotoad_.get()) {
ShowCover();
}
}
void NowPlayingWidget::ShowAboveStatusBar(bool above) {

View File

@ -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);