12 CTickLabel::CTickLabel(QWidget *parent) : QLabel(parent)
16 this->setMaximumSize(CIcons::tick16().size());
22 if (m_isPixmapTicked == ticked) {
return; }
23 this->m_isPixmapTicked = ticked;
31 m_toolTipTicked = ticked;
32 m_toolTipUnticked = unticked;
36 void CTickLabel::setLabel()
39 this->setPixmap(this->m_isPixmapTicked ? m_pixmapTicked : m_pixmapUnticked);
40 this->setToolTip(this->m_isPixmapTicked ? m_toolTipTicked : m_toolTipUnticked);
void tickChanged(bool ticked)
Changed ticked state.
void setTicked(bool ticked)
Set ticked.
void setToolTips(const QString &ticked, const QString &unticked)
Set the tool tips.
Free functions in swift::misc.