Branch: master

632cbaa3 2019-06-16 14:54:58 Michele Calgaro
Renamed QT_IM_* to TQT_IM_*. This relates to bug 3020.

Signed-off-by: Michele Calgaro <michele.calgaro@...>
M ChangeLog.immodule
M README.immodule
M changes.immodule
M plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
M plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp
M src/kernel/qapplication_x11.cpp

ChangeLog.immodule

diff --git a/ChangeLog.immodule b/ChangeLog.immodule
index 4bf083a..31b3cc8 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  <liucougar@...>
 	
-	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  <liucougar@...>
 	
 	"deleteLater" is safer then "delete" QObject directly

README.immodule

diff --git a/README.immodule b/README.immodule
index 49f69d7..43a35e9 100644
--- a/README.immodule
+++ b/README.immodule
@@ -75,26 +75,26 @@
 
   - 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 @@
     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

changes.immodule

diff --git a/changes.immodule b/changes.immodule
index 0484cff..634c128 100644
--- a/changes.immodule
+++ b/changes.immodule
@@ -41,7 +41,7 @@
 
   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.
 

plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp

diff --git a/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp b/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
index 24259bd..2d97169 100644
--- a/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
+++ b/plugins/src/inputmethods/imsw-multi/qmultiinputcontext.cpp
@@ -61,8 +61,8 @@
     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 TQT_NO_IM_EXTENSIONS
 	TQSettings settings;

plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp

diff --git a/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp b/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp
index f4d8e59..b42f126 100644
--- a/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp
+++ b/plugins/src/inputmethods/imsw-none/qnoneinputcontextplugin.cpp
@@ -70,8 +70,8 @@
     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" );

src/kernel/qapplication_x11.cpp

diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index 23d5969..401230f 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -1128,12 +1128,12 @@
     /*
 	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 TQT_NO_IM_EXTENSIONS
     else
         defaultIM = settings.readEntry( "/qt/DefaultInputMethodSwitcher", "imsw-multi" );