Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
BannerWidget Class Reference

#include <banner_widget.h>

Inheritance diagram for BannerWidget:
[legend]
Collaboration diagram for BannerWidget:
[legend]

Signals

void buddyVisibilityChanged ()

Public Member Functions

 BannerWidget (QWidget *parent, const QString &text, Qt::Orientation orientation=Qt::Vertical, int transparency=80)
void mousePressEvent (QMouseEvent *event) override
void setText (const QString &text) const
void setClickable (bool _clickable)
void setBuddy (QWidget *_buddy)
QString getText () const

Protected Member Functions

void paintEvent (QPaintEvent *event) override

Private Slots

void toggleBuddyVisibility () const
void updateDropdownIconState () const

Private Attributes

QLabel * iconLabel
QLabel * bannerLabel
Qt::Orientation gradientOrientation
int transparency
QWidget * buddy = nullptr
bool clickable = true

Constructor & Destructor Documentation

◆ BannerWidget()

BannerWidget::BannerWidget ( QWidget * parent,
const QString & text,
Qt::Orientation orientation = Qt::Vertical,
int transparency = 80 )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ buddyVisibilityChanged

void BannerWidget::buddyVisibilityChanged ( )
signal
Here is the caller graph for this function:

◆ getText()

QString BannerWidget::getText ( ) const
inlinenodiscard

◆ mousePressEvent()

void BannerWidget::mousePressEvent ( QMouseEvent * event)
override
Here is the call graph for this function:

◆ paintEvent()

void BannerWidget::paintEvent ( QPaintEvent * event)
overrideprotected

◆ setBuddy()

void BannerWidget::setBuddy ( QWidget * _buddy)
Here is the call graph for this function:

◆ setClickable()

void BannerWidget::setClickable ( bool _clickable)
Here is the call graph for this function:

◆ setText()

void BannerWidget::setText ( const QString & text) const

◆ toggleBuddyVisibility

void BannerWidget::toggleBuddyVisibility ( ) const
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateDropdownIconState

void BannerWidget::updateDropdownIconState ( ) const
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bannerLabel

QLabel* BannerWidget::bannerLabel
private

◆ buddy

QWidget* BannerWidget::buddy = nullptr
private

◆ clickable

bool BannerWidget::clickable = true
private

◆ gradientOrientation

Qt::Orientation BannerWidget::gradientOrientation
private

◆ iconLabel

QLabel* BannerWidget::iconLabel
private

◆ transparency

int BannerWidget::transparency
private

The documentation for this class was generated from the following files: