]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/qt4.hpp
Stop allocating QSettings all the time everywhere.
[vlc] / modules / gui / qt4 / qt4.hpp
index dec423d108016aeef95d5e0b362cd8fbe6740d8f..7b0236ceccf5114f6c494d127162e500831722d6 100644 (file)
@@ -46,12 +46,15 @@ class QMenu;
 class MainInterface;
 class DialogsProvider;
 class VideoWidget;
+class QSettings;
 
 struct intf_sys_t
 {
     QApplication *p_app;
     MainInterface *p_mi;
 
+    QSettings *mainSettings;
+
     bool b_isDialogProvider;
 
     playlist_t *p_playlist;
@@ -106,6 +109,8 @@ struct intf_sys_t
     #define setLayoutMargins( a, b, c, d, e) setMargin( e )
 #endif
 
+#define getSettings() p_intf->p_sys->mainSettings
+
 enum {
     DialogEventType = 0,
     IMEventType     = 100,