1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +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