/** 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);
}
Пример #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);
  
}
Пример #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);

}
Пример #5
0
// Nothing is focused between focusOut and focusIn
void JItem::focusOutEvent(QFocusEvent *)
{
  JITEM_DEBUG(this, "focus out");
  MidpFormFocusChanged(NULL);
}
Пример #6
0
// Tell Java about widget focus change
void JItem::focusInEvent(QFocusEvent *)
{
  JITEM_DEBUG(this, "focus in");
  MidpFormFocusChanged(this);
}