src/gui/widgets/qdatetimeedit.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 37 758a864f9613
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
  1173             focusNextPrevChild(forward);
  1173             focusNextPrevChild(forward);
  1174 
  1174 
  1175         return; }
  1175         return; }
  1176     }
  1176     }
  1177     QAbstractSpinBox::keyPressEvent(event);
  1177     QAbstractSpinBox::keyPressEvent(event);
  1178     if (select && !(event->modifiers() & Qt::ShiftModifier) && !d->edit->hasSelectedText()) {
  1178     if (select && !d->edit->hasSelectedText()) {
  1179         if (inserted && d->sectionAt(d->edit->cursorPosition()) == QDateTimeParser::NoSectionIndex) {
  1179         if (inserted && d->sectionAt(d->edit->cursorPosition()) == QDateTimeParser::NoSectionIndex) {
  1180             QString str = d->displayText();
  1180             QString str = d->displayText();
  1181             int pos = d->edit->cursorPosition();
  1181             int pos = d->edit->cursorPosition();
  1182             if (validate(str, pos) == QValidator::Acceptable
  1182             if (validate(str, pos) == QValidator::Acceptable
  1183                 && (d->sectionNodes.at(oldCurrent).count != 1
  1183                 && (d->sectionNodes.at(oldCurrent).count != 1