Commit 8acbb8ac authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - use enums instead of defines when you can.

parent 1674135c
...@@ -35,12 +35,6 @@ ...@@ -35,12 +35,6 @@
#include <QTimer> #include <QTimer>
#include <QApplication> #include <QApplication>
#define EXT_FILTER_MEDIA 0x01
#define EXT_FILTER_VIDEO 0x02
#define EXT_FILTER_AUDIO 0x04
#define EXT_FILTER_PLAYLIST 0x08
#define EXT_FILTER_SUBTITLE 0x10
#define ADD_FILTER_MEDIA( string ) \ #define ADD_FILTER_MEDIA( string ) \
string += qtr("Media Files"); \ string += qtr("Media Files"); \
string += " ( "; \ string += " ( "; \
...@@ -70,15 +64,25 @@ ...@@ -70,15 +64,25 @@
string += qtr("All Files"); \ string += qtr("All Files"); \
string += " (*.*)"; string += " (*.*)";
#define OPEN_FILE_TAB 0x0 #define EXT_FILTER_MEDIA 0x01
#define OPEN_DISC_TAB 0x1 #define EXT_FILTER_VIDEO 0x02
#define OPEN_NETWORK_TAB 0x2 #define EXT_FILTER_AUDIO 0x04
#define OPEN_CAPTURE_TAB 0x3 #define EXT_FILTER_PLAYLIST 0x08
#define EXT_FILTER_SUBTITLE 0x10
enum {
OPEN_FILE_TAB,
OPEN_DISC_TAB,
OPEN_NETWORK_TAB,
OPEN_CAPTURE_TAB
};
#define OPEN_AND_PLAY 0x0 enum {
#define OPEN_AND_STREAM 0x1 OPEN_AND_PLAY,
#define OPEN_AND_SAVE 0x2 OPEN_AND_STREAM,
#define ENQUEUE 0x4 OPEN_AND_SAVE,
ENQUEUE
};
class QEvent; class QEvent;
class QSignalMapper; class QSignalMapper;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment