diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kanagram/src/mainsettings.cpp | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kanagram/src/mainsettings.cpp')
-rw-r--r-- | kanagram/src/mainsettings.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kanagram/src/mainsettings.cpp b/kanagram/src/mainsettings.cpp index 660a1c5c..1e026758 100644 --- a/kanagram/src/mainsettings.cpp +++ b/kanagram/src/mainsettings.cpp @@ -19,10 +19,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include <qdir.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qpushbutton.h> +#include <tqdir.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqpushbutton.h> #include <kdebug.h> #include <kconfig.h> @@ -35,22 +35,22 @@ #include "mainsettings.h" #include "kanagramsettings.h" -MainSettings::MainSettings(QWidget *parent) : MainSettingsWidget(parent) +MainSettings::MainSettings(TQWidget *parent) : MainSettingsWidget(parent) { m_parent = (KConfigDialog*)parent; - connect(parent, SIGNAL(applyClicked()), this, SLOT(slotChangeTranslation())); - connect(cboxTranslation, SIGNAL(activated(int)), this, SLOT(slotUpdateParent())); + connect(parent, TQT_SIGNAL(applyClicked()), this, TQT_SLOT(slotChangeTranslation())); + connect(cboxTranslation, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateParent())); setupTranslations(); - QStringList languageNames = m_languageCodeMap.keys(); + TQStringList languageNames = m_languageCodeMap.keys(); languageNames.sort(); cboxTranslation->insertStringList(languageNames); //the language code/name KConfig entry(locate("locale", "all_languages")); - QString code = KanagramSettings::dataLanguage(); + TQString code = KanagramSettings::dataLanguage(); entry.setGroup(code); if (code == "sr") cboxTranslation->setCurrentText(entry.readEntry("Name")+" ("+i18n("Cyrillic")+")"); @@ -62,7 +62,7 @@ MainSettings::MainSettings(QWidget *parent) : MainSettingsWidget(parent) else cboxTranslation->setCurrentText(entry.readEntry("Name")); - QFont f("squeaky chalk sound"); + TQFont f("squeaky chalk sound"); if (KanagramSettings::justGotFont()) { getFontsButton->hide(); @@ -70,10 +70,10 @@ MainSettings::MainSettings(QWidget *parent) : MainSettingsWidget(parent) } else { - if (!QFontInfo(f).exactMatch()) + if (!TQFontInfo(f).exactMatch()) { kcfg_useStandardFonts->setEnabled(false); - connect(getFontsButton, SIGNAL(pressed()), this, SLOT(getAndInstallFont())); + connect(getFontsButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(getAndInstallFont())); } else { @@ -94,20 +94,20 @@ void MainSettings::slotUpdateParent() void MainSettings::setupTranslations() { m_languageCodeMap.clear(); - QStringList languages, temp_languages; + TQStringList languages, temp_languages; //the program scans in kdereview/data/ to see what languages data is found - QStringList mdirs = KGlobal::dirs()->findDirs("appdata", "data/"); + TQStringList mdirs = KGlobal::dirs()->findDirs("appdata", "data/"); if (mdirs.isEmpty()) return; - for (QStringList::const_iterator it = mdirs.begin(); it != mdirs.end(); ++it ) + for (TQStringList::const_iterator it = mdirs.begin(); it != mdirs.end(); ++it ) { - QDir dir(*it); - temp_languages = dir.entryList(QDir::Dirs, QDir::Name); + TQDir dir(*it); + temp_languages = dir.entryList(TQDir::Dirs, TQDir::Name); temp_languages.remove("."); temp_languages.remove(".."); - for (QStringList::const_iterator it2 = temp_languages.begin(); it2 != temp_languages.end(); ++it2 ) + for (TQStringList::const_iterator it2 = temp_languages.begin(); it2 != temp_languages.end(); ++it2 ) { if (!languages.contains(*it2)) languages.append(*it2); } @@ -118,8 +118,8 @@ void MainSettings::setupTranslations() //the language code/name KConfig entry(locate("locale", "all_languages")); - const QStringList::ConstIterator itEnd = languages.end(); - for (QStringList::ConstIterator it = languages.begin(); it != itEnd; ++it) { + const TQStringList::ConstIterator itEnd = languages.end(); + for (TQStringList::ConstIterator it = languages.begin(); it != itEnd; ++it) { entry.setGroup(*it); if (*it == "sr") m_languageCodeMap.insert(entry.readEntry("Name")+" ("+i18n("Cyrillic")+")", "sr"); |