diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kofficeui/KoCharSelectDia.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kofficeui/KoCharSelectDia.cpp')
-rw-r--r-- | lib/kofficeui/KoCharSelectDia.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/kofficeui/KoCharSelectDia.cpp b/lib/kofficeui/KoCharSelectDia.cpp index 5a0105c6..a7f09b3f 100644 --- a/lib/kofficeui/KoCharSelectDia.cpp +++ b/lib/kofficeui/KoCharSelectDia.cpp @@ -20,7 +20,7 @@ #include "KoCharSelectDia.h" #include "KoCharSelectDia.moc" -#include <qlayout.h> +#include <tqlayout.h> #include <klocale.h> #include <kcharselect.h> @@ -29,8 +29,8 @@ /* class KoCharSelectDia */ /******************************************************************/ -KoCharSelectDia::KoCharSelectDia( QWidget *parent, const char *name, const QChar &_chr, const QString &_font, bool _enableFont , bool _modal) - : KDialogBase( Plain, i18n("Select Character"), Ok | Cancel, Ok , parent, name, _modal ) +KoCharSelectDia::KoCharSelectDia( TQWidget *tqparent, const char *name, const TQChar &_chr, const TQString &_font, bool _enableFont , bool _modal) + : KDialogBase( Plain, i18n("Select Character"), Ok | Cancel, Ok , tqparent, name, _modal ) { initDialog(_chr,_font,_enableFont); @@ -40,8 +40,8 @@ KoCharSelectDia::KoCharSelectDia( QWidget *parent, const char *name, const QChar setButtonOK( okItem ); } -KoCharSelectDia::KoCharSelectDia( QWidget *parent, const char *name, const QString &_font, const QChar &_chr, bool _modal ) - : KDialogBase( Plain, i18n("Select Character"), User1 | Close, User1 , parent, name, _modal ) +KoCharSelectDia::KoCharSelectDia( TQWidget *tqparent, const char *name, const TQString &_font, const TQChar &_chr, bool _modal ) + : KDialogBase( Plain, i18n("Select Character"), User1 | Close, User1 , tqparent, name, _modal ) { initDialog(_chr,_font,true); @@ -50,15 +50,15 @@ KoCharSelectDia::KoCharSelectDia( QWidget *parent, const char *name, const QStri } -void KoCharSelectDia::initDialog(const QChar &_chr, const QString &_font, bool /*_enableFont*/) +void KoCharSelectDia::initDialog(const TQChar &_chr, const TQString &_font, bool /*_enableFont*/) { - QWidget *page = plainPage(); + TQWidget *page = plainPage(); - grid = new QGridLayout( page, 1, 1, 0, KDialog::spacingHint() ); + grid = new TQGridLayout( page, 1, 1, 0, KDialog::spacingHint() ); charSelect = new KCharSelect( page, "", _font, _chr ); - connect(charSelect, SIGNAL(doubleClicked()),this, SLOT(slotDoubleClicked())); - charSelect->resize( charSelect->sizeHint() ); + connect(charSelect, TQT_SIGNAL(doubleClicked()),this, TQT_SLOT(slotDoubleClicked())); + charSelect->resize( charSelect->tqsizeHint() ); charSelect->enableFontCombo( true ); grid->addWidget( charSelect, 0, 0 ); @@ -77,11 +77,11 @@ void KoCharSelectDia::closeDialog() KDialogBase::close(); } -bool KoCharSelectDia::selectChar( QString &_font, QChar &_chr, bool _enableFont, QWidget* parent, const char* name ) +bool KoCharSelectDia::selectChar( TQString &_font, TQChar &_chr, bool _enableFont, TQWidget* tqparent, const char* name ) { bool res = false; - KoCharSelectDia *dlg = new KoCharSelectDia( parent, name, _chr, _font, _enableFont ); + KoCharSelectDia *dlg = new KoCharSelectDia( tqparent, name, _chr, _font, _enableFont ); dlg->setFocus(); if ( dlg->exec() == Accepted ) { @@ -95,12 +95,12 @@ bool KoCharSelectDia::selectChar( QString &_font, QChar &_chr, bool _enableFont, return res; } -QChar KoCharSelectDia::chr() const +TQChar KoCharSelectDia::chr() const { return charSelect->chr(); } -QString KoCharSelectDia::font() const +TQString KoCharSelectDia::font() const { return charSelect->font(); } |