tools/designer/src/lib/shared/connectionedit_p.h
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
    85     typedef QMap<QWidget*, QWidget*> WidgetSet;
    85     typedef QMap<QWidget*, QWidget*> WidgetSet;
    86 
    86 
    87     class EndPoint {
    87     class EndPoint {
    88     public:
    88     public:
    89         enum Type { Source, Target };
    89         enum Type { Source, Target };
    90         EndPoint(Connection *_con = 0, Type _type = Source) : con(_con), type(_type) {}
    90         explicit EndPoint(Connection *_con = 0, Type _type = Source) : con(_con), type(_type) {}
    91         bool isNull() const { return con == 0; }
    91         bool isNull() const { return con == 0; }
    92         bool operator == (const EndPoint &other) const { return con == other.con && type == other.type; }
    92         bool operator == (const EndPoint &other) const { return con == other.con && type == other.type; }
    93         bool operator != (const EndPoint &other) const { return !operator == (other); }
    93         bool operator != (const EndPoint &other) const { return !operator == (other); }
    94         Connection *con;
    94         Connection *con;
    95         Type type;
    95         Type type;