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// Qt-Security score:significant reason:default
4
6
7#include <QtDesigner/abstractsettings.h>
8#include <QtDesigner/abstractformeditor.h>
9
10#include <QtWidgets/qplaintextedit.h>
11#include <QtWidgets/qdialogbuttonbox.h>
12#include <QtWidgets/qboxlayout.h>
13#include <QtWidgets/qpushbutton.h>
14
16
17using namespace Qt::StringLiterals;
18
19static constexpr auto PlainTextDialogC = "PlainTextDialog"_L1;
20static constexpr auto PlainTextEditorGeometryC = "Geometry"_L1;
21
22namespace qdesigner_internal {
23
49
58
60{
62 return exec();
63}
64
69
74
76{
77 return m_editor->toPlainText();
78}
79
80} // namespace qdesigner_internal
81
82QT_END_NAMESPACE
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static constexpr auto PlainTextEditorGeometryC
static constexpr auto PlainTextDialogC