[vlc-commits] Qt: move from Q_WS to Q_OS in MainInterface, QVLCApp and (part of qt4.cpp)

Jean-Baptiste Kempf git at videolan.org
Mon Jul 15 17:09:51 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul 15 17:08:47 2013 +0200| [9daf01ef2eb97d27cf0319e1def3ac4c20c0eb73] | committer: Jean-Baptiste Kempf

Qt: move from Q_WS to Q_OS in MainInterface, QVLCApp and (part of qt4.cpp)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9daf01ef2eb97d27cf0319e1def3ac4c20c0eb73
---

 modules/gui/qt4/main_interface.cpp |    4 ++--
 modules/gui/qt4/qt4.cpp            |   12 ++++++------
 modules/gui/qt4/util/qvlcapp.hpp   |    2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 6d80a11..7698f93 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -112,7 +112,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     setWindowRole( "vlc-main" );
     setWindowIcon( QApplication::windowIcon() );
     setWindowOpacity( var_InheritFloat( p_intf, "qt-opacity" ) );
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
     setAttribute( Qt::WA_MacBrushedMetal );
 #endif
 
@@ -1148,7 +1148,7 @@ void MainInterface::handleSystrayClick(
     {
         case QSystemTrayIcon::Trigger:
         case QSystemTrayIcon::DoubleClick:
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
             VLCMenuBar::updateSystrayMenu( this, p_intf );
 #else
             toggleUpdateSystrayMenu();
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 2492dd5..18021df 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -318,7 +318,7 @@ static bool active = false;
  * Module callbacks
  *****************************************************************************/
 
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
 /* Used to abort the app.exec() on OSX after libvlc_Quit is called */
 #include "../../../lib/libvlc_internal.h" /* libvlc_SetExitHandler */
 static void Abort( void *obj )
@@ -369,7 +369,7 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider )
 
     /* */
     vlc_sem_init (&ready, 0);
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
     /* Run mainloop on the main thread as Cocoa requires */
     libvlc_SetExitHandler( p_intf->p_libvlc, Abort, p_intf );
     Thread( (void *)p_intf );
@@ -388,7 +388,7 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider )
     vlc_sem_destroy (&ready);
     busy = active = true;
 
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
     if( !isDialogProvider )
     {
         RegisterIntf( p_this );
@@ -429,7 +429,7 @@ static void Close( vlc_object_t *p_this )
     QVLCApp::triggerQuit();
 
     msg_Dbg( p_this, "waiting for UI thread..." );
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
     vlc_join (p_sys->thread, NULL);
 #endif
     delete p_sys;
@@ -465,7 +465,7 @@ static void *Thread( void *obj )
             QSettings::UserScope, "vlc", "vlc-qt-interface" );
 
     /* Icon setting, Mac uses icon from .icns */
-#ifndef Q_WS_MAC
+#ifndef Q_OS_MAC
     if( QDate::currentDate().dayOfYear() >= QT_XMAS_JOKE_DAY && var_InheritBool( p_intf, "qt-icon-change" ) )
         app.setWindowIcon( QIcon::fromTheme( "vlc-xmas", QIcon( ":/logo/vlc128-xmas.png" ) ) );
     else
@@ -526,7 +526,7 @@ static void *Thread( void *obj )
     /* Tell the main LibVLC thread we are ready */
     vlc_sem_post (&ready);
 
-#ifdef Q_WS_MAC
+#ifdef Q_OS_MAC
     /* We took over main thread, register and start here */
     if( !p_intf->p_sys->b_isDialogProvider )
     {
diff --git a/modules/gui/qt4/util/qvlcapp.hpp b/modules/gui/qt4/util/qvlcapp.hpp
index 722a12d..652b700 100644
--- a/modules/gui/qt4/util/qvlcapp.hpp
+++ b/modules/gui/qt4/util/qvlcapp.hpp
@@ -28,7 +28,7 @@
 #include <QApplication>
 #include <QEvent>
 
-#if defined(Q_WS_WIN)
+#if defined(Q_OS_WIN)
 #   include "qt4.hpp"
 #   include <windows.h>
 #   include "input_manager.hpp"



More information about the vlc-commits mailing list