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
plaintexteditor.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
5
6#include <QtDesigner/abstractsettings.h>
7#include <QtDesigner/abstractformeditor.h>
8
9#include <QtWidgets/qplaintextedit.h>
10#include <QtWidgets/qdialogbuttonbox.h>
11#include <QtWidgets/qboxlayout.h>
12#include <QtWidgets/qpushbutton.h>
13
15
16using namespace Qt::StringLiterals;
17
18static constexpr auto PlainTextDialogC = "PlainTextDialog"_L1;
19static constexpr auto PlainTextEditorGeometryC = "Geometry"_L1;
20
21namespace qdesigner_internal {
22
48
57
59{
61 return exec();
62}
63
68
73
75{
76 return m_editor->toPlainText();
77}
78
79} // namespace qdesigner_internal
80
81QT_END_NAMESPACE
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static constexpr auto PlainTextEditorGeometryC
static constexpr auto PlainTextDialogC