summaryrefslogtreecommitdiffstats
path: root/klatin
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /klatin
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'klatin')
-rw-r--r--klatin/klatin/data/vocab/en/I2L.kvtml4
-rw-r--r--klatin/klatin/data/vocab/pl/A.kvtml2
-rw-r--r--klatin/klatin/data/vocab/pl/V.kvtml2
-rw-r--r--klatin/klatin/data/vocab/sk/A.kvtml2
-rw-r--r--klatin/klatin/data/vocab/sk/BC.kvtml2
-rw-r--r--klatin/klatin/data/vocab/sk/GHI1.kvtml2
-rw-r--r--klatin/klatin/data/vocab/sk/M.kvtml2
-rw-r--r--klatin/klatin/data/vocab/sk/P2.kvtml2
-rw-r--r--klatin/klatin/data/vocab/sk/QR.kvtml4
-rw-r--r--klatin/klatin/data/vocab/sk/TU.kvtml4
-rw-r--r--klatin/klatin/klatin.cpp30
-rw-r--r--klatin/klatin/klatin.h3
-rw-r--r--klatin/klatin/klatin.kcfg12
-rw-r--r--klatin/klatin/klatinchoose.ui40
-rw-r--r--klatin/klatin/klatingrammar.cpp30
-rw-r--r--klatin/klatin/klatingrammar.h3
-rw-r--r--klatin/klatin/klatingrammarwidget.ui70
-rw-r--r--klatin/klatin/klatinresultsdialog.ui34
-rw-r--r--klatin/klatin/klatinsettings_vocabpage.ui34
-rw-r--r--klatin/klatin/klatinverbs.cpp18
-rw-r--r--klatin/klatin/klatinverbs.h3
-rw-r--r--klatin/klatin/klatinverbswidget.ui68
-rw-r--r--klatin/klatin/klatinvocab.cpp12
-rw-r--r--klatin/klatin/klatinvocab.h9
-rw-r--r--klatin/klatin/klatinvocabwidget.ui70
-rw-r--r--klatin/klatin/settings.kcfgc2
26 files changed, 234 insertions, 230 deletions
diff --git a/klatin/klatin/data/vocab/en/I2L.kvtml b/klatin/klatin/data/vocab/en/I2L.kvtml
index 367475ba..50057535 100644
--- a/klatin/klatin/data/vocab/en/I2L.kvtml
+++ b/klatin/klatin/data/vocab/en/I2L.kvtml
@@ -35,7 +35,7 @@
</e>
<e>
<o>invenio (3)</o>
- <t>find</t>
+ <t>tqfind</t>
</e>
<e>
<o>invito (1)</o>
@@ -151,7 +151,7 @@
</e>
<e>
<o>liberi (2)</o>
- <t>children</t>
+ <t>tqchildren</t>
</e>
<e>
<o>libero (1)</o>
diff --git a/klatin/klatin/data/vocab/pl/A.kvtml b/klatin/klatin/data/vocab/pl/A.kvtml
index 3ccf4856..61e8c134 100644
--- a/klatin/klatin/data/vocab/pl/A.kvtml
+++ b/klatin/klatin/data/vocab/pl/A.kvtml
@@ -187,6 +187,6 @@
</e>
<e>
<o>auxilium (2)</o>
- <t>pomoc</t>
+ <t>potqmoc</t>
</e>
</kvtml>
diff --git a/klatin/klatin/data/vocab/pl/V.kvtml b/klatin/klatin/data/vocab/pl/V.kvtml
index 6ace2e9a..d793ed8a 100644
--- a/klatin/klatin/data/vocab/pl/V.kvtml
+++ b/klatin/klatin/data/vocab/pl/V.kvtml
@@ -3,7 +3,7 @@
<kvtml>
<e>
<o>valde</o>
- <t>bardzo, mocno, gwałtownie</t>
+ <t>bardzo, tqmocno, gwałtownie</t>
</e>
<e>
<o>vale</o>
diff --git a/klatin/klatin/data/vocab/sk/A.kvtml b/klatin/klatin/data/vocab/sk/A.kvtml
index f8cbd879..56c5f2f2 100644
--- a/klatin/klatin/data/vocab/sk/A.kvtml
+++ b/klatin/klatin/data/vocab/sk/A.kvtml
@@ -187,6 +187,6 @@
</e>
<e>
<o>auxilium (2)</o>
- <t>podpora, pomoc</t>
+ <t>podpora, potqmoc</t>
</e>
</kvtml>
diff --git a/klatin/klatin/data/vocab/sk/BC.kvtml b/klatin/klatin/data/vocab/sk/BC.kvtml
index fc4da165..0d31ad31 100644
--- a/klatin/klatin/data/vocab/sk/BC.kvtml
+++ b/klatin/klatin/data/vocab/sk/BC.kvtml
@@ -39,7 +39,7 @@
</e>
<e>
<o>capio (3)</o>
- <t>brať, uchopiť, chápať, zmocniť sa</t>
+ <t>brať, uchopiť, chápať, ztqmocniť sa</t>
</e>
<e>
<o>captivus (2)</o>
diff --git a/klatin/klatin/data/vocab/sk/GHI1.kvtml b/klatin/klatin/data/vocab/sk/GHI1.kvtml
index 3a37603c..17d88b20 100644
--- a/klatin/klatin/data/vocab/sk/GHI1.kvtml
+++ b/klatin/klatin/data/vocab/sk/GHI1.kvtml
@@ -127,7 +127,7 @@
</e>
<e>
<o>imperium (2)</o>
- <t>vláda, zvrchovaná moc, rozkaz</t>
+ <t>vláda, zvrchovaná tqmoc, rozkaz</t>
</e>
<e>
<o>impero (1)</o>
diff --git a/klatin/klatin/data/vocab/sk/M.kvtml b/klatin/klatin/data/vocab/sk/M.kvtml
index ea61fd1d..e18e12c0 100644
--- a/klatin/klatin/data/vocab/sk/M.kvtml
+++ b/klatin/klatin/data/vocab/sk/M.kvtml
@@ -3,7 +3,7 @@
<kvtml>
<e>
<o>magnopere</o>
- <t>veľmi, moc</t>
+ <t>veľmi, tqmoc</t>
</e>
<e>
<o>magnus</o>
diff --git a/klatin/klatin/data/vocab/sk/P2.kvtml b/klatin/klatin/data/vocab/sk/P2.kvtml
index 9b2cf3aa..15c91231 100644
--- a/klatin/klatin/data/vocab/sk/P2.kvtml
+++ b/klatin/klatin/data/vocab/sk/P2.kvtml
@@ -47,7 +47,7 @@
</e>
<e>
<o>possum (irreg)</o>
- <t>môcť, byť schopný, mať moc, dokázať</t>
+ <t>môcť, byť schopný, mať tqmoc, dokázať</t>
</e>
<e>
<o>post + acc</o>
diff --git a/klatin/klatin/data/vocab/sk/QR.kvtml b/klatin/klatin/data/vocab/sk/QR.kvtml
index 7db08854..0517ac99 100644
--- a/klatin/klatin/data/vocab/sk/QR.kvtml
+++ b/klatin/klatin/data/vocab/sk/QR.kvtml
@@ -67,7 +67,7 @@
</e>
<e>
<o>rapio (3)</o>
- <t>uchvátiť, zmocniť sa</t>
+ <t>uchvátiť, ztqmocniť sa</t>
</e>
<e>
<o>re-</o>
@@ -95,7 +95,7 @@
</e>
<e>
<o>regnum (2)</o>
- <t>najvyššia moc, kráľovstvo, majetok</t>
+ <t>najvyššia tqmoc, kráľovstvo, majetok</t>
</e>
<e>
<o>regredior (3)</o>
diff --git a/klatin/klatin/data/vocab/sk/TU.kvtml b/klatin/klatin/data/vocab/sk/TU.kvtml
index a9d9c264..3f5bf6ce 100644
--- a/klatin/klatin/data/vocab/sk/TU.kvtml
+++ b/klatin/klatin/data/vocab/sk/TU.kvtml
@@ -27,7 +27,7 @@
</e>
<e>
<o>tantus</o>
- <t>tak veľký, len toľko, mocný, slávny</t>
+ <t>tak veľký, len toľko, tqmocný, slávny</t>
</e>
<e>
<o>templum (2)</o>
@@ -43,7 +43,7 @@
</e>
<e>
<o>teneo (2)</o>
- <t>držať, mať v moci</t>
+ <t>držať, mať v tqmoci</t>
</e>
<e>
<o>terra (1)</o>
diff --git a/klatin/klatin/klatin.cpp b/klatin/klatin/klatin.cpp
index 09a8a426..3caed219 100644
--- a/klatin/klatin/klatin.cpp
+++ b/klatin/klatin/klatin.cpp
@@ -32,8 +32,8 @@
#include "klatin.h"
#include "settings.h"
-KLatin::KLatin(TQWidget* parent, const char *name)
- : KMainWindow(parent, name)
+KLatin::KLatin(TQWidget* tqparent, const char *name)
+ : KMainWindow(tqparent, name)
{
m_section = 0;
@@ -53,12 +53,12 @@ KLatin::~KLatin()
void KLatin::setupActions()
{
// Setup various menu actions
- KStdAction::preferences(this, TQT_SLOT(loadSettings()), actionCollection());
- m_loadVocab = new KAction(i18n("Load &Vocabulary"), 0, this, TQT_SLOT(loadVocab()), actionCollection(), "go_vocab");
- m_loadGrammar = new KAction(i18n("Load &Grammar"), 0, this, TQT_SLOT(loadGrammar()), actionCollection(), "go_grammar");
- m_loadVerbs = new KAction(i18n("Load V&erbs"), 0, this, TQT_SLOT(loadVerbs()), actionCollection(), "go_verbs");
- m_loadRevision = new KAction(i18n("Load &Revision"), 0, this, TQT_SLOT(loadRevision()), actionCollection(), "go_revision");
- KStdAction::quit(kapp, TQT_SLOT(quit()), actionCollection());
+ KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(loadSettings()), actionCollection());
+ m_loadVocab = new KAction(i18n("Load &Vocabulary"), 0, TQT_TQOBJECT(this), TQT_SLOT(loadVocab()), actionCollection(), "go_vocab");
+ m_loadGrammar = new KAction(i18n("Load &Grammar"), 0, TQT_TQOBJECT(this), TQT_SLOT(loadGrammar()), actionCollection(), "go_grammar");
+ m_loadVerbs = new KAction(i18n("Load V&erbs"), 0, TQT_TQOBJECT(this), TQT_SLOT(loadVerbs()), actionCollection(), "go_verbs");
+ m_loadRevision = new KAction(i18n("Load &Revision"), 0, TQT_TQOBJECT(this), TQT_SLOT(loadRevision()), actionCollection(), "go_revision");
+ KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection());
}
void KLatin::startClicked()
@@ -91,7 +91,7 @@ void KLatin::loadVocab()
// When the child emits the signal exitted(),
// then reset the GUI to go back to the menu
- connect(klatinvocabsection, TQT_SIGNAL(exited()), this, TQT_SLOT(resetGUI()));
+ connect(klatinvocabsection, TQT_SIGNAL(exited()), TQT_TQOBJECT(this), TQT_SLOT(resetGUI()));
// Set the section variable
m_section = 1;
@@ -114,8 +114,8 @@ void KLatin::loadGrammar()
// When the child emits the signal exited(),
// then reset the GUI to go back to the menu
- connect(klatingrammarsection, TQT_SIGNAL(exited()), this, TQT_SLOT(resetGUI()));
- connect(klatingrammarsection, TQT_SIGNAL(statusMsg(const TQString&)), this, TQT_SLOT(slotWriteMsg(const TQString&)));
+ connect(klatingrammarsection, TQT_SIGNAL(exited()), TQT_TQOBJECT(this), TQT_SLOT(resetGUI()));
+ connect(klatingrammarsection, TQT_SIGNAL(statusMsg(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotWriteMsg(const TQString&)));
// Set the section variable
m_section = 2;
}
@@ -142,8 +142,8 @@ void KLatin::loadVerbs()
// When the child emits the signal exited(),
// then reset the GUI to go back to the menu
- connect(klatinverbssection, TQT_SIGNAL(exited()), this, TQT_SLOT(resetGUI()));
- connect(klatinverbssection, TQT_SIGNAL(statusMsg(const TQString&)), this, TQT_SLOT(slotWriteMsg(const TQString&)));
+ connect(klatinverbssection, TQT_SIGNAL(exited()), TQT_TQOBJECT(this), TQT_SLOT(resetGUI()));
+ connect(klatinverbssection, TQT_SIGNAL(statusMsg(const TQString&)), TQT_TQOBJECT(this), TQT_SLOT(slotWriteMsg(const TQString&)));
// Set the section variable
m_section = 3;
@@ -166,7 +166,7 @@ void KLatin::loadSettings()
vocabPage->kcfg_DefaultFile->setFilter("*.kvtml");
vocabPage->kcfg_DefaultFile->setCaption(i18n("Load Vocabulary File"));
dialog->addPage(vocabPage, i18n("Vocabulary"), "kdict");
- connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged()));
+ connect(dialog, TQT_SIGNAL(settingsChanged()), TQT_TQOBJECT(this), TQT_SLOT(settingsChanged()));
dialog->show();
}
@@ -189,7 +189,7 @@ void KLatin::resetGUI()
setCentralWidget(klatinchoose);
// Connect the "Start" button to slot StartPressed()
- connect(klatinchoose->StartButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(startClicked()));
+ connect(klatinchoose->StartButton, TQT_SIGNAL(clicked()), TQT_TQOBJECT(this), TQT_SLOT(startClicked()));
// Make the quit button quit the application :)
connect(klatinchoose->QuitButton, TQT_SIGNAL(clicked()), kapp, TQT_SLOT(quit()));
diff --git a/klatin/klatin/klatin.h b/klatin/klatin/klatin.h
index 91db4488..5b505bf7 100644
--- a/klatin/klatin/klatin.h
+++ b/klatin/klatin/klatin.h
@@ -36,8 +36,9 @@
class KLatin : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
public:
- KLatin(TQWidget* parent=0, const char *name=0);
+ KLatin(TQWidget* tqparent=0, const char *name=0);
~KLatin();
void setupActions();
diff --git a/klatin/klatin/klatin.kcfg b/klatin/klatin/klatin.kcfg
index 407f47a2..ec8fa52f 100644
--- a/klatin/klatin/klatin.kcfg
+++ b/klatin/klatin/klatin.kcfg
@@ -10,12 +10,12 @@
<code>
KConfigBase *globalConf = KGlobal::config();
globalConf->setGroup("Locale");
- QString m_language = globalConf->readEntry("Language", "en");
+ TQString m_language = globalConf->readEntry("Language", "en");
//keep only the first 2 characters
m_language = m_language.left(2);
- QString filename = locate("data", "klatin/data/vocabs/");
+ TQString filename = locate("data", "klatin/data/vocabs/");
filename += m_language;
- QDir check(filename);
+ TQDir check(filename);
if (check.exists() == FALSE) {
m_language = "en";
@@ -37,12 +37,12 @@
<entry name="DefaultFile" type="String">
<label>the default vocabulary file.</label>
<code>
- QString fileDir = locate("data", "klatin/data/vocabs/");
+ TQString fileDir = locate("data", "klatin/data/vocabs/");
fileDir += m_language;
- QDir vocabDirectory(fileDir, "*.kvtml");
+ TQDir vocabDirectory(fileDir, "*.kvtml");
kdDebug()&lt;&lt; m_language &lt;&lt;endl;
- QString defaultFile = (fileDir + "/" + vocabDirectory[0]);
+ TQString defaultFile = (fileDir + "/" + vocabDirectory[0]);
kdDebug()&lt;&lt; defaultFile &lt;&lt;endl;
</code>
<default code="true">defaultFile</default>
diff --git a/klatin/klatin/klatinchoose.ui b/klatin/klatin/klatinchoose.ui
index 98115187..ceb618a6 100644
--- a/klatin/klatin/klatinchoose.ui
+++ b/klatin/klatin/klatinchoose.ui
@@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KLatinChoose</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>KLatinChoose</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -24,15 +24,15 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout81</cstring>
+ <cstring>tqlayout81</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>WelcomeLabel</cstring>
</property>
@@ -46,19 +46,19 @@
<string>Welcome to KLatin
Please Choose Section of Revision</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout80</cstring>
+ <cstring>tqlayout80</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>Options</cstring>
</property>
@@ -87,14 +87,14 @@ Please Choose Section of Revision</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>21</height>
</size>
</property>
</spacer>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>VocabOption</cstring>
</property>
@@ -111,7 +111,7 @@ Please Choose Section of Revision</string>
<string>Multiple choice vocabulary test</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>GrammarOption</cstring>
</property>
@@ -128,7 +128,7 @@ Please Choose Section of Revision</string>
<string>Test on common nouns and endings</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>VerbsOption</cstring>
</property>
@@ -142,7 +142,7 @@ Please Choose Section of Revision</string>
<string>Test on common verbs and endings</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>RevisionOption</cstring>
</property>
@@ -167,7 +167,7 @@ verb and noun tables</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>31</height>
@@ -176,9 +176,9 @@ verb and noun tables</string>
</spacer>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout79</cstring>
+ <cstring>tqlayout79</cstring>
</property>
<vbox>
<property name="name">
@@ -194,7 +194,7 @@ verb and noun tables</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>34</height>
@@ -239,7 +239,7 @@ verb and noun tables</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>33</height>
@@ -256,7 +256,7 @@ verb and noun tables</string>
</widget>
<customwidgets>
</customwidgets>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>
diff --git a/klatin/klatin/klatingrammar.cpp b/klatin/klatin/klatingrammar.cpp
index 0598547f..5c7e30e6 100644
--- a/klatin/klatin/klatingrammar.cpp
+++ b/klatin/klatin/klatingrammar.cpp
@@ -30,8 +30,8 @@
#include "klatingrammar.h"
-KLatinGrammar::KLatinGrammar(TQWidget* parent, const char *name)
- : KLatinGrammarWidget(parent, name)
+KLatinGrammar::KLatinGrammar(TQWidget* tqparent, const char *name)
+ : KLatinGrammarWidget(tqparent, name)
{
// Set defaults
m_total = 0;
@@ -153,40 +153,40 @@ void KLatinGrammar::nextQuestion()
// Question string...
switch (m_grammarNumber) {
case 1:
- questionString = i18n("What is the nominative singular of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the nominative singular of %1?").tqarg(m_noun[0]);
break;
case 2:
- questionString = i18n("What is the vocative singular of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the vocative singular of %1?").tqarg(m_noun[0]);
break;
case 3:
- questionString = i18n("What is the accusative singular of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the accusative singular of %1?").tqarg(m_noun[0]);
break;
case 4:
- questionString = i18n("What is the genitive singular of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the genitive singular of %1?").tqarg(m_noun[0]);
break;
case 5:
- questionString = i18n("What is the dative singular of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the dative singular of %1?").tqarg(m_noun[0]);
break;
case 6:
- questionString = i18n("What is the ablative singular of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the ablative singular of %1?").tqarg(m_noun[0]);
break;
case 7:
- questionString = i18n("What is the nominative plural of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the nominative plural of %1?").tqarg(m_noun[0]);
break;
case 8:
- questionString = i18n("What is the vocative plural of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the vocative plural of %1?").tqarg(m_noun[0]);
break;
case 9:
- questionString = i18n("What is the accusative plural of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the accusative plural of %1?").tqarg(m_noun[0]);
break;
case 10:
- questionString = i18n("What is the genitive plural of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the genitive plural of %1?").tqarg(m_noun[0]);
break;
case 11:
- questionString = i18n("What is the dative plural of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the dative plural of %1?").tqarg(m_noun[0]);
break;
case 12:
- questionString = i18n("What is the ablative plural of %1?").arg(m_noun[0]);
+ questionString = i18n("What is the ablative plural of %1?").tqarg(m_noun[0]);
break;
}
@@ -202,7 +202,7 @@ void KLatinGrammar::checkAnswer()
// Allow a tolerance of 1 retry
if (m_numWrong == 2) {
m_numWrong = 0;
- KMessageBox::information(this, i18n("The correct answer was %1.").arg(m_noun[m_grammarNumber - 1]), i18n("Wrong"));
+ KMessageBox::information(this, i18n("The correct answer was %1.").tqarg(m_noun[m_grammarNumber - 1]), i18n("Wrong"));
if (ChooseSection->currentItem()==0)
loadDatabase();
else
diff --git a/klatin/klatin/klatingrammar.h b/klatin/klatin/klatingrammar.h
index c36a3612..11723c85 100644
--- a/klatin/klatin/klatingrammar.h
+++ b/klatin/klatin/klatingrammar.h
@@ -27,8 +27,9 @@
class KLatinGrammar : public KLatinGrammarWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KLatinGrammar(TQWidget* parent=0, const char *name=0);
+ KLatinGrammar(TQWidget* tqparent=0, const char *name=0);
~KLatinGrammar();
/// Load next question
diff --git a/klatin/klatin/klatingrammarwidget.ui b/klatin/klatin/klatingrammarwidget.ui
index 2e8046fb..b1ff6908 100644
--- a/klatin/klatin/klatingrammarwidget.ui
+++ b/klatin/klatin/klatingrammarwidget.ui
@@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KLatinGrammarWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>KLatinGrammarWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -12,7 +12,7 @@
<height>320</height>
</rect>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -25,11 +25,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TitleGrammar</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -43,15 +43,15 @@
<property name="text">
<string>Grammar Section</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout39</cstring>
+ <cstring>tqlayout39</cstring>
</property>
<hbox>
<property name="name">
@@ -67,15 +67,15 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout40</cstring>
+ <cstring>tqlayout40</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>QuestionLabel</cstring>
</property>
@@ -87,7 +87,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
@@ -110,7 +110,7 @@ Line 2
Line 3
Line 4</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
@@ -121,7 +121,7 @@ Line 4</string>
<property name="wordwrap" stdset="0">
</property>
</widget>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>Frame10</cstring>
</property>
@@ -133,13 +133,13 @@ Line 4</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>32767</width>
<height>32767</height>
@@ -161,7 +161,7 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout41_2</cstring>
</property>
@@ -175,7 +175,7 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>ScoreLabel</cstring>
</property>
@@ -187,13 +187,13 @@ Line 4</string>
<property name="text">
<string>Score</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout40_2</cstring>
</property>
@@ -207,7 +207,7 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout39</cstring>
</property>
@@ -221,33 +221,33 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>Score1Label</cstring>
</property>
<property name="text">
<string>0</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>SeparatorLabel</cstring>
</property>
<property name="text">
<string>/</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>Score2Label</cstring>
</property>
@@ -257,11 +257,11 @@ Line 4</string>
</widget>
</hbox>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>PercentageLabel</cstring>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
@@ -278,15 +278,15 @@ Line 4</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout37</cstring>
+ <cstring>tqlayout37</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>AnswerLabel</cstring>
</property>
@@ -324,9 +324,9 @@ Line 4</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout21</cstring>
+ <cstring>tqlayout21</cstring>
</property>
<hbox>
<property name="name">
@@ -342,7 +342,7 @@ Line 4</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>294</width>
<height>20</height>
@@ -375,7 +375,7 @@ Line 4</string>
<tabstop>BackButton</tabstop>
<tabstop>ChooseSection</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
</includehints>
diff --git a/klatin/klatin/klatinresultsdialog.ui b/klatin/klatin/klatinresultsdialog.ui
index f81f0bc2..6ea3a4f3 100644
--- a/klatin/klatin/klatinresultsdialog.ui
+++ b/klatin/klatin/klatinresultsdialog.ui
@@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KLatinResultsDialog</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>KLatinResultsDialog</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>ResultsLabel</cstring>
</property>
@@ -31,11 +31,11 @@
<property name="text">
<string>&lt;b&gt;Your Results&lt;/b&gt;</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignCenter</set>
</property>
</widget>
- <widget class="QListView">
+ <widget class="TQListView">
<column>
<property name="text">
<string>Question</string>
@@ -90,15 +90,15 @@
<string>Table of results</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout83</cstring>
+ <cstring>tqlayout83</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>PercentageLabel</cstring>
</property>
@@ -112,14 +112,14 @@
<string>This shows the percentage of the questions you answered correctly out of those attempted.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>PercentageValue</cstring>
</property>
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="toolTip" stdset="0">
@@ -129,7 +129,7 @@
<string>This shows the percentage of the questions you answered correctly out of those attempted.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>AttemptedLabel</cstring>
</property>
@@ -143,14 +143,14 @@
<string>This shows the number of questions you answered.</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>AttemptedValue</cstring>
</property>
<property name="text">
<string></string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="toolTip" stdset="0">
@@ -162,9 +162,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout70</cstring>
+ <cstring>tqlayout70</cstring>
</property>
<hbox>
<property name="name">
@@ -180,7 +180,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>291</width>
<height>20</height>
@@ -216,7 +216,7 @@
<slot>close()</slot>
</connection>
</connections>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
</includehints>
diff --git a/klatin/klatin/klatinsettings_vocabpage.ui b/klatin/klatin/klatinsettings_vocabpage.ui
index 7db9e38a..affa58e8 100644
--- a/klatin/klatin/klatinsettings_vocabpage.ui
+++ b/klatin/klatin/klatinsettings_vocabpage.ui
@@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>VocabPage</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>VocabPage</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QButtonGroup" row="1" column="0">
+ <widget class="TQButtonGroup" row="1" column="0">
<property name="name">
<cstring>ButtonGroup</cstring>
</property>
@@ -30,23 +30,23 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout24</cstring>
+ <cstring>tqlayout24</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>kcfg_LatinToLang</cstring>
</property>
@@ -63,7 +63,7 @@
<string>Choose to be tested from your language to Latin, which means the word will be displayed in your language and you will have to choose from 4 Latin translations.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>kcfg_LangToLatin</cstring>
</property>
@@ -83,7 +83,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox" row="0" column="0">
+ <widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>MiscGroup</cstring>
</property>
@@ -94,9 +94,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
@@ -113,22 +113,22 @@
<string>You can change the file you are tested on for the vocabulary section</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>QuestionsLabel</cstring>
</property>
<property name="text">
<string>Number of questions:</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
</property>
<property name="toolTip" stdset="0">
@@ -171,7 +171,7 @@
</widget>
</grid>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>
diff --git a/klatin/klatin/klatinverbs.cpp b/klatin/klatin/klatinverbs.cpp
index 70d42ed8..e5be5ff2 100644
--- a/klatin/klatin/klatinverbs.cpp
+++ b/klatin/klatin/klatinverbs.cpp
@@ -30,8 +30,8 @@
#include "klatinverbs.h"
-KLatinVerbs::KLatinVerbs(TQWidget* parent, const char *name)
- : KLatinVerbsWidget(parent, name)
+KLatinVerbs::KLatinVerbs(TQWidget* tqparent, const char *name)
+ : KLatinVerbsWidget(tqparent, name)
{
OKButton->setIconSet(KGlobal::iconLoader()->loadIconSet("button_ok", KIcon::Small));
BackButton->setIconSet(KGlobal::iconLoader()->loadIconSet("back", KIcon::Small));
@@ -202,12 +202,12 @@ void KLatinVerbs::nextQuestion()
"ARGUMENT %5 is the voice of the verb (Active, Passive). "
"ARGUMENT %6 is the verb name (amo, moneo etc). This is in Latin and should not be translated. "
"The output string in English is something like: What is the first person singular present indicative active of amo?",
- "What is the %1 person %2 %3 %4 %5 of %6?").arg(i18n(question.person[person]))
- .arg(i18n(question.number[number]))
- .arg(i18n(question.tense[tense]))
- .arg(i18n(verbparts.mood[ChooseMood->currentItem()]))
- .arg(i18n(verbparts.voice[ChooseVoice->currentItem()]))
- .arg(m_currentVerb);
+ "What is the %1 person %2 %3 %4 %5 of %6?").tqarg(i18n(question.person[person]))
+ .tqarg(i18n(question.number[number]))
+ .tqarg(i18n(question.tense[tense]))
+ .tqarg(i18n(verbparts.mood[ChooseMood->currentItem()]))
+ .tqarg(i18n(verbparts.voice[ChooseVoice->currentItem()]))
+ .tqarg(m_currentVerb);
QuestionLabel->setText(QuestionString);
}
@@ -226,7 +226,7 @@ void KLatinVerbs::checkAnswer()
// Retry tolerance...
if (m_numWrong == 2) {
m_numWrong = 0;
- KMessageBox::information(this, i18n("The correct answer was %1.").arg(m_verb[m_verbNumber - 1]), i18n("Wrong"));
+ KMessageBox::information(this, i18n("The correct answer was %1.").tqarg(m_verb[m_verbNumber - 1]), i18n("Wrong"));
nextQuestion();
}
} else {
diff --git a/klatin/klatin/klatinverbs.h b/klatin/klatin/klatinverbs.h
index 03b5b649..af6f9ba0 100644
--- a/klatin/klatin/klatinverbs.h
+++ b/klatin/klatin/klatinverbs.h
@@ -41,8 +41,9 @@ struct questionparts {
class KLatinVerbs : public KLatinVerbsWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KLatinVerbs(TQWidget* parent=0, const char *name=0);
+ KLatinVerbs(TQWidget* tqparent=0, const char *name=0);
~KLatinVerbs();
/// Load next question
diff --git a/klatin/klatin/klatinverbswidget.ui b/klatin/klatin/klatinverbswidget.ui
index a00b72f0..a4eeafbe 100644
--- a/klatin/klatin/klatinverbswidget.ui
+++ b/klatin/klatin/klatinverbswidget.ui
@@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KLatinVerbsWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>KLatinVerbsWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TitleVerbs</cstring>
</property>
@@ -39,15 +39,15 @@
<property name="text">
<string>Verbs Section</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout29</cstring>
+ <cstring>tqlayout29</cstring>
</property>
<hbox>
<property name="name">
@@ -69,7 +69,7 @@ tested on</string>
<property name="name">
<cstring>ChooseVoice</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>120</width>
<height>0</height>
@@ -99,7 +99,7 @@ tested on</string>
<property name="name">
<cstring>ChangeButton</cstring>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>25</width>
<height>32767</height>
@@ -117,15 +117,15 @@ tested on</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>QuestionLabel</cstring>
</property>
@@ -154,7 +154,7 @@ Line 2
Line 3
Line 4</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>WordBreak|AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
@@ -165,7 +165,7 @@ Line 4</string>
<property name="wordwrap" stdset="0">
</property>
</widget>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>Frame10</cstring>
</property>
@@ -177,13 +177,13 @@ Line 4</string>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>32767</width>
<height>32767</height>
@@ -205,7 +205,7 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout41_2</cstring>
</property>
@@ -219,7 +219,7 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>ScoreLabel</cstring>
</property>
@@ -231,13 +231,13 @@ Line 4</string>
<property name="text">
<string>Score</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout40_2</cstring>
</property>
@@ -251,7 +251,7 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout39</cstring>
</property>
@@ -265,33 +265,33 @@ Line 4</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>Score1Label</cstring>
</property>
<property name="text">
<string>0</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>SeparatorLabel</cstring>
</property>
<property name="text">
<string>/</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>Score2Label</cstring>
</property>
@@ -301,11 +301,11 @@ Line 4</string>
</widget>
</hbox>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>PercentageLabel</cstring>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
@@ -322,15 +322,15 @@ Line 4</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout9</cstring>
+ <cstring>tqlayout9</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>AnswerLabel</cstring>
</property>
@@ -365,9 +365,9 @@ Line 4</string>
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout29</cstring>
+ <cstring>tqlayout29</cstring>
</property>
<hbox>
<property name="name">
@@ -383,7 +383,7 @@ Line 4</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>297</width>
<height>20</height>
@@ -419,7 +419,7 @@ Line 4</string>
<tabstop>ChooseMood</tabstop>
<tabstop>ChangeButton</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
</includehints>
diff --git a/klatin/klatin/klatinvocab.cpp b/klatin/klatin/klatinvocab.cpp
index b1b10ccf..08cc0249 100644
--- a/klatin/klatin/klatinvocab.cpp
+++ b/klatin/klatin/klatinvocab.cpp
@@ -32,12 +32,12 @@
#include "klatinvocab.h"
#include "settings.h"
-KLatinVocab::KLatinVocab(TQWidget* parent, const char *name)
- : KLatinVocabWidget(parent, name)
+KLatinVocab::KLatinVocab(TQWidget* tqparent, const char *name)
+ : KLatinVocabWidget(tqparent, name)
{
BackButton->setIconSet(KGlobal::iconLoader()->loadIconSet("back", KIcon::Small));
- m_vocabFile = TQString::null;
+ m_vocabFile = TQString();
// Goes back to the last dialog
connect(BackButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(goBack()));
@@ -120,12 +120,12 @@ void KLatinVocab::parseVocab(TQString customFile)
int it = 0;
- // Start parsing file and allocating words to the TQValueList<QStringPair>
+ // Start parsing file and allocating words to the TQValueList<TQStringPair>
for(KEduVocDataItemList::Iterator dataIt = vocabulary.begin(); dataIt != vocabulary.end(); ++dataIt) {
if (Settings::langToLatin()) {
- m_texts.append(qMakePair(vocabulary[it].originalText(), vocabulary[it].translatedText()));
+ m_texts.append(tqMakePair(vocabulary[it].originalText(), vocabulary[it].translatedText()));
} else {
- m_texts.append(qMakePair(vocabulary[it].translatedText(), vocabulary[it].originalText()));
+ m_texts.append(tqMakePair(vocabulary[it].translatedText(), vocabulary[it].originalText()));
}
it++;
}
diff --git a/klatin/klatin/klatinvocab.h b/klatin/klatin/klatinvocab.h
index 6980fe24..83ada419 100644
--- a/klatin/klatin/klatinvocab.h
+++ b/klatin/klatin/klatinvocab.h
@@ -31,12 +31,13 @@
class KLatinVocab : public KLatinVocabWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- KLatinVocab(TQWidget* parent=0, const char *name=0);
+ KLatinVocab(TQWidget* tqparent=0, const char *name=0);
~KLatinVocab();
/// Load vocabulary from file @p customFile
- void parseVocab(TQString customFile = TQString::null);
+ void parseVocab(TQString customFile = TQString());
/// Generate a new question
void newQuestion();
/// Update the scores of the test so far
@@ -66,8 +67,8 @@ signals:
void exited();
private:
/// The list in which the native language and Latin words are assigned
- typedef QPair<TQString, TQString> QStringPair;
- TQValueList<QStringPair> m_texts;
+ typedef TQPair<TQString, TQString> TQStringPair;
+ TQValueList<TQStringPair> m_texts;
TQString m_fileDir;
/// The filename of the vocabulary file being tested on
diff --git a/klatin/klatin/klatinvocabwidget.ui b/klatin/klatin/klatinvocabwidget.ui
index db6ad834..91993658 100644
--- a/klatin/klatin/klatinvocabwidget.ui
+++ b/klatin/klatin/klatinvocabwidget.ui
@@ -1,10 +1,10 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>KLatinVocabWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>KLatinVocabWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -19,11 +19,11 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TitleLabel</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>500</width>
<height>0</height>
@@ -37,21 +37,21 @@
<property name="text">
<string>Vocabulary Section</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout52</cstring>
+ <cstring>tqlayout52</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>QuestionLabel</cstring>
</property>
@@ -77,7 +77,7 @@
<property name="text">
<string>Question Word</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
@@ -86,7 +86,7 @@
<string>The question word will appear here</string>
</property>
</widget>
- <widget class="QFrame">
+ <widget class="TQFrame">
<property name="name">
<cstring>Frame10</cstring>
</property>
@@ -98,7 +98,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="maximumSize">
+ <property name="tqmaximumSize">
<size>
<width>32767</width>
<height>32767</height>
@@ -126,7 +126,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout41</cstring>
</property>
@@ -140,7 +140,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>ScoreLabel</cstring>
</property>
@@ -152,13 +152,13 @@
<property name="text">
<string>Score</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout40</cstring>
</property>
@@ -172,7 +172,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout39</cstring>
</property>
@@ -186,33 +186,33 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>Score1Label</cstring>
</property>
<property name="text">
<string>0</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>Separator</cstring>
</property>
<property name="text">
<string>/</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>Score2Label</cstring>
</property>
@@ -222,11 +222,11 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>PercentageLabel</cstring>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignCenter</set>
</property>
<property name="hAlign" stdset="0">
@@ -243,9 +243,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout53</cstring>
+ <cstring>tqlayout53</cstring>
</property>
<hbox>
<property name="name">
@@ -255,7 +255,7 @@
<property name="name">
<cstring>Answer1</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>150</width>
<height>40</height>
@@ -272,7 +272,7 @@
<property name="name">
<cstring>Answer2</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>150</width>
<height>40</height>
@@ -287,9 +287,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout64</cstring>
+ <cstring>tqlayout64</cstring>
</property>
<hbox>
<property name="name">
@@ -299,7 +299,7 @@
<property name="name">
<cstring>Answer3</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>150</width>
<height>40</height>
@@ -316,7 +316,7 @@
<property name="name">
<cstring>Answer4</cstring>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>150</width>
<height>40</height>
@@ -331,9 +331,9 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout18</cstring>
+ <cstring>tqlayout18</cstring>
</property>
<hbox>
<property name="name">
@@ -349,7 +349,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>326</width>
<height>20</height>
@@ -381,7 +381,7 @@
<tabstop>Answer4</tabstop>
<tabstop>BackButton</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>
diff --git a/klatin/klatin/settings.kcfgc b/klatin/klatin/settings.kcfgc
index f9475d28..a58324de 100644
--- a/klatin/klatin/settings.kcfgc
+++ b/klatin/klatin/settings.kcfgc
@@ -1,5 +1,5 @@
File=klatin.kcfg
ClassName=Settings
-IncludeFiles=kstandarddirs.h,qdir.h,klocale.h,kdebug.h
+IncludeFiles=kstandarddirs.h,tqdir.h,klocale.h,kdebug.h
Singleton=true
Mutators=true \ No newline at end of file