mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-29 08:04:19 +01:00
1994e8bdda
git-svn-id: http://wiiqt.googlecode.com/svn/trunk@34 389f4c8b-5dfe-645f-db0e-df882bc27289
30 lines
500 B
C++
30 lines
500 B
C++
#ifndef TEXTDIALOG_H
|
|
#define TEXTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class TextDialog;
|
|
}
|
|
|
|
//generic dialog to get text
|
|
class TextDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit TextDialog(QWidget *parent = 0, const QString &txt = QString() );
|
|
~TextDialog();
|
|
|
|
static QString GetText( QWidget *parent = 0, const QString &txt = QString() );
|
|
|
|
private:
|
|
Ui::TextDialog *ui;
|
|
QString ret;
|
|
|
|
private slots:
|
|
void on_buttonBox_accepted();
|
|
};
|
|
|
|
#endif // TEXTDIALOG_H
|