Commit a73b86a5 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: rename even ID offsets as what they are

parent 26027de9
...@@ -65,8 +65,8 @@ public slots: ...@@ -65,8 +65,8 @@ public slots:
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
static const int UDOkEvent = QEvent::User + DialogEventType + 21; static const int UDOkEvent = QEvent::User + DialogEventTypeOffset + 21;
static const int UDErrorEvent = QEvent::User + DialogEventType + 22; static const int UDErrorEvent = QEvent::User + DialogEventTypeOffset + 22;
class UpdateDialog : public QVLCFrame, public Singleton<UpdateDialog> class UpdateDialog : public QVLCFrame, public Singleton<UpdateDialog>
{ {
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#include <assert.h> #include <assert.h>
enum { enum {
MsgEvent_Type = QEvent::User + MsgEventType + 1, MsgEvent_Type = QEvent::User + MsgEventTypeOffset + 1,
}; };
class MsgEvent : public QEvent class MsgEvent : public QEvent
......
...@@ -58,10 +58,10 @@ enum { ...@@ -58,10 +58,10 @@ enum {
}; };
enum { enum {
DialogEvent_Type = QEvent::User + DialogEventType + 1, DialogEvent_Type = QEvent::User + DialogEventTypeOffset + 1,
//PLUndockEvent_Type = QEvent::User + DialogEventType + 2; //PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//PLDockEvent_Type = QEvent::User + DialogEventType + 3; //PLDockEvent_Type = QEvent::User + DialogEventType + 3;
SetVideoOnTopEvent_Type = QEvent::User + DialogEventType + 4, SetVideoOnTopEvent_Type = QEvent::User + DialogEventTypeOffset + 4,
}; };
class QEvent; class QEvent;
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <QEvent> #include <QEvent>
enum { enum {
PositionUpdate_Type = QEvent::User + IMEventType + 1, PositionUpdate_Type = QEvent::User + IMEventTypeOffset + 1,
ItemChanged_Type, ItemChanged_Type,
ItemStateChanged_Type, ItemStateChanged_Type,
ItemTitleChanged_Type, ItemTitleChanged_Type,
...@@ -63,7 +63,7 @@ enum { ...@@ -63,7 +63,7 @@ enum {
EPGEvent_Type, EPGEvent_Type,
/* SignalChanged_Type, */ /* SignalChanged_Type, */
FullscreenControlToggle_Type = QEvent::User + IMEventType + 20, FullscreenControlToggle_Type = QEvent::User + IMEventTypeOffset + 20,
FullscreenControlShow_Type, FullscreenControlShow_Type,
FullscreenControlHide_Type, FullscreenControlHide_Type,
FullscreenControlPlanHide_Type, FullscreenControlPlanHide_Type,
...@@ -103,7 +103,7 @@ class PLEvent : public QEvent ...@@ -103,7 +103,7 @@ class PLEvent : public QEvent
public: public:
enum PLEventTypes enum PLEventTypes
{ {
PLItemAppended_Type = QEvent::User + PLEventType + 1, PLItemAppended_Type = QEvent::User + PLEventTypeOffset + 1,
PLItemRemoved_Type, PLItemRemoved_Type,
LeafToParent_Type, LeafToParent_Type,
PLEmpty_Type PLEmpty_Type
......
...@@ -43,10 +43,10 @@ ...@@ -43,10 +43,10 @@
#define HAS_QT47 ( QT_VERSION >= 0x040700 ) #define HAS_QT47 ( QT_VERSION >= 0x040700 )
enum { enum {
DialogEventType = 0, DialogEventTypeOffset = 0,
IMEventType = 100, IMEventTypeOffset = 100,
PLEventType = 200, PLEventTypeOffset = 200,
MsgEventType = 300, MsgEventTypeOffset = 300,
}; };
enum{ enum{
......
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