示例#1
0
void DOptionPrivate::setChecked(bool checked)
{
    if (m_checked == checked)
        return;
    m_checked = checked;

    D_QC(DOption);

    emit q->checkedChanged(m_checked);
}
示例#2
0
void DOptionPrivate::setCheckedIcon(const QString &icon)
{
    if (icon == m_checkedIconName)
        return;
    m_checkedIconName = icon;
    m_checkedIconLabel->setPixmap(QPixmap(icon));

    D_QC(DOption);

    emit q->checkedIconChanged(icon);
}
示例#3
0
QSize DX11WidgetPrivate::externSize(const QSize &size) const
{
    D_QC(DX11Widget);
    return QSize(size.width() + (m_ShadowWidth + m_Border) * 2,
                 size.height() + (m_ShadowWidth + m_Border) * 2 + q->titlebarHeight());
}