2014-01-24 00:12 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/gtqtc/gtqtc1.cpp
    + enable virtual keyboard in Android and WinCE builds on focusOn and
      mouseLeftButton events - just for tests so users can compile and
      try code like tests/gtkeys.prg
    ; Warning in Android builds Fn keys, INS, HOME, END, PgUP and letters
      without modifiers do not work with virtual keyboards. Any solutions
      are greatly welcome. Setting Qt::ImhNoPredictiveText in console widget
      is not sufficient workaround for letters.
      BTW in Android I suggest to install Hacker's Keyboard by Klaus Weidner.
      It supports all PC keys and they works in terminal mode with ATE
      (Android Terminal Emulator) and Harbour GTTRM raw binary applications.
This commit is contained in:
Przemysław Czerpak
2014-01-24 00:12:35 +01:00
parent f4717c6741
commit 2c87206db0
2 changed files with 23 additions and 0 deletions

View File

@@ -10,6 +10,19 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2014-01-24 00:12 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
+ enable virtual keyboard in Android and WinCE builds on focusOn and
mouseLeftButton events - just for tests so users can compile and
try code like tests/gtkeys.prg
; Warning in Android builds Fn keys, INS, HOME, END, PgUP and letters
without modifiers do not work with virtual keyboards. Any solutions
are greatly welcome. Setting Qt::ImhNoPredictiveText in console widget
is not sufficient workaround for letters.
BTW in Android I suggest to install Hacker's Keyboard by Klaus Weidner.
It supports all PC keys and they works in terminal mode with ATE
(Android Terminal Emulator) and Harbour GTTRM raw binary applications.
2014-01-22 04:17 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc.hbp
! fixed build condition (condition in {} can be used only once per line)

View File

@@ -2889,6 +2889,10 @@ void QTConsole::focusInEvent( QFocusEvent * event )
{
hb_gt_qtc_addKeyToInputQueue( pQTC, HB_K_GOTFOCUS );
QWidget::focusInEvent( event );
#if defined( HB_OS_ANDROID ) || defined( HB_OS_WIN_CE )
QEvent reqSIPevent( QEvent::RequestSoftwareInputPanel );
QApplication::sendEvent( pQTC->qWnd, &reqSIPevent );
#endif
}
void QTConsole::focusOutEvent( QFocusEvent * event )
@@ -2978,6 +2982,12 @@ void QTConsole::mousePressEvent( QMouseEvent * event )
switch( event->button() )
{
case Qt::LeftButton:
#if defined( HB_OS_ANDROID ) || defined( HB_OS_WIN_CE )
{
QEvent reqSIPevent( QEvent::RequestSoftwareInputPanel );
QApplication::sendEvent( pQTC->qWnd, &reqSIPevent );
}
#endif
iKey = K_LBUTTONDOWN;
break;