diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-16 09:16:33 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-16 09:16:33 (GMT) |
commit | 585b65f17d50dfbb14b25e5372819033c964e79d (patch) | |
tree | 2ec7040acbd655d020145c672b8d0625fe403d4a /Swift/QtUI/QtRosterHeader.h | |
parent | 6fd62cfe8859ad4cdba4113552ba9bb1ef9563e4 (diff) | |
download | swift-contrib-585b65f17d50dfbb14b25e5372819033c964e79d.zip swift-contrib-585b65f17d50dfbb14b25e5372819033c964e79d.tar.bz2 |
Adding the start of a 'me view' to the head of the roster.
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.h')
-rw-r--r-- | Swift/QtUI/QtRosterHeader.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Swift/QtUI/QtRosterHeader.h b/Swift/QtUI/QtRosterHeader.h new file mode 100644 index 0000000..94b7249 --- /dev/null +++ b/Swift/QtUI/QtRosterHeader.h @@ -0,0 +1,32 @@ +#pragma once + +#include <QWidget> +#include <QLabel> +#include <QPixmap> +#include <QTextEdit> +#include <QSize> +#include <QToolBar> + +#include "Swiften/Elements/StatusShow.h" + +namespace Swift { + class QtStatusWidget; + + class QtRosterHeader : public QWidget { + Q_OBJECT + public: + QtRosterHeader(QWidget* parent = NULL); + void setAvatar(const QString& path); + void setName(const QString& name); + void setStatusText(const QString& statusMessage); + QSize sizeHint() const; + signals: + void onChangeStatusRequest(StatusShow::Type showType, const QString &statusMessage); + private: + QLabel* avatarLabel_; + QLabel* nameLabel_; + QTextEdit* statusEdit_; + QToolBar* toolBar_; + QtStatusWidget* statusWidget_; + }; +} |