9 #if defined Q_OS_UNIX && !TTK_QT_VERSION_CHECK(5,7,0) //Fix linux selection-background-color stylesheet bug
26 for(
int i = 0; i < rowCount(); ++i)
28 const QTableWidgetItem *it = item(i, 0);
40 for(
int i = 0; i < rowCount(); ++i)
42 const QTableWidgetItem *it = item(i, 0);
53 QTableWidgetItem *it =
nullptr;
58 it->setData(
TTK_CHECKED_ROLE, status == Qt::Checked ? Qt::Unchecked : Qt::Checked);
74 for(
int i = 0; i < rowCount(); ++i)
76 item(i, 0)->setData(
TTK_CHECKED_ROLE, checked ? Qt::Checked : Qt::Unchecked);
84 for(
int i = 0; i < rowCount(); ++i)
86 item(i, 0)->setData(
TTK_CHECKED_ROLE, checked ? Qt::Checked : Qt::Unchecked);
92 setCurrentIndex(QModelIndex());
#define TTKStaticCast(x, y)
static const QString CheckBoxStyle01
CheckBox.
void setStyleSheet(const QString &style) const
static const QString TableWidgetStyle02
The class of the checkbox item delegate.