Commit a73b86a5 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: rename even ID offsets as what they are

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