diff options
Diffstat (limited to 'libkdegames/kchatdialog.cpp')
-rw-r--r-- | libkdegames/kchatdialog.cpp | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/libkdegames/kchatdialog.cpp b/libkdegames/kchatdialog.cpp index bd196e7c..9cfbefff 100644 --- a/libkdegames/kchatdialog.cpp +++ b/libkdegames/kchatdialog.cpp @@ -24,9 +24,9 @@ #include <klocale.h> #include <kfontdialog.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qpushbutton.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqpushbutton.h> class KChatDialogPrivate { @@ -43,19 +43,19 @@ class KChatDialogPrivate mChat = 0; } - QFrame* mTextPage; + TQFrame* mTextPage; - QLabel* mNamePreview; - QLabel* mTextPreview; - QLabel* mSystemNamePreview; - QLabel* mSystemTextPreview; + TQLabel* mNamePreview; + TQLabel* mTextPreview; + TQLabel* mSystemNamePreview; + TQLabel* mSystemTextPreview; - QLineEdit* mMaxMessages; + TQLineEdit* mMaxMessages; KChatBase* mChat; }; -KChatDialog::KChatDialog(KChatBase* chat, QWidget* parent, bool modal) +KChatDialog::KChatDialog(KChatBase* chat, TQWidget* parent, bool modal) // : KDialogBase(Tabbed, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true) : KDialogBase(Plain, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true) { @@ -63,7 +63,7 @@ KChatDialog::KChatDialog(KChatBase* chat, QWidget* parent, bool modal) plugChatWidget(chat); } -KChatDialog::KChatDialog(QWidget* parent, bool modal) +KChatDialog::KChatDialog(TQWidget* parent, bool modal) // : KDialogBase(Tabbed, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true) : KDialogBase(Plain, i18n("Configure Chat"), Ok|Default|Apply|Cancel, Ok, parent, 0, modal, true) { @@ -80,100 +80,100 @@ void KChatDialog::init() d = new KChatDialogPrivate; // d->mTextPage = addPage(i18n("&Messages"));// not a good name - game Messages? d->mTextPage = plainPage(); - QGridLayout* layout = new QGridLayout(d->mTextPage, 7, 2, KDialog::marginHint(), KDialog::spacingHint()); + TQGridLayout* layout = new TQGridLayout(d->mTextPage, 7, 2, KDialog::marginHint(), KDialog::spacingHint()); // General fonts - QPushButton* nameFont = new QPushButton(i18n("Name Font..."), d->mTextPage); - connect(nameFont, SIGNAL(pressed()), this, SLOT(slotGetNameFont())); + TQPushButton* nameFont = new TQPushButton(i18n("Name Font..."), d->mTextPage); + connect(nameFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetNameFont())); layout->addWidget(nameFont, 0, 0); - QPushButton* textFont = new QPushButton(i18n("Text Font..."), d->mTextPage); - connect(textFont, SIGNAL(pressed()), this, SLOT(slotGetTextFont())); + TQPushButton* textFont = new TQPushButton(i18n("Text Font..."), d->mTextPage); + connect(textFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetTextFont())); layout->addWidget(textFont, 0, 1); - QFrame* messagePreview = new QFrame(d->mTextPage); - messagePreview->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); - QHBoxLayout* messageLayout = new QHBoxLayout(messagePreview); + TQFrame* messagePreview = new TQFrame(d->mTextPage); + messagePreview->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); + TQHBoxLayout* messageLayout = new TQHBoxLayout(messagePreview); layout->addMultiCellWidget(messagePreview, 1, 1, 0, 1); - d->mNamePreview = new QLabel(i18n("Player: "), messagePreview); + d->mNamePreview = new TQLabel(i18n("Player: "), messagePreview); messageLayout->addWidget(d->mNamePreview, 0); - d->mTextPreview = new QLabel(i18n("This is a player message"), messagePreview); + d->mTextPreview = new TQLabel(i18n("This is a player message"), messagePreview); messageLayout->addWidget(d->mTextPreview, 1); layout->addRowSpacing(2, 10); // System Message fonts - QLabel* systemMessages = new QLabel(i18n("System Messages - Messages directly sent from the game"), d->mTextPage); + TQLabel* systemMessages = new TQLabel(i18n("System Messages - Messages directly sent from the game"), d->mTextPage); layout->addMultiCellWidget(systemMessages, 3, 3, 0, 1); - QPushButton* systemNameFont = new QPushButton(i18n("Name Font..."), d->mTextPage); - connect(systemNameFont, SIGNAL(pressed()), this, SLOT(slotGetSystemNameFont())); + TQPushButton* systemNameFont = new TQPushButton(i18n("Name Font..."), d->mTextPage); + connect(systemNameFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetSystemNameFont())); layout->addWidget(systemNameFont, 4, 0); - QPushButton* systemTextFont = new QPushButton(i18n("Text Font..."), d->mTextPage); - connect(systemTextFont, SIGNAL(pressed()), this, SLOT(slotGetSystemTextFont())); + TQPushButton* systemTextFont = new TQPushButton(i18n("Text Font..."), d->mTextPage); + connect(systemTextFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetSystemTextFont())); layout->addWidget(systemTextFont, 4, 1); - QFrame* systemMessagePreview = new QFrame(d->mTextPage); - systemMessagePreview->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); - QHBoxLayout* systemMessageLayout = new QHBoxLayout(systemMessagePreview); + TQFrame* systemMessagePreview = new TQFrame(d->mTextPage); + systemMessagePreview->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); + TQHBoxLayout* systemMessageLayout = new TQHBoxLayout(systemMessagePreview); layout->addMultiCellWidget(systemMessagePreview, 5, 5, 0, 1); - d->mSystemNamePreview = new QLabel(i18n("--- Game: "), systemMessagePreview); + d->mSystemNamePreview = new TQLabel(i18n("--- Game: "), systemMessagePreview); systemMessageLayout->addWidget(d->mSystemNamePreview, 0); - d->mSystemTextPreview = new QLabel(i18n("This is a system message"), systemMessagePreview); + d->mSystemTextPreview = new TQLabel(i18n("This is a system message"), systemMessagePreview); systemMessageLayout->addWidget(d->mSystemTextPreview, 1); // message count - QLabel* maxMessages = new QLabel(i18n("Maximal number of messages (-1 = unlimited):"), d->mTextPage); + TQLabel* maxMessages = new TQLabel(i18n("Maximal number of messages (-1 = unlimited):"), d->mTextPage); layout->addWidget(maxMessages, 6, 0); - d->mMaxMessages = new QLineEdit(d->mTextPage); - d->mMaxMessages->setText(QString::number(-1)); + d->mMaxMessages = new TQLineEdit(d->mTextPage); + d->mMaxMessages->setText(TQString::number(-1)); layout->addWidget(d->mMaxMessages, 6, 1); } void KChatDialog::slotGetNameFont() { - QFont font = nameFont(); + TQFont font = nameFont(); KFontDialog::getFont(font); setNameFont(font); } void KChatDialog::slotGetTextFont() { - QFont font = textFont(); + TQFont font = textFont(); KFontDialog::getFont(font); setTextFont(font); } void KChatDialog::slotGetSystemNameFont() { - QFont font = systemNameFont(); + TQFont font = systemNameFont(); KFontDialog::getFont(font); setSystemNameFont(font); } void KChatDialog::slotGetSystemTextFont() { - QFont font = systemTextFont(); + TQFont font = systemTextFont(); KFontDialog::getFont(font); setSystemTextFont(font); } -QFont KChatDialog::nameFont() const +TQFont KChatDialog::nameFont() const { return d->mNamePreview->font(); } -QFont KChatDialog::textFont() const +TQFont KChatDialog::textFont() const { return d->mTextPreview->font(); } -QFont KChatDialog::systemNameFont() const +TQFont KChatDialog::systemNameFont() const { return d->mSystemNamePreview->font(); } -QFont KChatDialog::systemTextFont() const +TQFont KChatDialog::systemTextFont() const { return d->mSystemTextPreview->font(); } @@ -215,29 +215,29 @@ void KChatDialog::slotApply() configureChatWidget(d->mChat); } -void KChatDialog::setNameFont(QFont f) +void KChatDialog::setNameFont(TQFont f) { d->mNamePreview->setFont(f); } -void KChatDialog::setTextFont(QFont f) +void KChatDialog::setTextFont(TQFont f) { d->mTextPreview->setFont(f); } -void KChatDialog::setSystemNameFont(QFont f) +void KChatDialog::setSystemNameFont(TQFont f) { d->mSystemNamePreview->setFont(f); } -void KChatDialog::setSystemTextFont(QFont f) +void KChatDialog::setSystemTextFont(TQFont f) { d->mSystemTextPreview->setFont(f); } void KChatDialog::setMaxMessages(int max) { - d->mMaxMessages->setText(QString::number(max)); + d->mMaxMessages->setText(TQString::number(max)); } int KChatDialog::maxMessages() const |