int main( int argc, char **argv ) { setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); bind_textdomain_codeset(PACKAGE, "UTF-8"); // ensure code encoding is UTF8- setenv("XMODIFIERS", "@im=none", 1); QApplication a( argc, argv ); UimImSwitcher switcher; switcher.setWindowIcon( QIcon( UIM_PIXMAPSDIR "/uim-icon.png" ) ); switcher.resize( 550, 400 ); switcher.setWindowTitle( _( "uim input method switcher" ) ); switcher.show(); return a.exec(); }
int main( int argc, char **argv ) { setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); bind_textdomain_codeset(PACKAGE, "UTF-8"); // ensure code encoding is UTF8- setenv("XMODIFIERS", "@im=none", 1); QApplication a( argc, argv ); UimImSwitcher switcher; switcher.resize( 550, 400 ); switcher.setCaption( _( "uim input method switcher" ) ); a.setMainWidget( &switcher ); switcher.show(); return a.exec(); }