Add back thumbbar
This commit is contained in:
parent
b6693a71f9
commit
295ac3c458
@ -193,7 +193,7 @@
|
|||||||
#include "smartplaylists/smartplaylistsviewcontainer.h"
|
#include "smartplaylists/smartplaylistsviewcontainer.h"
|
||||||
#include "smartplaylists/smartplaylistsview.h"
|
#include "smartplaylists/smartplaylistsview.h"
|
||||||
|
|
||||||
#if defined(Q_OS_WIN) && defined(DEBUG)
|
#ifdef Q_OS_WIN
|
||||||
# include "windows7thumbbar.h"
|
# include "windows7thumbbar.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ const int kTrackPositionUpdateTimeMs = 1000;
|
|||||||
MainWindow::MainWindow(Application *app, SystemTrayIcon *tray_icon, OSDBase *osd, const CommandlineOptions &options, QWidget *parent) :
|
MainWindow::MainWindow(Application *app, SystemTrayIcon *tray_icon, OSDBase *osd, const CommandlineOptions &options, QWidget *parent) :
|
||||||
QMainWindow(parent),
|
QMainWindow(parent),
|
||||||
ui_(new Ui_MainWindow),
|
ui_(new Ui_MainWindow),
|
||||||
#if defined(Q_OS_WIN) && defined(DEBUG)
|
#ifdef Q_OS_WIN
|
||||||
thumbbar_(new Windows7ThumbBar(this)),
|
thumbbar_(new Windows7ThumbBar(this)),
|
||||||
#endif
|
#endif
|
||||||
app_(app),
|
app_(app),
|
||||||
@ -751,7 +751,7 @@ MainWindow::MainWindow(Application *app, SystemTrayIcon *tray_icon, OSDBase *osd
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Windows 7 thumbbar buttons
|
// Windows 7 thumbbar buttons
|
||||||
#if defined(Q_OS_WIN) && defined(DEBUG)
|
#ifdef Q_OS_WIN
|
||||||
thumbbar_->SetActions(QList<QAction*>() << ui_->action_previous_track << ui_->action_play_pause << ui_->action_stop << ui_->action_next_track << nullptr << ui_->action_love);
|
thumbbar_->SetActions(QList<QAction*>() << ui_->action_previous_track << ui_->action_play_pause << ui_->action_stop << ui_->action_next_track << nullptr << ui_->action_love);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -2752,7 +2752,7 @@ bool MainWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
|||||||
Q_UNUSED(eventType);
|
Q_UNUSED(eventType);
|
||||||
Q_UNUSED(result);
|
Q_UNUSED(result);
|
||||||
|
|
||||||
#if defined(Q_OS_WIN) && defined(DEBUG)
|
#ifdef Q_OS_WIN
|
||||||
MSG *msg = static_cast<MSG*>(message);
|
MSG *msg = static_cast<MSG*>(message);
|
||||||
thumbbar_->HandleWinEvent(msg);
|
thumbbar_->HandleWinEvent(msg);
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user