[vlc-commits] main_interface_win32: Fix missing taskbar icons
Hugo Beauzée-Luyssen
git at videolan.org
Wed Dec 28 17:00:06 CET 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Dec 28 16:41:23 2016 +0100| [ba723e9d80de993766b934641a89e5a0dd4b5406] | committer: Hugo Beauzée-Luyssen
main_interface_win32: Fix missing taskbar icons
Fix #14003
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba723e9d80de993766b934641a89e5a0dd4b5406
---
modules/gui/qt/main_interface.hpp | 3 +++
modules/gui/qt/main_interface_win32.cpp | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/modules/gui/qt/main_interface.hpp b/modules/gui/qt/main_interface.hpp
index f1b2202..5a13733 100644
--- a/modules/gui/qt/main_interface.hpp
+++ b/modules/gui/qt/main_interface.hpp
@@ -93,6 +93,9 @@ protected:
void dropEventPlay( QDropEvent* event, bool b_play ) { dropEventPlay(event, b_play, true); }
void dropEventPlay( QDropEvent *, bool, bool );
#ifdef _WIN32
+#if HAS_QT5
+ virtual bool nativeEvent(const QByteArray &eventType, void *message, long *result);
+#endif
virtual bool winEvent( MSG *, long * );
#endif
void changeEvent( QEvent * ) Q_DECL_OVERRIDE;
diff --git a/modules/gui/qt/main_interface_win32.cpp b/modules/gui/qt/main_interface_win32.cpp
index 7deb702..00a840a 100644
--- a/modules/gui/qt/main_interface_win32.cpp
+++ b/modules/gui/qt/main_interface_win32.cpp
@@ -197,6 +197,11 @@ void MainInterface::createTaskBarButtons()
this, changeThumbbarButtons( int ) );
}
+bool MainInterface::nativeEvent(const QByteArray &, void *message, long *result)
+{
+ return winEvent( static_cast<MSG*>( message ), result );
+}
+
bool MainInterface::winEvent ( MSG * msg, long * result )
{
if (msg->message == taskbar_wmsg)
More information about the vlc-commits
mailing list