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 /kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.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 'kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp')
-rw-r--r-- | kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp b/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp index 6d26be5a..47487624 100644 --- a/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp +++ b/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp @@ -26,10 +26,10 @@ #include "PhoneticEntryPage.h" -#include <qlayout.h> -#include <qframe.h> -#include <qgroupbox.h> -#include <qtooltip.h> +#include <tqlayout.h> +#include <tqframe.h> +#include <tqgroupbox.h> +#include <tqtooltip.h> #include <kdebug.h> #include <klocale.h> @@ -175,32 +175,32 @@ void PhoneticButton::slotClicked() } -PhoneticEntryPage::PhoneticEntryPage(const QFont &ipafont, QWidget *parent, const char *name, bool modal) +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_unicode_ref) / sizeof(kv_unicode_ref[0]); - QFrame * phoneticbox = plainPage(); - QGridLayout *gbox = new QGridLayout(phoneticbox, KV_MAX_HORIZ, (num+KV_MAX_HORIZ-1)/KV_MAX_HORIZ, 1); + 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_unicode_ref; int vert = 0; int horiz = 0; while (uni_ref->code != 0) { - QChar qc = uni_ref->code; - QString text = qc; + TQChar qc = uni_ref->code; + TQString text = qc; PhoneticButton *butt = new PhoneticButton(text, phoneticbox, this); - connect (butt, SIGNAL(clicked()), butt, SLOT(slotClicked()) ); - QString tip = i18n("Unicode name: "); - tip += QString::fromLatin1(uni_ref->unicodename); + connect (butt, TQT_SIGNAL(clicked()), butt, TQT_SLOT(slotClicked()) ); + TQString tip = i18n("Unicode name: "); + 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->setSizePolicy(QSizePolicy (QSizePolicy::Fixed, QSizePolicy::Fixed)); + butt->setSizePolicy(TQSizePolicy (TQSizePolicy::Fixed, TQSizePolicy::Fixed)); int sz = QMAX(14, int(1.7*ipafont.pointSize())); - butt->setMaximumSize(QSize (sz, sz)); + butt->setMaximumSize(TQSize (sz, sz)); gbox->addWidget( butt, vert, horiz, AlignCenter ); - QToolTip::add (butt, tip); + TQToolTip::add (butt, tip); if (++horiz >= KV_MAX_HORIZ) { ++vert; @@ -212,10 +212,10 @@ PhoneticEntryPage::PhoneticEntryPage(const QFont &ipafont, QWidget *parent, cons } -void PhoneticEntryPage::keyPressEvent( QKeyEvent *e ) +void PhoneticEntryPage::keyPressEvent( TQKeyEvent *e ) { if ((e->state() & (ControlButton | AltButton)) == 0) { - QString s = e->text(); + TQString s = e->text(); for (unsigned i = 0; i < s.length(); ++i) { emit charSelected(s[i].unicode()); } |