22 lines
396 B
C++
22 lines
396 B
C++
#ifndef TEXTEDITDIALOG_H
|
|
#define TEXTEDITDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class QPlainTextEdit;
|
|
|
|
class TextEditDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
TextEditDialog(QWidget* parent = 0, const QString& s = 0);
|
|
const QString& get_string();
|
|
private slots:
|
|
void save();
|
|
void cancel();
|
|
private:
|
|
QString result_str;
|
|
QPlainTextEdit* textEdit;
|
|
};
|
|
|
|
#endif // TEXTEDITDIALOG_H
|