diff options
Diffstat (limited to 'Swift/QtUI/QtFormWidget.h')
| -rw-r--r-- | Swift/QtUI/QtFormWidget.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/Swift/QtUI/QtFormWidget.h b/Swift/QtUI/QtFormWidget.h index c7aae73..f58ff4b 100644 --- a/Swift/QtUI/QtFormWidget.h +++ b/Swift/QtUI/QtFormWidget.h @@ -1,34 +1,34 @@  /* - * Copyright (c) 2011 Kevin Smith + * Copyright (c) 2011-2014 Kevin Smith   * Licensed under the GNU General Public License v3.   * See Documentation/Licenses/GPLv3.txt for more information.   */  #pragma once  #include <QWidget>  #include <map>  #include <Swiften/Elements/Form.h>  class QListWidget;  namespace Swift {  class QtFormWidget : public QWidget {  	Q_OBJECT  	public:  		QtFormWidget(Form::ref form, QWidget* parent = NULL);  		virtual ~QtFormWidget();  		Form::ref getCompletedForm();  		void setEditable(bool editable);  	private: -		QWidget* createWidget(FormField::ref field); +		QWidget* createWidget(FormField::ref field, const FormField::Type type, const size_t index);  		QListWidget* createList(FormField::ref field);  		template<class T> void setEnabled(QWidget* rawWidget, bool editable);  		template<class T> void setEditable(QWidget* rawWidget, bool editable);  		std::map<std::string, QWidget*> fields_;  		Form::ref form_;  };  } | 
 Swift
 Swift