void CheckBoxHeader::onSectionPressed(int logicalIndex) { if (logicalIndex == m_column) { setChecked(!isChecked()); emit checkBoxClicked(isChecked()); } }
void CheckboxHeader::mousePressEvent(QMouseEvent* event) { QPoint point = event->pos(); if (m_rect.contains(point)) { setIsChecked(!isChecked()); emit checkBoxClicked(isChecked()); } }
void MultiValueEditor::itemClicked(QListWidgetItem *item) { if (item->checkState() == _states[_listWidget->row(item)]) { // clicked outside the checkbox disconnectCheckBoxes(); switch (item->checkState()) { case Qt::Checked: item->setCheckState(Qt::Unchecked); break; case Qt::Unchecked: item->setCheckState(Qt::Checked); break; case Qt::PartiallyChecked: item->setCheckState(Qt::Checked); break; } connectCheckBoxes(); checkBoxClicked(item); } updateStates(); }
CuteRadioPluginGetTunesDialog::Private::Private() : QObject() { item = QompQmlEngine::instance()->createItem(QUrl("qrc:///qml/CuteRadioResultsView.qml")); connect(item, SIGNAL(checkBoxClicked(QVariant)), SLOT(itemClicked(QVariant))); }
void CheckBoxGroup::buttonClick(QAbstractButton* button) { int checkBoxNumber = buttons().indexOf(button,0); bool isChecked = ((QCheckBox*)button)->isChecked(); emit checkBoxClicked(checkBoxNumber,isChecked); }
void HiddenFileView::vetoChkClicked(bool b) { checkBoxClicked(_dlg->vetoChk, _vetoActn, _dlg->vetoEdit, COL_VETO,_vetoList,b); }
void HiddenFileView::vetoOplockChkClicked(bool b) { checkBoxClicked(_dlg->vetoOplockChk, _vetoOplockActn, _dlg->vetoOplockEdit, COL_VETO_OPLOCK,_vetoOplockList,b); }
void HiddenFileView::hiddenChkClicked(bool b) { checkBoxClicked(_dlg->hiddenChk, _hiddenActn, _dlg->hiddenEdit, COL_HIDDEN,_hiddenList,b); }