Esempio n. 1
0
void CheckBoxHeader::onSectionPressed(int logicalIndex)
{
    if (logicalIndex == m_column) {
        setChecked(!isChecked());
        emit checkBoxClicked(isChecked());
    }
}
Esempio n. 2
0
void CheckboxHeader::mousePressEvent(QMouseEvent* event)
{
	QPoint point = event->pos();
	if (m_rect.contains(point))
	{
		setIsChecked(!isChecked());

		emit checkBoxClicked(isChecked());
	}
}
Esempio n. 3
0
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);
}
Esempio n. 6
0
void HiddenFileView::vetoChkClicked(bool b)
{
    checkBoxClicked(_dlg->vetoChk, _vetoActn, _dlg->vetoEdit, COL_VETO,_vetoList,b);
}
Esempio n. 7
0
void HiddenFileView::vetoOplockChkClicked(bool b) {
    checkBoxClicked(_dlg->vetoOplockChk, _vetoOplockActn, _dlg->vetoOplockEdit, COL_VETO_OPLOCK,_vetoOplockList,b);
}
Esempio n. 8
0
void HiddenFileView::hiddenChkClicked(bool b)
{
    checkBoxClicked(_dlg->hiddenChk, _hiddenActn, _dlg->hiddenEdit, COL_HIDDEN,_hiddenList,b);

}