diff options
| author | 2009-09-01 22:12:36 +0000 | |
|---|---|---|
| committer | 2009-09-01 22:12:36 +0000 | |
| commit | ea06d9bbbd8d8ef75034bfc3f62838f193537984 (patch) | |
| tree | a437eeabaa4b3d09f3313a6b0dd07b5bb961749d /src/modules/options/optw_textencoding.cpp | |
| parent | updated splash screen (diff) | |
| download | KVIrc-ea06d9bbbd8d8ef75034bfc3f62838f193537984.tar.gz KVIrc-ea06d9bbbd8d8ef75034bfc3f62838f193537984.tar.bz2 KVIrc-ea06d9bbbd8d8ef75034bfc3f62838f193537984.zip | |
- trailing whitespace cleanups all over the place
- removed charset dependent manpages since it really makes no sense to distribute them, they are getting installed in non standard places and one manpage per language is enough
- added SpotChat to the serverdb, happens to be my network anyway :P (someone should remind me to check all the networks and servers there so we can do a cleanup if needed
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3463 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/options/optw_textencoding.cpp')
| -rw-r--r-- | src/modules/options/optw_textencoding.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/modules/options/optw_textencoding.cpp b/src/modules/options/optw_textencoding.cpp index 3dee0ea09..9b38a6af6 100644 --- a/src/modules/options/optw_textencoding.cpp +++ b/src/modules/options/optw_textencoding.cpp @@ -74,19 +74,19 @@ KviTextEncodingOptionsWidget::KviTextEncodingOptionsWidget(QWidget * parent) m_pTextEncodingCombo->setCurrentIndex(iTextMatch); m_pSrvEncodingCombo->setCurrentIndex(iSrvMatch); - + addLabel(0,2,0,2,__tr2qs_ctx("Force language:","options")); - + m_pForcedLocaleCombo = new QComboBox(this); - + addWidgetToLayout(m_pForcedLocaleCombo,1,2,1,2); - + QLabel * l = new QLabel(__tr2qs_ctx("<b>Note:</b> You need to restart KVirc to apply a language changing","options"),this); addWidgetToLayout(l,0,3,1,3); - + m_pForcedLocaleCombo->addItem(__tr2qs_ctx("Automatic detection","options")); m_pForcedLocaleCombo->addItem(__tr2qs_ctx("en","options")); - + QString szLangFile=QString("%1/.kvirc_force_locale").arg(QDir::homePath()); bool bIsDefaultLocale = !KviFileUtils::fileExists(szLangFile); @@ -97,15 +97,15 @@ KviTextEncodingOptionsWidget::KviTextEncodingOptionsWidget(QWidget * parent) } else { m_szLanguage=KviLocale::localeName(); } - + QString szLocaleDir; g_pApp->getGlobalKvircDirectory(szLocaleDir,KviApp::Locale); QStringList list=QDir(szLocaleDir).entryList(QStringList("kvirc_*.mo"),QDir::Files); - + i = 0; int iMatch = 0; - + for ( QStringList::Iterator it = list.begin(); it != list.end(); ++it ) { QString szTmp=*it; szTmp.replace("kvirc_",""); @@ -147,7 +147,7 @@ void KviTextEncodingOptionsWidget::commit() } else { KVI_OPTION_STRING(KviOption_stringDefaultSrvEncoding) = m_pSrvEncodingCombo->itemText(idx); } - + idx=m_pForcedLocaleCombo->currentIndex(); QString szLangFile=QString("%1/.kvirc_force_locale").arg(QDir::homePath()); if(idx==0) { |
