swift
src
gui
components
texteditdialog.cpp
1
// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
4
#include "
texteditdialog.h
"
5
6
#include "ui_texteditdialog.h"
7
8
namespace
swift::gui::components
9
{
10
CTextEditDialog::CTextEditDialog
(QWidget *parent) : QDialog(parent), ui(new Ui::
CTextEditDialog
)
11
{
12
ui->setupUi(
this
);
13
this->setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);
14
}
15
16
CTextEditDialog::~CTextEditDialog
() {}
17
18
QTextEdit *
CTextEditDialog::textEdit
()
const
{
return
ui->te_TextEdit; }
19
20
void
CTextEditDialog::setReadOnly
() { ui->te_TextEdit->setReadOnly(
true
); }
21
}
// namespace swift::gui::components
swift::gui::components::CTextEditDialog
Text edit as dialog.
Definition:
texteditdialog.h:24
swift::gui::components::CTextEditDialog::CTextEditDialog
CTextEditDialog(QWidget *parent=nullptr)
Constructor.
Definition:
texteditdialog.cpp:10
swift::gui::components::CTextEditDialog::setReadOnly
void setReadOnly()
Set read only.
Definition:
texteditdialog.cpp:20
swift::gui::components::CTextEditDialog::textEdit
QTextEdit * textEdit() const
Access to text edit.
Definition:
texteditdialog.cpp:18
swift::gui::components::CTextEditDialog::~CTextEditDialog
virtual ~CTextEditDialog()
Dtor.
Definition:
texteditdialog.cpp:16
swift::gui::components
High level reusable GUI components.
Definition:
aboutdialog.cpp:13
texteditdialog.h
Generated on Mon Mar 24 2025 16:42:20 for swift by
1.9.1