Changes as requested
Removed unnecessary () and changed to hypnotoad_.get()
This commit is contained in:
parent
a9c944e42a
commit
843029b334
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue