summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2019-06-16 23:54:58 +0900
committerMichele Calgaro <[email protected]>2019-06-17 00:01:26 +0900
commit7c8f13b0226ba6cda04862d6fd682cc658249b5f (patch)
treee67c4ef7f6e7e227df532f53e61d0d7c5ab6cf60
parentd6375a54e2945d494df5ad38ca98cbc8b4d901e7 (diff)
downloadtqt3-7c8f13b0226ba6cda04862d6fd682cc658249b5f.tar.gz
tqt3-7c8f13b0226ba6cda04862d6fd682cc658249b5f.zip
Renamed QT_IM_* to TQT_IM_*. This relates to bug 3020.
(cherry picked and partially edited from commit 632cbaa30ac55924b21d9e65bbe261d592098553) Signed-off-by: Michele Calgaro <[email protected]>
-rw-r--r--ChangeLog.immodule12
-rw-r--r--README.immodule16
-rw-r--r--changes.immodule2
-rw-r--r--plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp4
-rw-r--r--plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp4
-rw-r--r--src/kernel/qapplication_x11.cpp6
6 files changed, 22 insertions, 22 deletions
diff --git a/ChangeLog.immodule b/ChangeLog.immodule
index 8d9acb485..72f7b7567 100644
--- a/ChangeLog.immodule
+++ b/ChangeLog.immodule
@@ -633,7 +633,7 @@
- New file
- (QNoneInputContextPlugin, ~QNoneInputContextPlugin, keys,
languages, displayName, description): New function
- - (create): New function. Read key from QT_IM_MODULE or
+ - (create): New function. Read key from TQT_IM_MODULE or
/qt/DefaultInputMethod of qtrc and creates input context with the
key
@@ -850,8 +850,8 @@
* src/kernel/qapplication_x11.cpp
- (defaultIM): Replace "xim" with "imsw-multi"
- (x11_apply_settings):
- * Replace the environment variable name QT_IM_MODULE with
- QT_IM_SWITCHER
+ * Replace the environment variable name TQT_IM_MODULE with
+ TQT_IM_SWITCHER
* Replace the qtrc variable name /qt/DefaultInputMethod with
/qt/DefaultInputMethodSwitcher
* Replace "xim" with "imsw-multi" for default plugin
@@ -860,12 +860,12 @@
- (lastCreatedIMKey): Remove to rename to currentIMKey
- (currentIMKey): New member variable. Renamed from lastCreatedIMKey
because the semantics of the variable has been changed by
- introduction of QT_IM_SWITCHER
+ introduction of TQT_IM_SWITCHER
* src/input/qmultiinputcontext.cpp
- Replace lastCreatedIMKey with currentIMKey
- (QMultiInputContext): Add default input method specification
- feature using QT_IM_MODULE and /qt/DefaultInputMethod
+ feature using TQT_IM_MODULE and /qt/DefaultInputMethod
- (createImSelPopup):
* Add IM-switcher plugin elimination feature using "imsw-" prefix
* Add dispName.isNull() checking
@@ -896,7 +896,7 @@
2004-07-31 LiuCougar <[email protected]>
- new environment variable QT_IM_MODULE to overwrite the default inputmethod plugin
+ new environment variable TQT_IM_MODULE to overwrite the default inputmethod plugin
2004-07-31 LiuCougar <[email protected]>
"deleteLater" is safer then "delete" QObject directly
diff --git a/README.immodule b/README.immodule
index d07621894..22dae9717 100644
--- a/README.immodule
+++ b/README.immodule
@@ -75,26 +75,26 @@ immodule for Qt
- set "xim" input method as default
- export QT_IM_MODULE=xim
+ export TQT_IM_MODULE=xim
- set "simple" composing input method as default
- export QT_IM_MODULE=simple
+ export TQT_IM_MODULE=simple
- set "xim" input method as default, and disable input method
selection menu in the context menu
- export QT_IM_SWITCHER=imsw-none
- export QT_IM_MODULE=xim
+ export TQT_IM_SWITCHER=imsw-none
+ export TQT_IM_MODULE=xim
- set "xim" input method as default, and enable input method
selection menu in the context menu (default configuration)
- export QT_IM_SWITCHER=imsw-multi
- export QT_IM_MODULE=xim
+ export TQT_IM_SWITCHER=imsw-multi
+ export TQT_IM_MODULE=xim
- set "iiimqcf" that has its own input method switching framework as
@@ -103,5 +103,5 @@ immodule for Qt
provide unified user interface for global input method switching
over the desktop
- export QT_IM_SWITCHER=imsw-none
- export QT_IM_MODULE=iiimqcf
+ export TQT_IM_SWITCHER=imsw-none
+ export TQT_IM_MODULE=iiimqcf
diff --git a/changes.immodule b/changes.immodule
index 4a2806525..76b72ed8f 100644
--- a/changes.immodule
+++ b/changes.immodule
@@ -41,7 +41,7 @@ Configuration
http://freedesktop.org/pipermail/immodule-qt/2004-August/000416.html
-- Added new environment variables QT_IM_SWITCHER and QT_IM_MODULE to
+- Added new environment variables TQT_IM_SWITCHER and TQT_IM_MODULE to
set user's favorite input method as default. See README.immodule for
examples.
diff --git a/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp b/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
index a721d9739..789f5b380 100644
--- a/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
+++ b/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
@@ -61,8 +61,8 @@ TQMultiInputContext::TQMultiInputContext()
keyDict.setAutoDelete( true );
keyDict.clear();
- if ( getenv( "QT_IM_MODULE" ) ) {
- currentIMKey = getenv( "QT_IM_MODULE" );
+ if ( getenv( "TQT_IM_MODULE" ) ) {
+ currentIMKey = getenv( "TQT_IM_MODULE" );
} else {
#ifndef QT_NO_IM_EXTENSIONS
TQSettings settings;
diff --git a/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp b/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp
index 9f6014be5..a7b5007b2 100644
--- a/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp
+++ b/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp
@@ -70,8 +70,8 @@ TQInputContext *TQNoneInputContextPlugin::create( const TQString &key )
if ( ! isIMSwitcher )
return 0;
- if ( getenv( "QT_IM_MODULE" ) ) {
- actuallySpecifiedKey = getenv( "QT_IM_MODULE" );
+ if ( getenv( "TQT_IM_MODULE" ) ) {
+ actuallySpecifiedKey = getenv( "TQT_IM_MODULE" );
} else {
TQSettings settings;
actuallySpecifiedKey = settings.readEntry( "/qt/DefaultInputMethod", "xim" );
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index 84dcefb22..2ceaa4ef5 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -1131,12 +1131,12 @@ bool TQApplication::x11_apply_settings()
/*
The identifier name of an input method is acquired from the
configuration file as a default. If a environment variable
- "QT_IM_SWITCHER" is not empty it will overwrite the
+ "TQT_IM_SWITCHER" is not empty it will overwrite the
configuration file. The "imsw-multi" becomes the default if the entry
is not configured.
*/
- if ( getenv( "QT_IM_SWITCHER" ) )
- defaultIM = getenv( "QT_IM_SWITCHER" );
+ if ( getenv( "TQT_IM_SWITCHER" ) )
+ defaultIM = getenv( "TQT_IM_SWITCHER" );
#ifndef QT_NO_IM_EXTENSIONS
else
defaultIM = settings.readEntry( "/qt/DefaultInputMethodSwitcher", "imsw-multi" );