You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
605 B
C++
35 lines
605 B
C++
#ifndef TEXTINPUTDIALOG_HPP
|
|
#define TEXTINPUTDIALOG_HPP
|
|
|
|
#include <QDialog>
|
|
|
|
#include "lineedit.hpp"
|
|
|
|
class QDialogButtonBox;
|
|
|
|
namespace Launcher
|
|
{
|
|
class TextInputDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit TextInputDialog(const QString& title, const QString &text, QWidget *parent = 0);
|
|
~TextInputDialog ();
|
|
|
|
inline LineEdit *lineEdit() { return mLineEdit; }
|
|
void setOkButtonEnabled(bool enabled);
|
|
|
|
int exec();
|
|
|
|
private:
|
|
|
|
QDialogButtonBox *mButtonBox;
|
|
LineEdit *mLineEdit;
|
|
|
|
};
|
|
}
|
|
|
|
#endif // TEXTINPUTDIALOG_HPP
|