/** Override to notify Form focus change */
void TextFieldBody::focusInEvent(QFocusEvent *event) {
    /* Notify Java if this is caused by user action */
    if (event->reason() != QFocusEvent::Other) {
	MidpFormFocusChanged(parent());
    }

    /* Continue with focus activation */
    QMultiLineEdit::focusInEvent(event);
}
/** Override to notify Form focus change */
void StringBody::focusInEvent(QFocusEvent *event) {

  // Notify Java if this is caused by user action
  if (event->reason() != QFocusEvent::Other) {
    MidpFormFocusChanged(parent());
  }
  
  // Continue with focus activation
  QPushButton::focusInEvent(event);
}
Ejemplo n.º 3
0
/**
 * makes datefield accept focus, and notify the java peer of the focus
 * change, to enable item specific commands.
 */
void 
DateField::focusInEvent(QFocusEvent *event) 
{
  TRACE_DF(DateField::focusInEvent);

  // Notify Java if this is caused by user action
  if (event->reason() != QFocusEvent::Other) {
    MidpFormFocusChanged(this);
  }
  
  // Continue with focus activation
  QWidget::focusInEvent(event);
  
}
Ejemplo n.º 4
0
/** Override to notify Form focus change */
void 
CustomItem::focusInEvent(QFocusEvent *event) {
  
  REPORT_INFO1(LC_HIGHUI, "[lfpport_qte_customitem.cpp:%d] "
	       "CustomItem::focusInEvent ", __LINE__);

  // Notify Java if this is caused by user action
  if (event->reason() != QFocusEvent::Other) {
    MidpFormFocusChanged(this);
  }
  
  // Continue with focus activation
  QWidget::focusInEvent(event);

}
Ejemplo n.º 5
0
// Nothing is focused between focusOut and focusIn
void JItem::focusOutEvent(QFocusEvent *)
{
  JITEM_DEBUG(this, "focus out");
  MidpFormFocusChanged(NULL);
}
Ejemplo n.º 6
0
// Tell Java about widget focus change
void JItem::focusInEvent(QFocusEvent *)
{
  JITEM_DEBUG(this, "focus in");
  MidpFormFocusChanged(this);
}