mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 12:03:55 -07:00
Make BannerWidget's dropdown icon more robust (#5676)
* Make BannerWidget's dropdown icon more robust * use isHidden Otherwise, it doesn't work correctly if the BannerWidget is offscreen * don't show icon if there's no buddy
This commit is contained in:
parent
ec452aabe2
commit
a7e8c1f59b
2 changed files with 15 additions and 12 deletions
|
|
@ -17,10 +17,7 @@ public:
|
|||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void setText(const QString &text) const;
|
||||
void setClickable(bool _clickable);
|
||||
void setBuddy(QWidget *_buddy)
|
||||
{
|
||||
buddy = _buddy;
|
||||
}
|
||||
void setBuddy(QWidget *_buddy);
|
||||
QString getText() const
|
||||
{
|
||||
return bannerLabel->text();
|
||||
|
|
@ -40,7 +37,7 @@ signals:
|
|||
void buddyVisibilityChanged();
|
||||
private slots:
|
||||
void toggleBuddyVisibility() const;
|
||||
void setDropdownIconState(bool expanded) const;
|
||||
void updateDropdownIconState() const;
|
||||
};
|
||||
|
||||
#endif // BANNER_WIDGET_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue