summaryrefslogtreecommitdiffstats
path: root/khangman
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:43 -0600
commit2d7b541a4e0095d40e37aaefbf9c4a9b9d149302 (patch)
tree628c1676b27475e583cfd0c2105bb41b646654bf /khangman
parent6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (diff)
downloadtdeedu-2d7b541a4e0095d40e37aaefbf9c4a9b9d149302.tar.gz
tdeedu-2d7b541a4e0095d40e37aaefbf9c4a9b9d149302.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.
Diffstat (limited to 'khangman')
-rw-r--r--khangman/ChangeLog2
-rw-r--r--khangman/khangman/advanced.ui2
-rw-r--r--khangman/khangman/data/en/easy.kvtml4
-rw-r--r--khangman/khangman/khangman.cpp14
-rw-r--r--khangman/khangman/khangmanview.cpp20
-rw-r--r--khangman/khangman/normal.ui2
-rw-r--r--khangman/khangman/timerdlg.ui16
7 files changed, 30 insertions, 30 deletions
diff --git a/khangman/ChangeLog b/khangman/ChangeLog
index 337a55d6..93419a47 100644
--- a/khangman/ChangeLog
+++ b/khangman/ChangeLog
@@ -1,5 +1,5 @@
June 23, 2005
-- add timers for KPassivePopup (Hint and Already Guessed) to allow young children to read (young children need more time)
+- add timers for KPassivePopup (Hint and Already Guessed) to allow young tqchildren to read (young tqchildren need more time)
- fixed hint position
- tooltip if no Win dialog to say the game is finished (is displayed for 4 seconds)
diff --git a/khangman/khangman/advanced.ui b/khangman/khangman/advanced.ui
index 6290dd7c..7910fab7 100644
--- a/khangman/khangman/advanced.ui
+++ b/khangman/khangman/advanced.ui
@@ -18,7 +18,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<vbox>
<property name="name">
diff --git a/khangman/khangman/data/en/easy.kvtml b/khangman/khangman/data/en/easy.kvtml
index 8e2521aa..58338d21 100644
--- a/khangman/khangman/data/en/easy.kvtml
+++ b/khangman/khangman/data/en/easy.kvtml
@@ -3,7 +3,7 @@
<kvtml encoding="UTF-8">
<e>
<o>playtime</o>
- <t>time assigned for children to play</t>
+ <t>time assigned for tqchildren to play</t>
</e>
<e>
<o>furniture</o>
@@ -134,7 +134,7 @@
<t>large group of persons</t>
</e>
<e>
- <o>children</o>
+ <o>tqchildren</o>
<t>young humans</t>
</e>
<e>
diff --git a/khangman/khangman/khangman.cpp b/khangman/khangman/khangman.cpp
index 9c3e54b4..116d880b 100644
--- a/khangman/khangman/khangman.cpp
+++ b/khangman/khangman/khangman.cpp
@@ -228,7 +228,7 @@ void KHangMan::setLanguages()
for (uint i=0; i<m_languages.count(); i++) {
TQString tmp = m_languages[i];
if (!config->readEntry(tmp))
- config->writeEntry(tmp, TQString(TQDate::currentDate().toString(Qt::ISODate)));
+ config->writeEntry(tmp, TQString(TQDate::tqcurrentDate().toString(Qt::ISODate)));
}
// We look in $TDEDIR/share/locale/all_languages from
@@ -420,22 +420,22 @@ void KHangMan::loadLangToolBar()
m_allData.clear();
if (!m_noSpecialChars) {
- TQString myString=TQString("khangman/%1.txt").arg(Prefs::selectedLanguage());
+ TQString myString=TQString("khangman/%1.txt").tqarg(Prefs::selectedLanguage());
TQFile myFile;
myFile.setName(locate("data", myString));
// Let's look in local TDEHOME dir then
if (!myFile.exists()) {
TQString myString=TQString("khangman/data/%1/%1.txt")
- .arg(Prefs::selectedLanguage())
- .arg(Prefs::selectedLanguage());
+ .tqarg(Prefs::selectedLanguage())
+ .tqarg(Prefs::selectedLanguage());
myFile.setName(locate("data",myString));
kdDebug() << myString << endl;
}
if (!myFile.exists()) {
TQString mString=i18n("File $TDEDIR/share/apps/khangman/%1.txt not found;\n"
- "check your installation.").arg(Prefs::selectedLanguage());
+ "check your installation.").tqarg(Prefs::selectedLanguage());
KMessageBox::sorry( this, mString,
i18n("Error") );
kapp->quit();
@@ -457,7 +457,7 @@ void KHangMan::loadLangToolBar()
secondToolbar->insertButton (charIcon(m_allData[i].at(0)), i,
TQT_SIGNAL( clicked() ), TQT_TQOBJECT(this),
TQT_SLOT( slotPasteChar()), true,
- i18n("Inserts the character %1").arg(m_allData[i]), i+1 );
+ i18n("Inserts the character %1").tqarg(m_allData[i]), i+1 );
}
if (Prefs::showCharToolbar())
@@ -480,7 +480,7 @@ void KHangMan::slotPasteChar()
TQString KHangMan::charIcon(const TQChar & c)
{
///Create a name and path for the icon
- TQString s = locateLocal("icon", "char" + TQString::number(c.unicode()) + ".png");
+ TQString s = locateLocal("icon", "char" + TQString::number(c.tqunicode()) + ".png");
TQRect r(4, 4, 120, 120);
diff --git a/khangman/khangman/khangmanview.cpp b/khangman/khangman/khangmanview.cpp
index 3cf188e2..e3a646cf 100644
--- a/khangman/khangman/khangmanview.cpp
+++ b/khangman/khangman/khangmanview.cpp
@@ -48,16 +48,16 @@ KHangManView::KHangManView(KHangMan*parent, const char *name)
// The widget for entering letters.
m_letterInput = new KLineEdit( this, "charWrite" );
- m_letterInput->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType) 1,
+ m_letterInput->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType) 1,
(TQSizePolicy::SizeType) 0,
0, 0,
m_letterInput->sizePolicy().hasHeightForWidth() ) );
m_letterInput->setMaxLength( 1 );
- m_letterInput->setAlignment( int( TQLineEdit::AlignHCenter ) );
+ m_letterInput->tqsetAlignment( int( TQLineEdit::AlignHCenter ) );
// Press this button to enter a letter (or press enter)
m_guessButton = new KPushButton( this, "guessButton" );
- m_guessButton->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType) 1,
+ m_guessButton->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType) 1,
(TQSizePolicy::SizeType) 0,
0, 0,
m_guessButton->sizePolicy().hasHeightForWidth() ) );
@@ -467,7 +467,7 @@ void KHangManView::slotTry()
TQLabel *popLabel = new TQLabel( vb);
popLabel->setFont(TQFont("Sans Serif", 14, TQFont::Normal));
- popLabel->setText(i18n("<qt>You lost!\nThe word was\n<b>%1</b></qt>").arg(m_word));
+ popLabel->setText(i18n("<qt>You lost!\nThe word was\n<b>%1</b></qt>").tqarg(m_word));
popup->setView( vb );
TQPoint abspos = popup->pos();
@@ -586,15 +586,15 @@ void KHangManView::game()
// Check if the data files are installed in the correct dir.
TQString myString = TQString("khangman/data/%1/%2")
- .arg(Prefs::selectedLanguage())
- .arg(Prefs::levelFile());
+ .tqarg(Prefs::selectedLanguage())
+ .tqarg(Prefs::levelFile());
TQFile myFile;
myFile.setName(locate("data", myString));
if (!myFile.exists()) {
TQString mString = i18n("File $TDEDIR/share/apps/khangman/data/%1/%2 not found!\n"
"Check your installation, please!")
- .arg(Prefs::selectedLanguage())
- .arg(Prefs::levelFile());
+ .tqarg(Prefs::selectedLanguage())
+ .tqarg(Prefs::levelFile());
KMessageBox::sorry( this, mString, i18n("Error") );
kapp->quit();
}
@@ -666,7 +666,7 @@ void KHangManView::game()
void KHangManView::readFile()
{
kdDebug() << "in read kvtml file " << endl;
- TQString myString=TQString("khangman/data/%1/%2").arg(Prefs::selectedLanguage()).arg(Prefs::levelFile());
+ TQString myString=TQString("khangman/data/%1/%2").tqarg(Prefs::selectedLanguage()).tqarg(Prefs::levelFile());
myString= locate("data", myString);
KEduVocDataItemList verbs = KEduVocData::parse(myString);
@@ -728,7 +728,7 @@ void KHangManView::loadAnimation()
for (uint i = 0; i < 11; i++) {
m_animationPics[i].load(locate( "data",
TQString("khangman/pics/%1/animation%2.png")
- .arg(m_themeName).arg(i) ));
+ .tqarg(m_themeName).tqarg(i) ));
}
}
diff --git a/khangman/khangman/normal.ui b/khangman/khangman/normal.ui
index 99b31c4e..b7d3df2e 100644
--- a/khangman/khangman/normal.ui
+++ b/khangman/khangman/normal.ui
@@ -18,7 +18,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<vbox>
<property name="name">
diff --git a/khangman/khangman/timerdlg.ui b/khangman/khangman/timerdlg.ui
index fcea8d8b..dbd09dd7 100644
--- a/khangman/khangman/timerdlg.ui
+++ b/khangman/khangman/timerdlg.ui
@@ -29,7 +29,7 @@
</property>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<grid>
<property name="name">
@@ -64,7 +64,7 @@
<string>Time during which the Hint is displayed</string>
</property>
<property name="whatsThis" stdset="0">
- <string>You can set the time for displaying the Hint tooltip. Default is 3 seconds but younger children might need longer time to be able to read the Hint.</string>
+ <string>You can set the time for displaying the Hint tooltip. Default is 3 seconds but younger tqchildren might need longer time to be able to read the Hint.</string>
</property>
</widget>
<spacer row="2" column="0">
@@ -77,7 +77,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>295</width>
<height>20</height>
@@ -94,7 +94,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>25</width>
<height>16</height>
@@ -124,7 +124,7 @@
</widget>
<widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<grid>
<property name="name">
@@ -178,7 +178,7 @@
<string>Time during which the Already Guessed tooltip is displayed</string>
</property>
<property name="whatsThis" stdset="0">
- <string>You can set the time for displaying the Already Guessed tooltip after you try a letter that was already guessed. Default is 3 seconds but younger children might need longer time to be able to understand they are trying a letter that was already guessed.</string>
+ <string>You can set the time for displaying the Already Guessed tooltip after you try a letter that was already guessed. Default is 3 seconds but younger tqchildren might need longer time to be able to understand they are trying a letter that was already guessed.</string>
</property>
</widget>
<spacer row="3" column="1">
@@ -191,7 +191,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>25</width>
<height>16</height>
@@ -208,7 +208,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>295</width>
<height>20</height>