summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 04:18:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-07 04:18:52 +0000
commit648ba4a456d3aad2825193ff8f3bd52a875783b5 (patch)
tree0b50d2253a0c85238cc4dcba5c4f949de3f0eb15 /kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp
parent98a12d05a48814bec3870b9a6d5865475cfa1c95 (diff)
downloadtdeedu-648ba4a456d3aad2825193ff8f3bd52a875783b5.tar.gz
tdeedu-648ba4a456d3aad2825193ff8f3bd52a875783b5.zip
Revert automated changes
Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1212481 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp')
-rw-r--r--kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp b/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp
index 11865aee..47487624 100644
--- a/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp
+++ b/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp
@@ -43,11 +43,11 @@
struct KV_Unicode_Ref {
wchar_t code;
- const char *tqunicodename;
+ const char *unicodename;
const char *audible;
};
-KV_Unicode_Ref kv_tqunicode_ref[] = {
+KV_Unicode_Ref kv_unicode_ref[] = {
{0x00E6, "LATIN SMALL LETTER AE", I18N_NOOP_maybe("")},
{0x00E7, "LATIN SMALL LETTER C WITH CEDILLA", I18N_NOOP_maybe("")},
@@ -171,18 +171,18 @@ KV_Unicode_Ref kv_tqunicode_ref[] = {
void PhoneticButton::slotClicked()
{
if (text().length() != 0)
- emit page->charSelected(text()[0].tqunicode());
+ emit page->charSelected(text()[0].unicode());
}
PhoneticEntryPage::PhoneticEntryPage(const TQFont &ipafont, TQWidget *parent, const char *name, bool modal)
: KDialogBase(Plain, i18n("Select Characters From Phonetic Alphabet"), Close, Close, parent, name, modal)
{
- int num = sizeof(kv_tqunicode_ref) / sizeof(kv_tqunicode_ref[0]);
+ int num = sizeof(kv_unicode_ref) / sizeof(kv_unicode_ref[0]);
TQFrame * phoneticbox = plainPage();
TQGridLayout *gbox = new TQGridLayout(phoneticbox, KV_MAX_HORIZ, (num+KV_MAX_HORIZ-1)/KV_MAX_HORIZ, 1);
- KV_Unicode_Ref *uni_ref = kv_tqunicode_ref;
+ KV_Unicode_Ref *uni_ref = kv_unicode_ref;
int vert = 0;
int horiz = 0;
while (uni_ref->code != 0) {
@@ -191,12 +191,12 @@ PhoneticEntryPage::PhoneticEntryPage(const TQFont &ipafont, TQWidget *parent, co
PhoneticButton *butt = new PhoneticButton(text, phoneticbox, this);
connect (butt, TQT_SIGNAL(clicked()), butt, TQT_SLOT(slotClicked()) );
TQString tip = i18n("Unicode name: ");
- tip += TQString::tqfromLatin1(uni_ref->tqunicodename);
+ tip += TQString::fromLatin1(uni_ref->unicodename);
tip += "\n";
tip += i18n("Describing the sound of the character", "Sound: ");
tip += i18n(uni_ref->audible);
butt->setFont(ipafont);
- butt->tqsetSizePolicy(TQSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed));
+ butt->setSizePolicy(TQSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed));
int sz = QMAX(14, int(1.7*ipafont.pointSize()));
butt->setMaximumSize(TQSize (sz, sz));
gbox->addWidget( butt, vert, horiz, AlignCenter );
@@ -208,7 +208,7 @@ PhoneticEntryPage::PhoneticEntryPage(const TQFont &ipafont, TQWidget *parent, co
}
++uni_ref;
}
- resize(tqsizeHint());
+ resize(sizeHint());
}
@@ -217,7 +217,7 @@ void PhoneticEntryPage::keyPressEvent( TQKeyEvent *e )
if ((e->state() & (ControlButton | AltButton)) == 0) {
TQString s = e->text();
for (unsigned i = 0; i < s.length(); ++i) {
- emit charSelected(s[i].tqunicode());
+ emit charSelected(s[i].unicode());
}
e->accept();
}