1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 16:23:53 +00:00
openmw/apps/launcher/utils/textinputdialog.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
625 B
C++
Raw Normal View History

#ifndef TEXTINPUTDIALOG_HPP
#define TEXTINPUTDIALOG_HPP
#include <QDialog>
#include "lineedit.hpp"
class QDialogButtonBox;
2013-10-25 16:17:26 +00:00
namespace Launcher
{
2013-10-25 16:17:26 +00:00
class TextInputDialog : public QDialog
{
2013-10-25 16:17:26 +00:00
Q_OBJECT
2013-10-25 16:17:26 +00:00
public:
2020-11-13 07:39:47 +00:00
explicit TextInputDialog(const QString& title, const QString& text, QWidget* parent = nullptr);
~TextInputDialog() override;
2013-10-25 16:17:26 +00:00
inline LineEdit* lineEdit() { return mLineEdit; }
void setOkButtonEnabled(bool enabled);
int exec() override;
private:
QDialogButtonBox* mButtonBox;
LineEdit* mLineEdit;
2013-10-25 16:17:26 +00:00
};
}
#endif // TEXTINPUTDIALOG_HPP