diff options
| author | Kevin Smith <git@kismith.co.uk> | 2009-11-02 20:18:17 (GMT) | 
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2009-11-02 20:18:17 (GMT) | 
| commit | ff9b04252cbdd3bda5f1d01e1bad4a077f99791b (patch) | |
| tree | 66c364a7c4491a50ff5e4519b1450337e253a35e /Swift/QtUI/QtRosterHeader.h | |
| parent | 7ff184d4c980752d6e0c4f38a2eaadce4dead6f2 (diff) | |
| download | swift-ff9b04252cbdd3bda5f1d01e1bad4a077f99791b.zip swift-ff9b04252cbdd3bda5f1d01e1bad4a077f99791b.tar.bz2 | |
Set new status when Enter is pressed in the status change input.
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.h')
| -rw-r--r-- | Swift/QtUI/QtRosterHeader.h | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/Swift/QtUI/QtRosterHeader.h b/Swift/QtUI/QtRosterHeader.h index 0c11c02..0a8a41f 100644 --- a/Swift/QtUI/QtRosterHeader.h +++ b/Swift/QtUI/QtRosterHeader.h @@ -3,13 +3,14 @@  #include <QWidget>  #include <QLabel>  #include <QPixmap> -#include <QTextEdit>  #include <QSize>  #include <QToolBar>  #include "Swiften/Base/String.h"  #include "Swiften/Elements/StatusShow.h" +#include "QtTextEdit.h" +  class QHBoxLayout;  namespace Swift { @@ -24,6 +25,7 @@ namespace Swift {  		void setStatusText(const QString& statusMessage);  		void setStatusType(StatusShow::Type type);  		QSize sizeHint() const; +	public slots:  		void emitStatus();  	signals:  		void onChangeStatusRequest(StatusShow::Type showType, const QString &statusMessage); @@ -38,7 +40,7 @@ namespace Swift {  		QString name_;  		QLabel* avatarLabel_;  		QLabel* nameLabel_; -		QTextEdit* statusEdit_; +		QtTextEdit* statusEdit_;  		QToolBar* toolBar_;  		QtStatusWidget* statusWidget_;  		QHBoxLayout* expandedLayout_; | 
 Swift
 Swift