Skip to content

Commit

Permalink
UserInfoView: misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Mar 22, 2024
1 parent a5967e5 commit 37ce9ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion resources/xml/views/user_info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
alignItems="center">

<brls:Box
width="18%"
wireframe="false"
axis="column">
<brls:Image
Expand Down
4 changes: 4 additions & 0 deletions wiliwili/include/view/user_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ class UserInfoView : public brls::Box {

brls::Image* getAvatar();

brls::Label* getLabelName();

brls::Label* getLabelMisc();

void setHintType(InfoHintType type);

private:
Expand Down
4 changes: 4 additions & 0 deletions wiliwili/source/view/user_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ brls::View* UserInfoView::create() { return new UserInfoView(); }

brls::Image* UserInfoView::getAvatar() { return this->avatarView; }

brls::Label* UserInfoView::getLabelName() { return this->labelUsername; }

brls::Label* UserInfoView::getLabelMisc() { return this->labeMisc; }

void UserInfoView::setHintType(InfoHintType type) {
if (type == InfoHintType::NONE) {
this->boxHint->setVisibility(brls::Visibility::GONE);
Expand Down

0 comments on commit 37ce9ae

Please sign in to comment.