Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
extrainfo.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#include "extrainfo.h"
5
6QT_BEGIN_NAMESPACE
7
8/*!
9 \class QDesignerExtraInfoExtension
10 \brief The QDesignerExtraInfoExtension class provides extra information about a widget in
11 Qt Widgets Designer.
12 \inmodule QtDesigner
13 \internal
14*/
15
16/*!
17 Returns the path to the working directory used by this extension.*/
18QString QDesignerExtraInfoExtension::workingDirectory() const
19{
20 return m_workingDirectory;
21}
22
23/*!
24 Sets the path to the working directory used by the extension to \a workingDirectory.*/
25void QDesignerExtraInfoExtension::setWorkingDirectory(const QString &workingDirectory)
26{
27 m_workingDirectory = workingDirectory;
28}
29
30/*!
31 \fn virtual QDesignerExtraInfoExtension::~QDesignerExtraInfoExtension()
32
33 Destroys the extension.
34*/
35
36/*!
37 \fn virtual QDesignerFormEditorInterface *QDesignerExtraInfoExtension::core() const = 0
38
39 \omit
40 ### Description required
41 \endomit
42*/
43
44/*!
45 \fn virtual QWidget *QDesignerExtraInfoExtension::widget() const = 0
46
47 Returns the widget described by this extension.
48*/
49
50/*!
51 \fn virtual bool QDesignerExtraInfoExtension::saveUiExtraInfo(DomUI *ui) = 0
52
53 Saves the information about the user interface specified by \a ui, and returns true if
54 successful; otherwise returns false.
55*/
56
57/*!
58 \fn virtual bool QDesignerExtraInfoExtension::loadUiExtraInfo(DomUI *ui) = 0
59
60 Loads extra information about the user interface specified by \a ui, and returns true if
61 successful; otherwise returns false.
62*/
63
64/*!
65 \fn virtual bool QDesignerExtraInfoExtension::saveWidgetExtraInfo(DomWidget *widget) = 0
66
67 Saves the information about the specified \a widget, and returns true if successful;
68 otherwise returns false.
69*/
70
71/*!
72 \fn virtual bool QDesignerExtraInfoExtension::loadWidgetExtraInfo(DomWidget *widget) = 0
73
74 Loads extra information about the specified \a widget, and returns true if successful;
75 otherwise returns false.
76*/
77
78QT_END_NAMESPACE