Add border in community list & minor refactorings (#204)
This commit is contained in:
parent
b70e09c7ec
commit
48ee36f6b2
9 changed files with 40 additions and 25 deletions
|
|
@ -28,6 +28,8 @@ class UserInfoWidget : public QWidget
|
|||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor)
|
||||
|
||||
public:
|
||||
UserInfoWidget(QWidget *parent = 0);
|
||||
|
||||
|
|
@ -37,6 +39,9 @@ public:
|
|||
|
||||
void reset();
|
||||
|
||||
QColor borderColor() const { return borderColor_; }
|
||||
void setBorderColor(QColor &color) { borderColor_ = color; }
|
||||
|
||||
signals:
|
||||
void logout();
|
||||
|
||||
|
|
@ -63,4 +68,6 @@ private:
|
|||
QImage avatar_image_;
|
||||
|
||||
int logoutButtonSize_;
|
||||
|
||||
QColor borderColor_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue