digiKam
Digikam::DSqueezedClickLabel Class Reference
+ Inheritance diagram for Digikam::DSqueezedClickLabel:

Public Slots

void setAdjustedText (const QString &text=QString())
 

Signals

void activated ()
 
void leftClicked ()
 

Public Member Functions

QString adjustedText () const
 
 DSqueezedClickLabel (const QString &text, QWidget *const parent=nullptr)
 
 DSqueezedClickLabel (QWidget *const parent=nullptr)
 
QSize minimumSizeHint () const override
 
void setAlignment (Qt::Alignment align)
 
void setElideMode (Qt::TextElideMode mode)
 
QSize sizeHint () const override
 
 ~DSqueezedClickLabel () override
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
 
void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 

Constructor & Destructor Documentation

◆ DSqueezedClickLabel() [1/2]

Digikam::DSqueezedClickLabel::DSqueezedClickLabel ( QWidget *const  parent = nullptr)
explicit

◆ DSqueezedClickLabel() [2/2]

Digikam::DSqueezedClickLabel::DSqueezedClickLabel ( const QString &  text,
QWidget *const  parent = nullptr 
)
explicit

◆ ~DSqueezedClickLabel()

Digikam::DSqueezedClickLabel::~DSqueezedClickLabel ( )
override

Member Function Documentation

◆ activated

void Digikam::DSqueezedClickLabel::activated ( )
signal

Referenced by keyPressEvent(), and mouseReleaseEvent().

◆ adjustedText()

QString Digikam::DAdjustableLabel::adjustedText ( ) const
inherited

◆ keyPressEvent()

void Digikam::DSqueezedClickLabel::keyPressEvent ( QKeyEvent *  event)
overrideprotected

References activated().

◆ leftClicked

void Digikam::DSqueezedClickLabel::leftClicked ( )
signal

Referenced by mouseReleaseEvent().

◆ minimumSizeHint()

QSize Digikam::DAdjustableLabel::minimumSizeHint ( ) const
overrideinherited

◆ mousePressEvent()

void Digikam::DSqueezedClickLabel::mousePressEvent ( QMouseEvent *  event)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::DSqueezedClickLabel::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

References activated(), and leftClicked().

◆ setAdjustedText

◆ setAlignment()

void Digikam::DAdjustableLabel::setAlignment ( Qt::Alignment  align)
inherited

◆ setElideMode()

void Digikam::DAdjustableLabel::setElideMode ( Qt::TextElideMode  mode)
inherited

◆ sizeHint()

QSize Digikam::DAdjustableLabel::sizeHint ( void  ) const
overrideinherited

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