]> git.sesse.net Git - vlc/commitdiff
qt4: forces plastique style temporarily
authorRafaël Carré <funman@videolan.org>
Sat, 1 Sep 2007 13:54:36 +0000 (13:54 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 1 Sep 2007 13:54:36 +0000 (13:54 +0000)
modules/gui/qt4/qt4.cpp

index a5b39cb0d14aa85f84ae826979b7c632a5060ae1..581aa04a12e7bfafd59164a4f0731cd9553907eb 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#ifndef WIN32
-#   include <signal.h>
-#   include <QStyle>
-#endif
-
 #include <QApplication>
 
 #include "qt4.hpp"
@@ -204,8 +199,10 @@ static void Init( intf_thread_t *p_intf )
     p_intf->p_sys->p_app = app;
 
 #ifndef WIN32
-/* that forces the execution of QCleanlooksStylePrivate::lookupIconTheme() */
-    app->style()->standardIcon( QStyle::SP_TitleBarMenuButton );
+    /* kludge:
+     * forces plastique style as cleanlooks bugs on gnome */
+    QPlastiqueStyle *plastique = new QPlastiqueStyle;
+    app->setStyle( plastique );
 #endif
 
     // Initialize timers