diff options
Diffstat (limited to 'textenterdialog.h')
-rw-r--r-- | textenterdialog.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/textenterdialog.h b/textenterdialog.h new file mode 100644 index 0000000..f555b85 --- /dev/null +++ b/textenterdialog.h @@ -0,0 +1,32 @@ +/* + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version + 2 of the License, or (at your option) any later version. +*/ + +#ifndef TEXTENTERDIALOG_H +#define TEXTENTERDIALOG_H + +#include <QDialog> +#include <QLineEdit> + +class QLineEdit; +class QPushButton; +class QString; + +class TextEnterDialog : public QDialog { + Q_OBJECT + public: + TextEnterDialog(const QString &text, QWidget *parent = 0, Qt::WindowFlags f = 0); + ~TextEnterDialog() {}; + const QString text() const { return mText->text(); }; + + private: + QPushButton *mOk; + QPushButton *mClose; + QLineEdit *mText; +}; + +#endif + |