]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/recents.hpp
Qt: hotkeys: add check for app's menu shortcuts (fix #7930)
[vlc] / modules / gui / qt4 / recents.hpp
index 48171782ba01625ecfd7b97b8a0733debfcda110..30bd7c9913f614fe73c585c025eb0b3131078e4b 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * recents.cpp : Recents MRL (menu)
+ * recents.hpp : Recents MRL (menu)
  *****************************************************************************
  * Copyright © 2006-2008 the VideoLAN team
  * $Id$
 #include "qt4.hpp"
 
 #include <QObject>
-#include <QList>
-#include <QString>
-#include <QRegExp>
-#include <QSignalMapper>
+class QStringList;
+class QRegExp;
+class QSignalMapper;
 
 #define RECENTS_LIST_SIZE 10
 
@@ -52,7 +51,8 @@ public:
     }
 
     void addRecent( const QString & );
-    QList<QString> recents();
+    QStringList recents();
+
     QSignalMapper *signalMapper;
 
 private:
@@ -61,13 +61,13 @@ private:
 
     static RecentsMRL *instance;
 
+    intf_thread_t *p_intf;
+    QStringList   *stack;
+    QRegExp       *filter;
+    bool          isActive;
+
     void load();
     void save();
-    intf_thread_t* p_intf;
-    QList<QString> *stack;
-    bool isActive;
-    QRegExp *filter;
-
 public slots:
     void clear();
 };