2013-08-20 17:32 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/gtqtc/gtqtc1.cpp
* accept META key as CTRL key in MacOSX builds.
This QT Meta key is marked as "control" on Apple keyboards so
this seems to be less confusing. Anyhow I'm not regular MacOSX
user so if someone thinks it's bad idea then please inform me.
"command" key is mapped by QT as CTRL key by default.
! disabled Qt::WA_InputMethodEnabled in default builds.
I disabled it because it was breaking support for national characters
in few European countries, f.e. Polish characters with ALT in MacOSX.
Qt::WA_InputMethodEnabled is used for some Asian languages but I have
no idea if it was working with GTQTC so far and if it's really
necessary and usable. I'm waiting for information from people who
lives in countries where it's used. Just let me know if you need
GTQTC compiled with this window attribute.
This commit is contained in:
@@ -10,6 +10,22 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2013-08-20 17:32 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/gtqtc/gtqtc1.cpp
|
||||
* accept META key as CTRL key in MacOSX builds.
|
||||
This QT Meta key is marked as "control" on Apple keyboards so
|
||||
this seems to be less confusing. Anyhow I'm not regular MacOSX
|
||||
user so if someone thinks it's bad idea then please inform me.
|
||||
"command" key is mapped by QT as CTRL key by default.
|
||||
! disabled Qt::WA_InputMethodEnabled in default builds.
|
||||
I disabled it because it was breaking support for national characters
|
||||
in few European countries, f.e. Polish characters with ALT in MacOSX.
|
||||
Qt::WA_InputMethodEnabled is used for some Asian languages but I have
|
||||
no idea if it was working with GTQTC so far and if it's really
|
||||
necessary and usable. I'm waiting for information from people who
|
||||
lives in countries where it's used. Just let me know if you need
|
||||
GTQTC compiled with this window attribute.
|
||||
|
||||
2013-08-14 18:36 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/gtqtc/gtqtc1.cpp
|
||||
! fixed missing HB_GTI_FONTA_NOSTRETCH in setting range
|
||||
|
||||
@@ -1501,6 +1501,9 @@ static int hb_gt_qtc_getKeyFlags( Qt::KeyboardModifiers keyFlags )
|
||||
if( keyFlags & Qt::ControlModifier ) iFlags |= HB_KF_CTRL;
|
||||
if( keyFlags & Qt::ShiftModifier ) iFlags |= HB_KF_SHIFT;
|
||||
if( keyFlags & Qt::KeypadModifier ) iFlags |= HB_KF_KEYPAD;
|
||||
#ifdef HB_OS_DARWIN
|
||||
if( keyFlags & Qt::MetaModifier ) iFlags |= HB_KF_CTRL;
|
||||
#endif
|
||||
|
||||
return iFlags;
|
||||
}
|
||||
@@ -2436,11 +2439,20 @@ QTConsole::QTConsole( PHB_GTQTC pStructQTC, QWidget *parent ) : QWidget( parent
|
||||
setAttribute( Qt::WA_StaticContents );
|
||||
setAttribute( Qt::WA_PaintOnScreen );
|
||||
setAttribute( Qt::WA_OpaquePaintEvent );
|
||||
setAttribute( Qt::WA_InputMethodEnabled );
|
||||
/* it may be usable in some cases but KeyCompression needs some
|
||||
* modifications in keyevent code [druzus]
|
||||
|
||||
/* Qt::WA_InputMethodEnabled disables support for
|
||||
* national characters in few European countries
|
||||
* (f.e. Polish characters with ALT in MacOSX)
|
||||
* If some Asian users needs it then we will have
|
||||
* to enable it optionally [druzus]
|
||||
*/
|
||||
/* setAttribute( Qt::WA_InputMethodEnabled ); */
|
||||
|
||||
/* It may be usable in some cases but KeyCompression
|
||||
* needs some modifications in keyevent code [druzus]
|
||||
*/
|
||||
/* setAttribute( Qt::WA_KeyCompression ); */
|
||||
|
||||
setFocusPolicy( Qt::StrongFocus );
|
||||
setMouseTracking( true );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user