mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 07:26:39 +00:00 
			
		
		
		
	Detected by clang-tidy's modernize-use-override Future MRs can be created to run this on OpenMW and OpenMW CS
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			629 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			629 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 = nullptr);
 | 
						|
        ~TextInputDialog () override;
 | 
						|
 | 
						|
        inline LineEdit *lineEdit() { return mLineEdit; }
 | 
						|
        void setOkButtonEnabled(bool enabled);
 | 
						|
 | 
						|
        int exec() override;
 | 
						|
 | 
						|
    private:
 | 
						|
 | 
						|
        QDialogButtonBox *mButtonBox;
 | 
						|
        LineEdit *mLineEdit;
 | 
						|
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif // TEXTINPUTDIALOG_HPP
 |