Changeset 131 in pacpusframework


Ignore:
Timestamp:
Jul 30, 2013, 2:17:37 PM (11 years ago)
Author:
Marek Kurdej
Message:

Update: using Q_GADGET instead of Q_OBJECT to have signals/slot support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0-beta1/include/Pacpus/kernel/PacpusEvent.h

    r125 r131  
    3636};
    3737
    38 class PACPUSLIB_API PacpusEvent : public QEvent
     38class PACPUSLIB_API PacpusEvent
     39    : public QEvent
    3940{
    40     Q_OBJECT // TODO see if good ??
     41    Q_GADGET // permits to use signals and slots (using Q_SIGNAL, Q_SLOT) without inheriting from QObject
     42
    4143public:
    4244    PacpusEvent(PacpusEventType type, road_time_t t = road_time(), road_timerange_t tr = 0):QEvent(QEvent::Type(type)),t_(t),tr_(tr) {}
Note: See TracChangeset for help on using the changeset viewer.