bool ContainerBase::consumePointerEvent(const PointerEvent& pointerEvent) { ILOG_TRACE_W(ILX_CONTAINER); if ((inputMethod() & PointerInput) || (inputMethod() & PointerPassthrough)) { // priority is given to child on top. if (_frameGeometry.contains(pointerEvent.x, pointerEvent.y, true)) for (WidgetListReverseIterator it = _children.rbegin(); it != _children.rend(); ++it) if (((Widget*) *it)->consumePointerEvent(pointerEvent)) return true; } return false; }
void CharLineEdit::inputMethodEvent(QInputMethodEvent* event) { QLineEdit::inputMethodEvent(event); if (event->commitString() != "") { emit inputMethod(event); } }
// ---------------------------------------------------------------------- void QmvTupleAttribute::load(const QString & data) { original_value = data; // Conversions based on datatype switch ( dataType() ) { case QmvAttribute::Timestamp: if ( data.length() > 0 ) original_value = formatTimestamp( data ); break; default: break; } // conversions based on input method switch ( inputMethod() ) { case QmvAttribute::Colour: // convert to presentation form #XXXXXX bool ok; original_value.replace( QRegExp("#"), "").toUInt( &ok, 16); if (ok) { original_value = original_value.rightJustify(8, '0'); original_value.prepend("#"); } break; // case QmvAttribute::List: // colour_group.setColor( QColorGroup::Base, QColor("yellow") ); // setColourGroup(colour_group); // break; default: break; } current_value = original_value; QColor alert_colour = alertColour(); alert = alert_colour.isValid(); if ( alert ) { colour_group.setColor( QColorGroup::Base, alert_colour ); setColourGroup(colour_group); } else local_colour_group = false; }