equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the Qt Designer of the Qt Toolkit. |
7 ** This file is part of the Qt Designer of the Qt Toolkit. |
8 ** |
8 ** |
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; |