#endif
#include <QApplication>
-#include <QLocale>
-#include <QTranslator>
#include <QDate>
-#include <QMutex>
-#include <QMutexLocker>
-#include <QWaitCondition>
#include "qt4.hpp"
#include "../../../share/vlc32x32-christmas.xpm"
#include <vlc_plugin.h>
-#ifdef WIN32
+#ifdef WIN32 /* For static builds */
#include <QtPlugin>
Q_IMPORT_PLUGIN(qjpeg)
Q_IMPORT_PLUGIN(qtaccessiblewidgets)
return VLC_EGENERIC;
}
XCloseDisplay( p_display );
+ putenv( "XLIB_SKIP_ARGB_VISUALS=1" );
#endif
/* Allocations of p_sys */
intf_thread_t *p_intf = (intf_thread_t *)p_this;
intf_sys_t *p_sys = p_intf->p_sys;
- var_Destroy (p_this->p_libvlc, "qt4-iface");
+ if( !p_sys->b_isDialogProvider )
+ var_Destroy (p_this->p_libvlc, "qt4-iface");
+
QVLCApp::triggerQuit();
vlc_join (p_sys->thread, NULL);
/* Icon setting */
if( QDate::currentDate().dayOfYear() >= 352 ) /* One Week before Xmas */
- app.setWindowIcon( QIcon( QPixmap(vlc_christmas_xpm) ) );
+ app.setWindowIcon( QIcon(vlc_christmas_xpm) );
else
- app.setWindowIcon( QIcon( QPixmap(vlc_xpm) ) );
+ app.setWindowIcon( QIcon(vlc_xpm) );
/* Initialize timers and the Dialog Provider */
DialogsProvider::getInstance( p_intf );
MainInputManager::killInstance();
-
/* Delete the application automatically */
#ifdef Q_WS_X11
free( display );
msg_Dbg( p_obj, "releasing video..." );
p_mi->releaseVideo();
}
+