forked from qt-creator/qt-creator
QmlDesigner: Consistently use nullptr
Fixed by clang-tidy modernize-use-nullptr. Change-Id: Ia2ba90d137365292e95ac340166ed5d1f66a2a56 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tim Jenssen
parent
916883e70f
commit
904d6c1e6f
@@ -37,7 +37,7 @@ class AddSignalHandlerDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AddSignalHandlerDialog(QWidget *parent = 0);
|
||||
explicit AddSignalHandlerDialog(QWidget *parent = nullptr);
|
||||
~AddSignalHandlerDialog() override;
|
||||
void setSignals(const QStringList &_signals);
|
||||
QString signal() const;
|
||||
|
||||
@@ -43,7 +43,7 @@ class ChangeStyleWidgetAction : public QWidgetAction
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit ChangeStyleWidgetAction(QObject *parent = 0);
|
||||
explicit ChangeStyleWidgetAction(QObject *parent = nullptr);
|
||||
void handleModelUpdate(const QString &style);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -36,7 +36,7 @@ class CrumbleBar : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CrumbleBar(QObject *parent = 0);
|
||||
explicit CrumbleBar(QObject *parent = nullptr);
|
||||
~CrumbleBar() override;
|
||||
|
||||
void pushFile(const Utils::FileName &fileName);
|
||||
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
void createDefaultAddResourceHandler();
|
||||
DesignerActionManagerView *view();
|
||||
|
||||
DesignerActionToolBar *createToolBar(QWidget *parent = 0) const;
|
||||
DesignerActionToolBar *createToolBar(QWidget *parent = nullptr) const;
|
||||
void polishActions() const;
|
||||
QGraphicsWidget *createFormEditorToolBar(QGraphicsItem *parent);
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class DebugView : public AbstractView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
DebugView(QObject *parent = 0);
|
||||
DebugView(QObject *parent = nullptr);
|
||||
~DebugView() override;
|
||||
|
||||
// AbstractView
|
||||
|
||||
@@ -37,7 +37,7 @@ class DebugViewWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DebugViewWidget(QWidget *parent = 0);
|
||||
DebugViewWidget(QWidget *parent = nullptr);
|
||||
|
||||
void addLogMessage(const QString &topic, const QString &message, bool highlight = false);
|
||||
void addErrorMessage(const QString &topic, const QString &message);
|
||||
|
||||
@@ -34,7 +34,7 @@ class AnchorIndicatorGraphicsItem : public QGraphicsObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AnchorIndicatorGraphicsItem(QGraphicsItem *parent = 0);
|
||||
explicit AnchorIndicatorGraphicsItem(QGraphicsItem *parent = nullptr);
|
||||
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
||||
|
||||
@@ -32,7 +32,7 @@ class BindingIndicatorGraphicsItem : public QGraphicsObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit BindingIndicatorGraphicsItem(QGraphicsItem *parent = 0);
|
||||
explicit BindingIndicatorGraphicsItem(QGraphicsItem *parent = nullptr);
|
||||
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
|
||||
QRectF boundingRect() const override;
|
||||
|
||||
@@ -81,7 +81,7 @@ protected:
|
||||
void abort();
|
||||
void createQmlItemNode(const ItemLibraryEntry &itemLibraryEntry, const QmlItemNode &parentNode, const QPointF &scenePos);
|
||||
void createQmlItemNodeFromImage(const QString &imageName, const QmlItemNode &parentNode, const QPointF &scenePos);
|
||||
FormEditorItem *targetContainerOrRootItem(const QList<QGraphicsItem*> &itemList, FormEditorItem *urrentItem = 0);
|
||||
FormEditorItem *targetContainerOrRootItem(const QList<QGraphicsItem*> &itemList, FormEditorItem *urrentItem = nullptr);
|
||||
void begin(QPointF scenePos);
|
||||
void end();
|
||||
void end(Snapper::Snapping useSnapping);
|
||||
|
||||
@@ -32,7 +32,7 @@ class FormEditorGraphicsView : public QGraphicsView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit FormEditorGraphicsView(QWidget *parent = 0);
|
||||
explicit FormEditorGraphicsView(QWidget *parent = nullptr);
|
||||
|
||||
void setRootItemRect(const QRectF &rect);
|
||||
QRectF rootItemRect() const;
|
||||
|
||||
@@ -51,7 +51,7 @@ class QMLDESIGNERCORE_EXPORT FormEditorItem : public QGraphicsItem
|
||||
public:
|
||||
~FormEditorItem() override;
|
||||
|
||||
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ) override;
|
||||
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr ) override;
|
||||
|
||||
bool isContainer() const;
|
||||
QmlItemNode qmlItemNode() const;
|
||||
|
||||
@@ -40,8 +40,8 @@ class FormEditorToolButton : public QGraphicsWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit FormEditorToolButton(QAction *action, QGraphicsItem *parent = 0);
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0) override;
|
||||
explicit FormEditorToolButton(QAction *action, QGraphicsItem *parent = nullptr);
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
|
||||
QRectF boundingRect() const override;
|
||||
|
||||
signals:
|
||||
|
||||
@@ -57,7 +57,7 @@ class QMLDESIGNERCORE_EXPORT FormEditorView : public AbstractView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FormEditorView(QObject *parent = 0);
|
||||
FormEditorView(QObject *parent = nullptr);
|
||||
~FormEditorView() override;
|
||||
|
||||
// AbstractView
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
};
|
||||
LayerItem(FormEditorScene* scene);
|
||||
~LayerItem() override;
|
||||
void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 ) override;
|
||||
void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = nullptr ) override;
|
||||
QRectF boundingRect() const override;
|
||||
int type() const override;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class LineEditAction : public QWidgetAction
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit LineEditAction(const QString &placeHolderText, QObject *parent = 0);
|
||||
explicit LineEditAction(const QString &placeHolderText, QObject *parent = nullptr);
|
||||
|
||||
void setLineEditText(const QString &text);
|
||||
void clearLineEditText();
|
||||
|
||||
@@ -37,7 +37,7 @@ class NumberSeriesAction : public QWidgetAction
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit NumberSeriesAction(QObject *parent = 0);
|
||||
explicit NumberSeriesAction(QObject *parent = nullptr);
|
||||
|
||||
void addEntry(const QString &text, const QVariant &value);
|
||||
void setCurrentEntryIndex(int index);
|
||||
|
||||
@@ -57,8 +57,8 @@ public:
|
||||
double snapLeftOffset(const QRectF &boundingRect) const;
|
||||
double snapBottomOffset(const QRectF &boundingRect) const;
|
||||
|
||||
QList<QLineF> horizontalSnappedLines(const QRectF &boundingRect, QList<QRectF> *boundingRects = 0) const;
|
||||
QList<QLineF> verticalSnappedLines(const QRectF &boundingRect, QList<QRectF> *boundingRects = 0) const;
|
||||
QList<QLineF> horizontalSnappedLines(const QRectF &boundingRect, QList<QRectF> *boundingRects = nullptr) const;
|
||||
QList<QLineF> verticalSnappedLines(const QRectF &boundingRect, QList<QRectF> *boundingRects = nullptr) const;
|
||||
|
||||
void setSnappingDistance(double snappingDistance);
|
||||
double snappingDistance() const;
|
||||
@@ -90,14 +90,14 @@ protected:
|
||||
double snapLine,
|
||||
double lowerLimit,
|
||||
double upperLimit,
|
||||
QList<QRectF> *boundingRects = 0) const;
|
||||
QList<QRectF> *boundingRects = nullptr) const;
|
||||
|
||||
QList<QLineF> findSnappingOffsetLines(const SnapLineMap &snappingOffsetMap,
|
||||
Qt::Orientation orientation,
|
||||
double snapLine,
|
||||
double lowerLimit,
|
||||
double upperLimit,
|
||||
QList<QRectF> *boundingRects = 0) const;
|
||||
QList<QRectF> *boundingRects = nullptr) const;
|
||||
|
||||
QLineF createSnapLine(Qt::Orientation orientation,
|
||||
double snapLine,
|
||||
|
||||
@@ -36,7 +36,7 @@ class ImportLabel : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ImportLabel(QWidget *parent = 0);
|
||||
explicit ImportLabel(QWidget *parent = nullptr);
|
||||
|
||||
void setImport(const Import &import);
|
||||
const Import import() const;
|
||||
|
||||
@@ -31,7 +31,7 @@ class ImportManagerComboBox : public QComboBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ImportManagerComboBox(QWidget *parent = 0);
|
||||
explicit ImportManagerComboBox(QWidget *parent = nullptr);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *e) override;
|
||||
|
||||
@@ -36,7 +36,7 @@ class ImportManagerView : public AbstractView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ImportManagerView(QObject *parent = 0);
|
||||
explicit ImportManagerView(QObject *parent = nullptr);
|
||||
~ImportManagerView() override;
|
||||
|
||||
bool hasWidget() const override;
|
||||
|
||||
@@ -41,7 +41,7 @@ class ImportsWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ImportsWidget(QWidget *parent = 0);
|
||||
explicit ImportsWidget(QWidget *parent = nullptr);
|
||||
|
||||
void setImports(const QList<Import> &imports);
|
||||
void removeImports();
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
ModelNodeRole = Qt::UserRole
|
||||
};
|
||||
|
||||
ComponentView(QObject *parent = 0);
|
||||
ComponentView(QObject *parent = nullptr);
|
||||
|
||||
void modelAttached(Model *model) override;
|
||||
void modelAboutToBeDetached(Model *model) override;
|
||||
|
||||
@@ -60,7 +60,7 @@ class QMLDESIGNERCORE_EXPORT DesignDocument: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DesignDocument(QObject *parent = 0);
|
||||
DesignDocument(QObject *parent = nullptr);
|
||||
~DesignDocument() override;
|
||||
|
||||
QString displayName() const;
|
||||
|
||||
@@ -37,7 +37,7 @@ class QMLDESIGNERCORE_EXPORT DesignDocumentView : public AbstractView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DesignDocumentView(QObject *parent = 0);
|
||||
DesignDocumentView(QObject *parent = nullptr);
|
||||
~DesignDocumentView() override;
|
||||
|
||||
ModelNode insertModel(const ModelNode &modelNode);
|
||||
|
||||
@@ -40,7 +40,7 @@ class StackedUtilityPanelController : public UtilityPanelController
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
StackedUtilityPanelController(QObject* parent = 0);
|
||||
StackedUtilityPanelController(QObject* parent = nullptr);
|
||||
|
||||
void show(DesignDocument* DesignDocument);
|
||||
void close(DesignDocument* DesignDocument);
|
||||
|
||||
@@ -36,7 +36,7 @@ class UtilityPanelController : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
UtilityPanelController(QObject* parent = 0);
|
||||
UtilityPanelController(QObject* parent = nullptr);
|
||||
~UtilityPanelController() override = 0;
|
||||
|
||||
QWidget* widget();
|
||||
|
||||
@@ -41,7 +41,7 @@ class CustomFileSystemModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
CustomFileSystemModel(QObject *parent = 0);
|
||||
CustomFileSystemModel(QObject *parent = nullptr);
|
||||
|
||||
void setFilter(QDir::Filters filters);
|
||||
QString rootPath() const;
|
||||
|
||||
@@ -45,7 +45,7 @@ class ItemLibraryModel: public QAbstractListModel {
|
||||
Q_PROPERTY(QString searchText READ searchText WRITE setSearchText NOTIFY searchTextChanged)
|
||||
|
||||
public:
|
||||
explicit ItemLibraryModel(QObject *parent = 0);
|
||||
explicit ItemLibraryModel(QObject *parent = nullptr);
|
||||
~ItemLibraryModel() override;
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
@@ -37,7 +37,7 @@ class ItemLibraryResourceView : public QListView {
|
||||
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ItemLibraryResourceView(QWidget *parent = 0);
|
||||
explicit ItemLibraryResourceView(QWidget *parent = nullptr);
|
||||
|
||||
void startDrag(Qt::DropActions supportedActions) override;
|
||||
private:
|
||||
|
||||
@@ -39,7 +39,7 @@ class ItemLibrarySection: public QObject {
|
||||
Q_PROPERTY(bool sectionExpanded READ sectionExpanded FINAL)
|
||||
|
||||
public:
|
||||
ItemLibrarySection(const QString §ionName, QObject *parent = 0);
|
||||
ItemLibrarySection(const QString §ionName, QObject *parent = nullptr);
|
||||
|
||||
QString sectionName() const;
|
||||
bool sectionExpanded() const;
|
||||
|
||||
@@ -38,7 +38,7 @@ class ItemLibrarySectionModel: public QAbstractListModel {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ItemLibrarySectionModel(QObject *parent = 0);
|
||||
ItemLibrarySectionModel(QObject *parent = nullptr);
|
||||
~ItemLibrarySectionModel() override;
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
@@ -40,7 +40,7 @@ class ItemLibraryView : public AbstractView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ItemLibraryView(QObject* parent = 0);
|
||||
ItemLibraryView(QObject* parent = nullptr);
|
||||
~ItemLibraryView() override;
|
||||
|
||||
bool hasWidget() const override;
|
||||
|
||||
@@ -63,7 +63,7 @@ class ItemLibraryWidget : public QFrame
|
||||
};
|
||||
|
||||
public:
|
||||
ItemLibraryWidget(QWidget *parent = 0);
|
||||
ItemLibraryWidget(QWidget *parent = nullptr);
|
||||
|
||||
void setItemLibraryInfo(ItemLibraryInfo *itemLibraryInfo);
|
||||
QList<QToolButton *> createToolBarWidgets();
|
||||
|
||||
@@ -45,7 +45,7 @@ class NavigatorTreeModel : public QAbstractItemModel, public NavigatorModelInter
|
||||
|
||||
public:
|
||||
|
||||
explicit NavigatorTreeModel(QObject *parent = 0);
|
||||
explicit NavigatorTreeModel(QObject *parent = nullptr);
|
||||
~NavigatorTreeModel() override;
|
||||
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
|
||||
@@ -35,7 +35,7 @@ class NavigatorTreeView : public QTreeView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
NavigatorTreeView(QWidget *parent = 0);
|
||||
NavigatorTreeView(QWidget *parent = nullptr);
|
||||
static void drawSelectionBackground(QPainter *painter, const QStyleOption &option);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ class NavigatorView : public AbstractView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
NavigatorView(QObject* parent = 0);
|
||||
NavigatorView(QObject* parent = nullptr);
|
||||
~NavigatorView() override;
|
||||
|
||||
bool hasWidget() const override;
|
||||
|
||||
@@ -35,7 +35,7 @@ class DesignerPropertyMap : public QQmlPropertyMap
|
||||
{
|
||||
|
||||
public:
|
||||
DesignerPropertyMap(QObject *parent = 0);
|
||||
DesignerPropertyMap(QObject *parent = nullptr);
|
||||
|
||||
QVariant value(const QString &key) const;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class FileResourcesModel : public QObject
|
||||
Q_PROPERTY(QStringList fileModel READ fileModel NOTIFY fileModelChanged)
|
||||
|
||||
public:
|
||||
explicit FileResourcesModel(QObject *parent = 0);
|
||||
explicit FileResourcesModel(QObject *parent = nullptr);
|
||||
|
||||
void setModelNodeBackend(const QVariant &modelNodeBackend);
|
||||
QString fileName() const;
|
||||
|
||||
@@ -41,7 +41,7 @@ class GradientModel : public QAbstractListModel
|
||||
Q_PROPERTY(bool hasGradient READ hasGradient NOTIFY hasGradientChanged)
|
||||
|
||||
public:
|
||||
explicit GradientModel(QObject *parent = 0);
|
||||
explicit GradientModel(QObject *parent = nullptr);
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class PropertyEditorContextObject : public QObject
|
||||
Q_PROPERTY(QQmlComponent* specificQmlComponent READ specificQmlComponent NOTIFY specificQmlComponentChanged)
|
||||
|
||||
public:
|
||||
PropertyEditorContextObject(QObject *parent = 0);
|
||||
PropertyEditorContextObject(QObject *parent = nullptr);
|
||||
|
||||
QUrl globalBaseUrl() const {return m_globalBaseUrl; }
|
||||
QUrl specificsUrl() const {return m_specificsUrl; }
|
||||
|
||||
@@ -43,7 +43,7 @@ class PropertyEditorNodeWrapper : public QObject {
|
||||
Q_PROPERTY(QString type READ type NOTIFY typeChanged)
|
||||
|
||||
public:
|
||||
PropertyEditorNodeWrapper(QObject *parent=0);
|
||||
PropertyEditorNodeWrapper(QObject *parent=nullptr);
|
||||
PropertyEditorNodeWrapper(PropertyEditorValue* parent);
|
||||
bool exists();
|
||||
QString type();
|
||||
@@ -87,7 +87,7 @@ class PropertyEditorValue : public QObject
|
||||
Q_PROPERTY(PropertyEditorNodeWrapper* complexNode READ complexNode NOTIFY complexNodeChanged FINAL)
|
||||
|
||||
public:
|
||||
PropertyEditorValue(QObject *parent=0);
|
||||
PropertyEditorValue(QObject *parent=nullptr);
|
||||
|
||||
QVariant value() const;
|
||||
void setValueWithEmit(const QVariant &value);
|
||||
|
||||
@@ -51,7 +51,7 @@ class PropertyEditorView: public AbstractView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PropertyEditorView(QWidget *parent = 0);
|
||||
PropertyEditorView(QWidget *parent = nullptr);
|
||||
~PropertyEditorView() override;
|
||||
|
||||
bool hasWidget() const override;
|
||||
|
||||
@@ -35,7 +35,7 @@ class PropertyEditorWidget : public QStackedWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PropertyEditorWidget(QWidget *parent = 0);
|
||||
PropertyEditorWidget(QWidget *parent = nullptr);
|
||||
|
||||
signals:
|
||||
void resized();
|
||||
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
|
||||
//only enable if node has parent
|
||||
|
||||
QmlAnchorBindingProxy(QObject *parent = 0);
|
||||
QmlAnchorBindingProxy(QObject *parent = nullptr);
|
||||
~QmlAnchorBindingProxy() override;
|
||||
|
||||
void setup(const QmlItemNode &itemNode);
|
||||
|
||||
@@ -38,7 +38,7 @@ class QmlModelNodeProxy : public QObject
|
||||
Q_PROPERTY(QmlDesigner::ModelNode modelNode READ modelNode NOTIFY modelNodeChanged)
|
||||
|
||||
public:
|
||||
explicit QmlModelNodeProxy(QObject *parent = 0);
|
||||
explicit QmlModelNodeProxy(QObject *parent = nullptr);
|
||||
|
||||
void setup(const QmlItemNode &itemNode);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ class Quick2PropertyEditorView : public QQuickWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit Quick2PropertyEditorView(QWidget *parent = 0);
|
||||
explicit Quick2PropertyEditorView(QWidget *parent = nullptr);
|
||||
|
||||
static void registerQmlTypes();
|
||||
};
|
||||
|
||||
@@ -39,7 +39,7 @@ class StatesEditorView : public AbstractView {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit StatesEditorView(QObject *parent = 0);
|
||||
explicit StatesEditorView(QObject *parent = nullptr);
|
||||
~StatesEditorView() override;
|
||||
|
||||
void renameState(int internalNodeId,const QString &newName);
|
||||
|
||||
@@ -33,7 +33,7 @@ class TextEditorStatusBar : public QToolBar
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TextEditorStatusBar(QWidget *parent = 0);
|
||||
explicit TextEditorStatusBar(QWidget *parent = nullptr);
|
||||
void clearText();
|
||||
void setText(const QString &text);
|
||||
private:
|
||||
|
||||
@@ -47,7 +47,7 @@ class QMLDESIGNERCORE_EXPORT TextEditorView : public AbstractView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TextEditorView(QObject *parent = 0);
|
||||
TextEditorView(QObject *parent = nullptr);
|
||||
~TextEditorView() override;
|
||||
|
||||
// AbstractView
|
||||
|
||||
@@ -123,7 +123,7 @@ public:
|
||||
EmptyPropertiesRemoved = 0x2
|
||||
};
|
||||
Q_DECLARE_FLAGS(PropertyChangeFlags, PropertyChangeFlag)
|
||||
AbstractView(QObject *parent = 0)
|
||||
AbstractView(QObject *parent = nullptr)
|
||||
: QObject(parent) {}
|
||||
|
||||
~AbstractView() override;
|
||||
@@ -267,8 +267,8 @@ public:
|
||||
protected:
|
||||
void setModel(Model * model);
|
||||
void removeModel();
|
||||
static WidgetInfo createWidgetInfo(QWidget *widget = 0,
|
||||
WidgetInfo::ToolBarWidgetFactoryInterface *toolBarWidgetFactory = 0,
|
||||
static WidgetInfo createWidgetInfo(QWidget *widget = nullptr,
|
||||
WidgetInfo::ToolBarWidgetFactoryInterface *toolBarWidgetFactory = nullptr,
|
||||
const QString &uniqueId = QString(),
|
||||
WidgetInfo::PlacementHint placementHint = WidgetInfo::NoPane,
|
||||
int placementPriority = 0,
|
||||
|
||||
@@ -116,7 +116,7 @@ signals:
|
||||
void entriesChanged();
|
||||
|
||||
private: // functions
|
||||
ItemLibraryInfo(QObject *parent = 0);
|
||||
ItemLibraryInfo(QObject *parent = nullptr);
|
||||
void setBaseInfo(ItemLibraryInfo *m_baseInfo);
|
||||
|
||||
private: // variables
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
|
||||
~Model() override;
|
||||
|
||||
static Model *create(TypeName type, int major = 1, int minor = 1, Model *metaInfoPropxyModel = 0);
|
||||
static Model *create(TypeName type, int major = 1, int minor = 1, Model *metaInfoPropxyModel = nullptr);
|
||||
|
||||
QUrl fileUrl() const;
|
||||
void setFileUrl(const QUrl &url);
|
||||
|
||||
@@ -77,7 +77,7 @@ class QMLDESIGNERCORE_EXPORT NodeInstanceView : public AbstractView, public Node
|
||||
public:
|
||||
typedef QWeakPointer<NodeInstanceView> Pointer;
|
||||
|
||||
explicit NodeInstanceView(QObject *parent = 0, NodeInstanceServerInterface::RunModus runModus = NodeInstanceServerInterface::NormalModus);
|
||||
explicit NodeInstanceView(QObject *parent = nullptr, NodeInstanceServerInterface::RunModus runModus = NodeInstanceServerInterface::NormalModus);
|
||||
~NodeInstanceView() override;
|
||||
|
||||
void modelAttached(Model *model) override;
|
||||
|
||||
@@ -45,7 +45,7 @@ class QMLDESIGNERCORE_EXPORT SubComponentManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit SubComponentManager(Model *model, QObject *parent = 0);
|
||||
explicit SubComponentManager(Model *model, QObject *parent = nullptr);
|
||||
|
||||
void update(const QUrl &fileUrl, const QList<Import> &imports);
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ class PuppetDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PuppetDialog(QWidget *parent = 0);
|
||||
explicit PuppetDialog(QWidget *parent = nullptr);
|
||||
~PuppetDialog() override;
|
||||
|
||||
void setDescription(const QString &description);
|
||||
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
|
||||
// Convenience to create a model for an "About Plugins"
|
||||
// dialog. Forces plugin initialization.
|
||||
QAbstractItemModel *createModel(QObject *parent = 0);
|
||||
QAbstractItemModel *createModel(QObject *parent = nullptr);
|
||||
|
||||
private:
|
||||
PluginPathList m_paths;
|
||||
|
||||
@@ -38,7 +38,7 @@ class OpenUiQmlFileDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit OpenUiQmlFileDialog(QWidget *parent = 0);
|
||||
explicit OpenUiQmlFileDialog(QWidget *parent = nullptr);
|
||||
~OpenUiQmlFileDialog() override;
|
||||
bool uiFileOpened() const;
|
||||
void setUiQmlFiles(const QString &projectPath, const QStringList &stringList);
|
||||
|
||||
@@ -40,7 +40,7 @@ class AddNewBackendDialog : public QDialog
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AddNewBackendDialog(QWidget *parent = 0);
|
||||
explicit AddNewBackendDialog(QWidget *parent = nullptr);
|
||||
~AddNewBackendDialog() override;
|
||||
void setupPossibleTypes(const QList<CppTypeData> &types);
|
||||
QString importString() const;
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
SourceModelNodeRow = 2,
|
||||
SourcePropertyNameRow = 3
|
||||
};
|
||||
BindingModel(ConnectionView *parent = 0);
|
||||
BindingModel(ConnectionView *parent = nullptr);
|
||||
void bindingChanged(const BindingProperty &bindingProperty);
|
||||
void bindingRemoved(const BindingProperty &bindingProperty);
|
||||
void selectionChanged(const QList<ModelNode> &selectedNodes);
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
TargetPropertyNameRow = 1,
|
||||
SourceRow = 2
|
||||
};
|
||||
ConnectionModel(ConnectionView *parent = 0);
|
||||
ConnectionModel(ConnectionView *parent = nullptr);
|
||||
void resetModel();
|
||||
SignalHandlerProperty signalHandlerPropertyForRow(int rowNumber) const;
|
||||
ConnectionView *connectionView() const;
|
||||
|
||||
@@ -50,7 +50,7 @@ class ConnectionView : public AbstractView
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ConnectionView(QObject *parent = 0);
|
||||
ConnectionView(QObject *parent = nullptr);
|
||||
~ConnectionView() override;
|
||||
|
||||
// AbstractView
|
||||
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
InvalidTab
|
||||
};
|
||||
|
||||
explicit ConnectionViewWidget(QWidget *parent = 0);
|
||||
explicit ConnectionViewWidget(QWidget *parent = nullptr);
|
||||
~ConnectionViewWidget() override;
|
||||
|
||||
void setBindingModel(BindingModel *model);
|
||||
|
||||
@@ -38,7 +38,7 @@ class PropertiesComboBox : public QComboBox
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString text READ text WRITE setText USER true)
|
||||
public:
|
||||
PropertiesComboBox(QWidget *parent = 0);
|
||||
PropertiesComboBox(QWidget *parent = nullptr);
|
||||
|
||||
virtual QString text() const;
|
||||
void setText(const QString &text);
|
||||
@@ -49,21 +49,21 @@ class ConnectionComboBox : public PropertiesComboBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ConnectionComboBox(QWidget *parent = 0);
|
||||
ConnectionComboBox(QWidget *parent = nullptr);
|
||||
QString text() const override;
|
||||
};
|
||||
|
||||
class ConnectionEditorDelegate : public QStyledItemDelegate
|
||||
{
|
||||
public:
|
||||
ConnectionEditorDelegate(QWidget *parent = 0);
|
||||
ConnectionEditorDelegate(QWidget *parent = nullptr);
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
};
|
||||
|
||||
class BindingDelegate : public ConnectionEditorDelegate
|
||||
{
|
||||
public:
|
||||
BindingDelegate(QWidget *parent = 0);
|
||||
BindingDelegate(QWidget *parent = nullptr);
|
||||
QWidget *createEditor(QWidget *parent,
|
||||
const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override;
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
class DynamicPropertiesDelegate : public ConnectionEditorDelegate
|
||||
{
|
||||
public:
|
||||
DynamicPropertiesDelegate(QWidget *parent = 0);
|
||||
DynamicPropertiesDelegate(QWidget *parent = nullptr);
|
||||
QWidget *createEditor(QWidget *parent,
|
||||
const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override;
|
||||
@@ -83,7 +83,7 @@ class ConnectionDelegate : public ConnectionEditorDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ConnectionDelegate(QWidget *parent = 0);
|
||||
ConnectionDelegate(QWidget *parent = nullptr);
|
||||
QWidget *createEditor(QWidget *parent,
|
||||
const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override;
|
||||
@@ -93,7 +93,7 @@ class BackendDelegate : public ConnectionEditorDelegate
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
BackendDelegate(QWidget *parent = 0);
|
||||
BackendDelegate(QWidget *parent = nullptr);
|
||||
QWidget *createEditor(QWidget *parent,
|
||||
const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override;
|
||||
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
PropertyTypeRow = 2,
|
||||
PropertyValueRow = 3
|
||||
};
|
||||
DynamicPropertiesModel(ConnectionView *parent = 0);
|
||||
DynamicPropertiesModel(ConnectionView *parent = nullptr);
|
||||
void bindingPropertyChanged(const BindingProperty &bindingProperty);
|
||||
void variantPropertyChanged(const VariantProperty &variantProperty);
|
||||
void bindingRemoved(const BindingProperty &bindingProperty);
|
||||
|
||||
@@ -47,7 +47,7 @@ class SettingsPageWidget : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SettingsPageWidget(QWidget *parent = 0);
|
||||
explicit SettingsPageWidget(QWidget *parent = nullptr);
|
||||
|
||||
DesignerSettings settings() const;
|
||||
void setSettings(const DesignerSettings &settings);
|
||||
|
||||
@@ -42,7 +42,7 @@ class SwitchSplitTabWidget : public QWidget
|
||||
TabMode
|
||||
};
|
||||
public:
|
||||
explicit SwitchSplitTabWidget(QWidget *parent = 0);
|
||||
explicit SwitchSplitTabWidget(QWidget *parent = nullptr);
|
||||
int count() const;
|
||||
QWidget *currentWidget() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user