summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2024-03-02 06:57:42 +0300
committerAlexander Golubev <fatzer2@gmail.com>2024-03-02 07:26:45 +0300
commit34587584ab80fd696cc9d73dda1326f175125ddf (patch)
tree11fc4b98724b1606e38db9e402c1479a7c7e54ee /tools
parent7578fa552bfa738c7cfb84584ef2423f49c7c422 (diff)
downloadtqt3-34587584ab80fd696cc9d73dda1326f175125ddf.tar.gz
tqt3-34587584ab80fd696cc9d73dda1326f175125ddf.zip
avoid translating the /qt/XIMInputStyle options when saving into config
Also use "On The Spot" as the default when the setting in the config is incorrect. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/qtconfig/mainwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/qtconfig/mainwindow.cpp b/tools/qtconfig/mainwindow.cpp
index b01b0dba0..9a1d0044a 100644
--- a/tools/qtconfig/mainwindow.cpp
+++ b/tools/qtconfig/mainwindow.cpp
@@ -376,7 +376,8 @@ MainWindow::MainWindow()
rtlExtensions->setChecked( settings.readBoolEntry( "/qt/useRtlExtensions", FALSE ) );
#if defined(TQ_WS_X11)
- inputStyle->setCurrentText( settings.readEntry( "/qt/XIMInputStyle", trUtf8( "On The Spot" ) ) );
+ inputStyle->setCurrentText( trUtf8(
+ settings.readEntry( "/qt/XIMInputStyle", TQString::fromLatin1( "On The Spot" ) ) ) );
#else
inputStyle->hide();
inputStyleLabel->hide();
@@ -517,7 +518,7 @@ void MainWindow::fileSave()
str = "Off The Spot";
else if ( style == trUtf8( "Root" ) )
str = "Root";
- settings.writeEntry( "/qt/XIMInputStyle", inputStyle->currentText() );
+ settings.writeEntry( "/qt/XIMInputStyle", str );
#if !defined(TQT_NO_IM_EXTENSIONS)
TQString imSwitcher = settings.readEntry("/qt/DefaultInputMethodSwitcher", "imsw-multi");