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

Classes

class  Private
 

Public Slots

void setIcon (const QPixmap &)
 
void setIcon (const QString &)
 
void setPosition (Qt::Edge)
 
void setState (bool state)
 
void setStyle (DMultiTabBar::TextStyle)
 
void setText (const QString &text)
 

Signals

void signalClicked (int id)
 

Public Member Functions

int id () const
 
QSize minimumSizeHint () const override
 
QSize sizeHint () const override
 
 ~DMultiTabBarTab () override
 

Protected Slots

virtual void slotClicked ()
 

Protected Member Functions

void computeMargins (int *hMargin, int *vMargin) const
 
QSize computeSizeHint (bool withText) const
 
 DMultiTabBarTab (const QPixmap &pic, const QString &, int id, QWidget *const parent, Qt::Edge pos, DMultiTabBar::TextStyle style)
 
void hideEvent (QHideEvent *) override
 
QPixmap iconPixmap () const
 
void initButtonStyleOption (QStyleOptionToolButton *opt) const
 
bool isVertical () const
 
void paintEvent (QPaintEvent *) override
 
bool shouldDrawText () const
 
void showEvent (QShowEvent *) override
 

Friends

class DMultiTabBarFrame
 

Constructor & Destructor Documentation

◆ ~DMultiTabBarTab()

Digikam::DMultiTabBarTab::~DMultiTabBarTab ( )
override

◆ DMultiTabBarTab()

Digikam::DMultiTabBarTab::DMultiTabBarTab ( const QPixmap &  pic,
const QString &  text,
int  id,
QWidget *const  parent,
Qt::Edge  pos,
DMultiTabBar::TextStyle  style 
)
protected

This class should never be created except with the appendTab call of DMultiTabBar

References Digikam::DMultiTabBarTab::Private::position, and Digikam::DMultiTabBarTab::Private::style.

Member Function Documentation

◆ computeMargins()

void Digikam::DMultiTabBarTab::computeMargins ( int *  hMargin,
int *  vMargin 
) const
protected

◆ computeSizeHint()

QSize Digikam::DMultiTabBarTab::computeSizeHint ( bool  withText) const
protected

◆ hideEvent()

void Digikam::DMultiTabBarButton::hideEvent ( QHideEvent *  e)
overrideprotectedinherited

◆ iconPixmap()

QPixmap Digikam::DMultiTabBarTab::iconPixmap ( ) const
protected

◆ id()

int Digikam::DMultiTabBarButton::id ( ) const
inherited

◆ initButtonStyleOption()

void Digikam::DMultiTabBarTab::initButtonStyleOption ( QStyleOptionToolButton *  opt) const
protected

◆ isVertical()

bool Digikam::DMultiTabBarTab::isVertical ( ) const
protected

◆ minimumSizeHint()

QSize Digikam::DMultiTabBarTab::minimumSizeHint ( ) const
override

References computeSizeHint().

◆ paintEvent()

void Digikam::DMultiTabBarTab::paintEvent ( QPaintEvent *  )
overrideprotected

◆ setIcon [1/2]

void Digikam::DMultiTabBarTab::setIcon ( const QPixmap &  icon)
slot

◆ setIcon [2/2]

void Digikam::DMultiTabBarTab::setIcon ( const QString &  icon)
slot

◆ setPosition

void Digikam::DMultiTabBarTab::setPosition ( Qt::Edge  pos)
slot

this is used internally, but can be used by the user. It the according call of DMultiTabBar is invoked though this modifications will be overwritten

References Digikam::DMultiTabBarTab::Private::position.

◆ setState

void Digikam::DMultiTabBarTab::setState ( bool  state)
slot

set the active state of the tab

Parameters
statetrue==active false==not active

Referenced by Digikam::DMultiTabBar::setTab().

◆ setStyle

void Digikam::DMultiTabBarTab::setStyle ( DMultiTabBar::TextStyle  style)
slot

this is used internally, but can be used by the user. It the according call of DMultiTabBar is invoked though this modifications will be overwritten

References Digikam::DMultiTabBarTab::Private::style.

◆ setText

void Digikam::DMultiTabBarButton::setText ( const QString &  text)
slotinherited

◆ shouldDrawText()

bool Digikam::DMultiTabBarTab::shouldDrawText ( ) const
protected

◆ showEvent()

void Digikam::DMultiTabBarButton::showEvent ( QShowEvent *  e)
overrideprotectedinherited

◆ signalClicked

void Digikam::DMultiTabBarButton::signalClicked ( int  id)
signalinherited

this is emitted if the button is clicked

Parameters
idthe ID identifying the button

Referenced by Digikam::DMultiTabBarButton::slotClicked().

◆ sizeHint()

QSize Digikam::DMultiTabBarTab::sizeHint ( void  ) const
override

◆ slotClicked

void Digikam::DMultiTabBarButton::slotClicked ( )
protectedvirtualslotinherited

Friends And Related Function Documentation

◆ DMultiTabBarFrame

friend class DMultiTabBarFrame
friend

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