Bug 57257

Summary: KPasswordEdit does not show asterisk for preedit strings.
Product: [Frameworks and Libraries] kdelibs Reporter: Choe Hwanjin <hjchoe>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED    
Severity: normal CC: mueller, paulpach
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: patch

Description Choe Hwanjin 2003-04-15 11:11:29 UTC
Version:            (using KDE KDE 3.1.1)
Installed from:    Compiled From Sources
Compiler:          gcc version 3.2.2 20030217 (Red Hat Linux 8.0 3.2.2-2) 
OS:          Linux

I'm using XIM for native language(Korean). When I input text into KPasswordEdit widget, 
it show raw text for preedit strings. It is a mis-behavior. But QLineEdit shows asterisk for
preedit string.

I think a better solution is not to use XIM on password input lineedit widget. Many
users of Korea may do not want to input their language text as a password.
I don't know chinese or japanese users want or not.
Comment 1 Toyohiro Asukai 2003-05-04 20:41:07 UTC
Hi , 

(1) When I would like to do not use XIM at 
    KDE or QT applications, I add command line
    option "--noxim".

For example.
$ kdepasswd --noxim

(2) When I develop the KDE or QT application
    without XIM,
    I am using "QApplication::close_xim()".

For example.
int main(int argc , char **argv)
{
    QApplication a(argc,argv);
    a.close_xim();
    ..
    ..
}

Regards
Comment 2 Choe Hwanjin 2003-05-09 03:34:49 UTC
The problem is on using kmess. We need xim when we are using messenger like kmess, but 
on account menu we need to type password in KpasswordEdit widget. Then we can see  
password as a preedit string. QLineEdit does not has a such problem. 
Comment 3 Dirk Mueller 2003-06-09 23:08:23 UTC
Created attachment 1762 [details]
patch

can you try if it works with this patch?
Comment 4 Choe Hwanjin 2003-06-10 03:25:04 UTC
I'm using KDE 3.1.2 now. It doesn't have such problem. Preedit string is not shown any more. But 
when I applied this patch, it made too many '*'s in qlineedit. I think we don't need this patch. 
Thanks. 
Comment 5 Tobias Koenig 2003-10-29 22:55:50 UTC
Hi,

so if it works for you, I'll close this bug report now.

Ciao,
Tobias
Comment 6 Chris Howells 2004-02-11 16:48:55 UTC
*** Bug 74961 has been marked as a duplicate of this bug. ***