summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp')
-rw-r--r--kvoctrain/kvoctrain/entry-dialogs/PhoneticEntryPage.cpp34
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());
}