mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 19:25:49 +08:00
45 lines
936 B
C++
45 lines
936 B
C++
// SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKGUI_COMPONENTS_TEXTEDITDIALOG_H
|
|
#define BLACKGUI_COMPONENTS_TEXTEDITDIALOG_H
|
|
|
|
#include "blackgui/blackguiexport.h"
|
|
|
|
#include <QDialog>
|
|
#include <QScopedPointer>
|
|
|
|
class QTextEdit;
|
|
|
|
namespace Ui
|
|
{
|
|
class CTextEditDialog;
|
|
}
|
|
namespace BlackGui::Components
|
|
{
|
|
//! Text edit as dialog
|
|
class BLACKGUI_EXPORT CTextEditDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CTextEditDialog(QWidget *parent = nullptr);
|
|
|
|
//! Dtor
|
|
virtual ~CTextEditDialog() override;
|
|
|
|
//! Access to text edit
|
|
QTextEdit *textEdit() const;
|
|
|
|
//! Set read only
|
|
void setReadOnly();
|
|
|
|
private:
|
|
QScopedPointer<Ui::CTextEditDialog> ui;
|
|
};
|
|
} // ns
|
|
#endif // guard
|