You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					31 lines
				
				463 B
			
		
		
			
		
	
	
					31 lines
				
				463 B
			| 
											5 years ago
										 | #pragma once
 | ||
|  | 
 | ||
| 
											5 years ago
										 | #include <QLabel>
 | ||
|  | #include <QString>
 | ||
| 
											5 years ago
										 | #include <QWidget>
 | ||
|  | #include <QLineEdit>
 | ||
| 
											5 years ago
										 | #include <QGridLayout>
 | ||
| 
											5 years ago
										 | 
 | ||
|  | #include "keyboard.hpp"
 | ||
|  | 
 | ||
|  | class InputField : public QWidget {
 | ||
|  |   Q_OBJECT
 | ||
|  | 
 | ||
|  | public:
 | ||
|  |   explicit InputField(QWidget* parent = 0);
 | ||
| 
											5 years ago
										 |   void setPromptText(QString text);
 | ||
|  | 
 | ||
| 
											5 years ago
										 | private:
 | ||
|  |   QLineEdit *line;
 | ||
|  |   Keyboard *k;
 | ||
| 
											5 years ago
										 |   QLabel *label;
 | ||
|  |   QGridLayout *layout;
 | ||
| 
											5 years ago
										 | 
 | ||
|  | public slots:
 | ||
|  |   void emitEmpty();
 | ||
|  |   void getText(QString s);
 | ||
|  | 
 | ||
|  | signals:
 | ||
|  |   void emitText(QString s);
 | ||
|  | };
 |