diff options
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.h')
-rw-r--r-- | Swift/QtUI/QtRosterHeader.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Swift/QtUI/QtRosterHeader.h b/Swift/QtUI/QtRosterHeader.h index 719674e..7fed2c0 100644 --- a/Swift/QtUI/QtRosterHeader.h +++ b/Swift/QtUI/QtRosterHeader.h @@ -30,26 +30,28 @@ namespace Swift { void setName(const QString& name); void setStatusText(const QString& statusMessage); void setStatusType(StatusShow::Type type); - QSize sizeHint() const; - public slots: - void emitStatus(); +// QSize sizeHint() const; +// public slots: +// void emitStatus(); signals: void onChangeStatusRequest(StatusShow::Type showType, const QString &statusMessage); private slots: - void handleChangeStatusRequest(StatusShow::Type type); - protected: - virtual void resizeEvent(QResizeEvent* event); - virtual void mousePressEvent(QMouseEvent* event); + void handleChangeStatusRequest(StatusShow::Type type, const QString &statusMessage); +// protected: +// virtual void resizeEvent(QResizeEvent* event); +// virtual void mousePressEvent(QMouseEvent* event); private: - void resizeNameLabel(); - void toggleExpanded(); +// void resizeNameLabel(); +// void toggleExpanded(); QString name_; QLabel* avatarLabel_; +#warning FIXME - replace QLabel with override to do elide +//http://lists.trolltech.com/pipermail/qt-interest/2010-January/018056.html QLabel* nameLabel_; QtTextEdit* statusEdit_; QToolBar* toolBar_; QtStatusWidget* statusWidget_; - QHBoxLayout* expandedLayout_; - bool expanded_; + //QHBoxLayout* expandedLayout_; + //bool expanded_; }; } |