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 ** |
72 namespace qdesigner_internal { |
72 namespace qdesigner_internal { |
73 |
73 |
74 class QDESIGNER_SHARED_EXPORT WidgetDataBaseItem: public QDesignerWidgetDataBaseItemInterface |
74 class QDESIGNER_SHARED_EXPORT WidgetDataBaseItem: public QDesignerWidgetDataBaseItemInterface |
75 { |
75 { |
76 public: |
76 public: |
77 WidgetDataBaseItem(const QString &name = QString(), |
77 explicit WidgetDataBaseItem(const QString &name = QString(), |
78 const QString &group = QString()); |
78 const QString &group = QString()); |
79 |
79 |
80 QString name() const; |
80 QString name() const; |
81 void setName(const QString &name); |
81 void setName(const QString &name); |
82 |
82 |
83 QString group() const; |
83 QString group() const; |
157 |
157 |
158 class QDESIGNER_SHARED_EXPORT WidgetDataBase: public QDesignerWidgetDataBaseInterface |
158 class QDESIGNER_SHARED_EXPORT WidgetDataBase: public QDesignerWidgetDataBaseInterface |
159 { |
159 { |
160 Q_OBJECT |
160 Q_OBJECT |
161 public: |
161 public: |
162 WidgetDataBase(QDesignerFormEditorInterface *core, QObject *parent = 0); |
162 explicit WidgetDataBase(QDesignerFormEditorInterface *core, QObject *parent = 0); |
163 virtual ~WidgetDataBase(); |
163 virtual ~WidgetDataBase(); |
164 |
164 |
165 virtual QDesignerFormEditorInterface *core() const; |
165 virtual QDesignerFormEditorInterface *core() const; |
166 |
166 |
167 virtual int indexOfObject(QObject *o, bool resolveName = true) const; |
167 virtual int indexOfObject(QObject *o, bool resolveName = true) const; |