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.
		
		
		
		
		
			
		
			
				
					
					
						
							30 lines
						
					
					
						
							463 B
						
					
					
				
			
		
		
	
	
							30 lines
						
					
					
						
							463 B
						
					
					
				| #pragma once
 | |
| 
 | |
| #include <QLabel>
 | |
| #include <QString>
 | |
| #include <QWidget>
 | |
| #include <QLineEdit>
 | |
| #include <QGridLayout>
 | |
| 
 | |
| #include "keyboard.hpp"
 | |
| 
 | |
| class InputField : public QWidget {
 | |
|   Q_OBJECT
 | |
| 
 | |
| public:
 | |
|   explicit InputField(QWidget* parent = 0);
 | |
|   void setPromptText(QString text);
 | |
| 
 | |
| private:
 | |
|   QLineEdit *line;
 | |
|   Keyboard *k;
 | |
|   QLabel *label;
 | |
|   QGridLayout *layout;
 | |
| 
 | |
| public slots:
 | |
|   void emitEmpty();
 | |
|   void getText(QString s);
 | |
| 
 | |
| signals:
 | |
|   void emitText(QString s);
 | |
| };
 | |
| 
 |