Cockatrice 2026-06-01-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
CompactPushButton Class Reference

#include <compact_push_button.h>

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

Public Member Functions

 CompactPushButton (QWidget *parent=nullptr)
void setButtonText (const QString &text)
void setButtonIcon (const QIcon &icon)
void setCompact (bool enabled)
int expandedWidth () const
int compactWidth () const

Private Member Functions

void updateGeometryState ()

Private Attributes

QString fullText
bool compact = false

Constructor & Destructor Documentation

◆ CompactPushButton()

CompactPushButton::CompactPushButton ( QWidget * parent = nullptr)
explicit

Member Function Documentation

◆ compactWidth()

int CompactPushButton::compactWidth ( ) const

◆ expandedWidth()

int CompactPushButton::expandedWidth ( ) const

◆ setButtonIcon()

void CompactPushButton::setButtonIcon ( const QIcon & icon)

◆ setButtonText()

void CompactPushButton::setButtonText ( const QString & text)
Here is the call graph for this function:

◆ setCompact()

void CompactPushButton::setCompact ( bool enabled)
Here is the call graph for this function:

◆ updateGeometryState()

void CompactPushButton::updateGeometryState ( )
private
Here is the caller graph for this function:

Member Data Documentation

◆ compact

bool CompactPushButton::compact = false
private

◆ fullText

QString CompactPushButton::fullText
private

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