mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Launcher tools, display FSX/P3D config dirs
This commit is contained in:
committed by
Mat Sutcliffe
parent
737aabb745
commit
a5663914c5
@@ -28,5 +28,10 @@ namespace BlackGui
|
||||
{
|
||||
return ui->te_TextEdit;
|
||||
}
|
||||
|
||||
void CTextEditDialog::setReadOnly()
|
||||
{
|
||||
ui->te_TextEdit->setReadOnly(true);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
#ifndef BLACKGUI_COMPONENTS_TEXTEDITDIALOG_H
|
||||
#define BLACKGUI_COMPONENTS_TEXTEDITDIALOG_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
|
||||
#include <QDialog>
|
||||
#include <QScopedPointer>
|
||||
|
||||
@@ -22,7 +24,7 @@ namespace BlackGui
|
||||
namespace Components
|
||||
{
|
||||
//! Text edit as dialog
|
||||
class CTextEditDialog : public QDialog
|
||||
class BLACKGUI_EXPORT CTextEditDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -31,11 +33,14 @@ namespace BlackGui
|
||||
explicit CTextEditDialog(QWidget *parent = nullptr);
|
||||
|
||||
//! Dtor
|
||||
virtual ~CTextEditDialog();
|
||||
virtual ~CTextEditDialog() override;
|
||||
|
||||
//! Access to text edit
|
||||
QTextEdit *textEdit() const;
|
||||
|
||||
//! Set read only
|
||||
void setReadOnly();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CTextEditDialog> ui;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user