diff options
Diffstat (limited to 'konversation/src/identitydialog.cpp')
-rw-r--r-- | konversation/src/identitydialog.cpp | 210 |
1 files changed, 105 insertions, 105 deletions
diff --git a/konversation/src/identitydialog.cpp b/konversation/src/identitydialog.cpp index aa054b3..cfa592a 100644 --- a/konversation/src/identitydialog.cpp +++ b/konversation/src/identitydialog.cpp @@ -14,18 +14,18 @@ #include "awaymanager.h" #include "irccharsets.h" -#include <qframe.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qvaluelist.h> -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qtoolbutton.h> -#include <qtabwidget.h> -#include <qlistbox.h> -#include <qgroupbox.h> -#include <qpushbutton.h> -#include <qwhatsthis.h> +#include <tqframe.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqvaluelist.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqtoolbutton.h> +#include <tqtabwidget.h> +#include <tqlistbox.h> +#include <tqgroupbox.h> +#include <tqpushbutton.h> +#include <tqwhatsthis.h> #include <kcombobox.h> #include <klocale.h> @@ -39,13 +39,13 @@ namespace Konversation { - IdentityDialog::IdentityDialog(QWidget *parent, const char *name) + IdentityDialog::IdentityDialog(TQWidget *parent, const char *name) : KDialogBase(Plain, i18n("Identities"), Ok|Cancel, Ok, parent, name) { - QFrame* mainWidget = plainPage(); - QGridLayout* mainLayout = new QGridLayout(mainWidget, 1, 2, 0, spacingHint()); + TQFrame* mainWidget = plainPage(); + TQGridLayout* mainLayout = new TQGridLayout(mainWidget, 1, 2, 0, spacingHint()); - QLabel* identityLabel = new QLabel(i18n("&Identity:"), mainWidget); + TQLabel* identityLabel = new TQLabel(i18n("&Identity:"), mainWidget); m_identityCBox = new KComboBox(mainWidget, "identity_combo"); m_identityCBox->setEditable(false); identityLabel->setBuddy(m_identityCBox); @@ -58,62 +58,62 @@ namespace Konversation m_identityList.append(new Identity(*(*it))); } - QToolButton* newBtn = new QToolButton(mainWidget); + TQToolButton* newBtn = new TQToolButton(mainWidget); newBtn->setIconSet(SmallIconSet("add")); newBtn->setTextLabel(i18n("Add")); - connect(newBtn, SIGNAL(clicked()), this, SLOT(newIdentity())); + connect(newBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(newIdentity())); - QToolButton* copyBtn = new QToolButton(mainWidget); + TQToolButton* copyBtn = new TQToolButton(mainWidget); copyBtn->setIconSet(SmallIconSet("editcopy")); copyBtn->setTextLabel(i18n("Duplicate")); - connect(copyBtn, SIGNAL(clicked()), this, SLOT(copyIdentity())); + connect(copyBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(copyIdentity())); - m_editBtn = new QToolButton(mainWidget); + m_editBtn = new TQToolButton(mainWidget); m_editBtn->setIconSet(SmallIconSet("edit")); m_editBtn->setTextLabel(i18n("Rename")); - connect(m_editBtn, SIGNAL(clicked()), this, SLOT(renameIdentity())); + connect(m_editBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(renameIdentity())); - m_delBtn = new QToolButton(mainWidget); + m_delBtn = new TQToolButton(mainWidget); m_delBtn->setIconSet(SmallIconSet("editdelete")); m_delBtn->setTextLabel(i18n("Remove")); - connect(m_delBtn, SIGNAL(clicked()), this, SLOT(deleteIdentity())); + connect(m_delBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteIdentity())); - QTabWidget* tabWidget = new QTabWidget(mainWidget); - QWidget* generalWidget = new QWidget(tabWidget); + TQTabWidget* tabWidget = new TQTabWidget(mainWidget); + TQWidget* generalWidget = new TQWidget(tabWidget); tabWidget->addTab(generalWidget, i18n("General")); - QGridLayout* generalLayout = new QGridLayout(generalWidget, 1, 2, marginHint(), spacingHint()); + TQGridLayout* generalLayout = new TQGridLayout(generalWidget, 1, 2, marginHint(), spacingHint()); - QLabel* realNameLabel = new QLabel(i18n("&Real name:"), generalWidget); + TQLabel* realNameLabel = new TQLabel(i18n("&Real name:"), generalWidget); m_realNameEdit = new KLineEdit(generalWidget); - QWhatsThis::add(m_realNameEdit, i18n("Enter your real name here. IRC is not intended to keep you hidden from your friends or enemies. Keep this in mind if you are tempted to behave maliciously. A fake \"real name\" can be a good way to mask your gender from all the nerds out there, but the PC you use can always be traced so you will never be truly anonymous.")); + TQWhatsThis::add(m_realNameEdit, i18n("Enter your real name here. IRC is not intended to keep you hidden from your friends or enemies. Keep this in mind if you are tempted to behave maliciously. A fake \"real name\" can be a good way to mask your gender from all the nerds out there, but the PC you use can always be traced so you will never be truly anonymous.")); realNameLabel->setBuddy(m_realNameEdit); - QGroupBox* nicknameGBox = new QGroupBox(0, Qt::Horizontal, i18n("Nickname"), generalWidget); + TQGroupBox* nicknameGBox = new TQGroupBox(0, Qt::Horizontal, i18n("Nickname"), generalWidget); nicknameGBox->setMargin(marginHint()); - QGridLayout* nicknameLayout = new QGridLayout(nicknameGBox->layout(), 1, 2, spacingHint()); + TQGridLayout* nicknameLayout = new TQGridLayout(nicknameGBox->layout(), 1, 2, spacingHint()); - m_nicknameLBox = new QListBox(nicknameGBox); - QWhatsThis::add(m_nicknameLBox, i18n("This is your list of nicknames. A nickname is the name that other users will know you by. You may use any name you desire. The first character must be a letter.\n\nSince nicknames must be unique across an entire IRC network, your desired name may be rejected by the server because someone else is already using that nickname. Enter alternate nicknames for yourself. If your first choice is rejected by the server, Konversation will try the alternate nicknames.")); - m_addNicknameBtn = new QPushButton(i18n("Add..."), nicknameGBox); - m_changeNicknameBtn = new QPushButton(i18n("Edit..."), nicknameGBox); + m_nicknameLBox = new TQListBox(nicknameGBox); + TQWhatsThis::add(m_nicknameLBox, i18n("This is your list of nicknames. A nickname is the name that other users will know you by. You may use any name you desire. The first character must be a letter.\n\nSince nicknames must be unique across an entire IRC network, your desired name may be rejected by the server because someone else is already using that nickname. Enter alternate nicknames for yourself. If your first choice is rejected by the server, Konversation will try the alternate nicknames.")); + m_addNicknameBtn = new TQPushButton(i18n("Add..."), nicknameGBox); + m_changeNicknameBtn = new TQPushButton(i18n("Edit..."), nicknameGBox); m_changeNicknameBtn->setEnabled(false); - m_removeNicknameBtn = new QPushButton(i18n("Delete"), nicknameGBox); + m_removeNicknameBtn = new TQPushButton(i18n("Delete"), nicknameGBox); m_removeNicknameBtn->setEnabled(false); - m_upNicknameBtn = new QToolButton(nicknameGBox); + m_upNicknameBtn = new TQToolButton(nicknameGBox); m_upNicknameBtn->setIconSet(SmallIconSet("up")); m_upNicknameBtn->setAutoRepeat(true); m_upNicknameBtn->setEnabled(false); - m_downNicknameBtn = new QToolButton(nicknameGBox); + m_downNicknameBtn = new TQToolButton(nicknameGBox); m_downNicknameBtn->setIconSet(SmallIconSet("down")); m_downNicknameBtn->setAutoRepeat(true); m_downNicknameBtn->setEnabled(false); - connect(m_addNicknameBtn, SIGNAL(clicked()), this, SLOT(addNickname())); - connect(m_changeNicknameBtn, SIGNAL(clicked()), this, SLOT(editNickname())); - connect(m_removeNicknameBtn, SIGNAL(clicked()), this, SLOT(deleteNickname())); - connect(m_nicknameLBox, SIGNAL(selectionChanged()), this, SLOT(updateButtons())); - connect(m_upNicknameBtn, SIGNAL(clicked()), this, SLOT(moveNicknameUp())); - connect(m_downNicknameBtn, SIGNAL(clicked()), this, SLOT(moveNicknameDown())); + connect(m_addNicknameBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(addNickname())); + connect(m_changeNicknameBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(editNickname())); + connect(m_removeNicknameBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteNickname())); + connect(m_nicknameLBox, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(updateButtons())); + connect(m_upNicknameBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(moveNicknameUp())); + connect(m_downNicknameBtn, TQT_SIGNAL(clicked()), this, TQT_SLOT(moveNicknameDown())); nicknameLayout->setColStretch(0, 10); nicknameLayout->setRowStretch(4, 10); @@ -124,18 +124,18 @@ namespace Konversation nicknameLayout->addWidget(m_upNicknameBtn, 3, 2); nicknameLayout->addWidget(m_downNicknameBtn, 3, 3); - QGroupBox* autoIdentifyGBox = new QGroupBox(0, Qt::Horizontal, i18n("Auto Identify"), generalWidget); + TQGroupBox* autoIdentifyGBox = new TQGroupBox(0, Qt::Horizontal, i18n("Auto Identify"), generalWidget); autoIdentifyGBox->setMargin(marginHint()); - QGridLayout* autoIdentifyLayout = new QGridLayout(autoIdentifyGBox->layout(), 1, 2, spacingHint()); + TQGridLayout* autoIdentifyLayout = new TQGridLayout(autoIdentifyGBox->layout(), 1, 2, spacingHint()); - QLabel* botLabel=new QLabel(i18n("Ser&vice:"), autoIdentifyGBox); - QWhatsThis::add(botLabel,i18n("Service name can be <b><i>nickserv</i></b> or a network dependant name like <b><i>nickserv@services.dal.net</i></b>")); + TQLabel* botLabel=new TQLabel(i18n("Ser&vice:"), autoIdentifyGBox); + TQWhatsThis::add(botLabel,i18n("Service name can be <b><i>nickserv</i></b> or a network dependant name like <b><i>nickserv@services.dal.net</i></b>")); m_botEdit = new KLineEdit(autoIdentifyGBox); botLabel->setBuddy(m_botEdit); - QLabel* passwordLabel = new QLabel(i18n("Pa&ssword:"), autoIdentifyGBox); + TQLabel* passwordLabel = new TQLabel(i18n("Pa&ssword:"), autoIdentifyGBox); m_passwordEdit = new KLineEdit(autoIdentifyGBox); - m_passwordEdit->setEchoMode(QLineEdit::Password); + m_passwordEdit->setEchoMode(TQLineEdit::Password); passwordLabel->setBuddy(m_passwordEdit); autoIdentifyLayout->addWidget(botLabel, 0, 0); @@ -151,69 +151,69 @@ namespace Konversation row++; generalLayout->addMultiCellWidget(autoIdentifyGBox, row, row, 0, 1); - QWidget* awayWidget = new QWidget(tabWidget); + TQWidget* awayWidget = new TQWidget(tabWidget); tabWidget->addTab(awayWidget, i18n("Tab name", "Away")); - QGridLayout* awayLayout = new QGridLayout(awayWidget, 1, 2, marginHint(), spacingHint()); + TQGridLayout* awayLayout = new TQGridLayout(awayWidget, 1, 2, marginHint(), spacingHint()); - m_insertRememberLineOnAwayChBox = new QCheckBox(i18n("Mark the last position in chat windows when going away"), awayWidget); - QWhatsThis::add(m_insertRememberLineOnAwayChBox, i18n("If you check this box, whenever you perform an <b>/away</b> command, a horizontal line will appear in the channel, marking the point where you went away. Other IRC users do not see this horizontal line.")); + m_insertRememberLineOnAwayChBox = new TQCheckBox(i18n("Mark the last position in chat windows when going away"), awayWidget); + TQWhatsThis::add(m_insertRememberLineOnAwayChBox, i18n("If you check this box, whenever you perform an <b>/away</b> command, a horizontal line will appear in the channel, marking the point where you went away. Other IRC users do not see this horizontal line.")); - QLabel* awayNickLabel = new QLabel(i18n("Away nickname:"), awayWidget); + TQLabel* awayNickLabel = new TQLabel(i18n("Away nickname:"), awayWidget); m_awayNickEdit = new KLineEdit(awayWidget); - QWhatsThis::add(m_awayNickEdit, i18n("Enter a nickname that indicates you are away. Whenever you perform an <b>/away msg</b> command in any channel joined with this Identity, Konversation will automatically change your nickname to the Away nickname. Other users will be able to tell you are away from your computer. Whenever you perform an <b>/away</b> command in any channel in which you are away, Konversation will automatically change your nickname back to the original. If you do not wish to automatically change your nickname when going away, leave blank.")); + TQWhatsThis::add(m_awayNickEdit, i18n("Enter a nickname that indicates you are away. Whenever you perform an <b>/away msg</b> command in any channel joined with this Identity, Konversation will automatically change your nickname to the Away nickname. Other users will be able to tell you are away from your computer. Whenever you perform an <b>/away</b> command in any channel in which you are away, Konversation will automatically change your nickname back to the original. If you do not wish to automatically change your nickname when going away, leave blank.")); awayNickLabel->setBuddy(m_awayNickEdit); - m_automaticAwayGBox = new QGroupBox(i18n("Automatic Away"), awayWidget); + m_automaticAwayGBox = new TQGroupBox(i18n("Automatic Away"), awayWidget); m_automaticAwayGBox->setCheckable(true); m_automaticAwayGBox->setColumnLayout(0, Qt::Horizontal); m_automaticAwayGBox->setMargin(marginHint()); - QGridLayout* automaticAwayLayout = new QGridLayout(m_automaticAwayGBox->layout(), 1, 2, spacingHint()); + TQGridLayout* automaticAwayLayout = new TQGridLayout(m_automaticAwayGBox->layout(), 1, 2, spacingHint()); - QWhatsThis::add(m_automaticAwayGBox, i18n("If you check this box, Konversation will automatically set all connections using this Identity away when the screensaver starts or after a period of user inactivity configured below.")); + TQWhatsThis::add(m_automaticAwayGBox, i18n("If you check this box, Konversation will automatically set all connections using this Identity away when the screensaver starts or after a period of user inactivity configured below.")); - QLabel* autoAwayLabel1 = new QLabel(i18n("Set away after"), m_automaticAwayGBox); - m_awayInactivitySpin = new QSpinBox(1, 999, 1, m_automaticAwayGBox); + TQLabel* autoAwayLabel1 = new TQLabel(i18n("Set away after"), m_automaticAwayGBox); + m_awayInactivitySpin = new TQSpinBox(1, 999, 1, m_automaticAwayGBox); m_awayInactivitySpin->setSuffix(i18n(" minutes")); - QLabel* autoAwayLabel2 = new QLabel(i18n("of user inactivity"), m_automaticAwayGBox); + TQLabel* autoAwayLabel2 = new TQLabel(i18n("of user inactivity"), m_automaticAwayGBox); autoAwayLabel1->setBuddy(m_awayInactivitySpin); autoAwayLabel2->setBuddy(m_awayInactivitySpin); - m_automaticUnawayChBox = new QCheckBox(i18n("Automatically return on activity"), m_automaticAwayGBox); - QWhatsThis::add(m_automaticUnawayChBox, i18n("If you check this box, Konversation will automatically cancel away for all connections using this Identity when the screensaver stops or new user activity is detected.")); + m_automaticUnawayChBox = new TQCheckBox(i18n("Automatically return on activity"), m_automaticAwayGBox); + TQWhatsThis::add(m_automaticUnawayChBox, i18n("If you check this box, Konversation will automatically cancel away for all connections using this Identity when the screensaver stops or new user activity is detected.")); - connect(m_automaticAwayGBox, SIGNAL(toggled(bool)), autoAwayLabel1, SLOT(setEnabled(bool))); - connect(m_automaticAwayGBox, SIGNAL(toggled(bool)), autoAwayLabel2, SLOT(setEnabled(bool))); - connect(m_automaticAwayGBox, SIGNAL(toggled(bool)), m_awayInactivitySpin, SLOT(setEnabled(bool))); - connect(m_automaticAwayGBox, SIGNAL(toggled(bool)), m_automaticUnawayChBox, SLOT(setEnabled(bool))); + connect(m_automaticAwayGBox, TQT_SIGNAL(toggled(bool)), autoAwayLabel1, TQT_SLOT(setEnabled(bool))); + connect(m_automaticAwayGBox, TQT_SIGNAL(toggled(bool)), autoAwayLabel2, TQT_SLOT(setEnabled(bool))); + connect(m_automaticAwayGBox, TQT_SIGNAL(toggled(bool)), m_awayInactivitySpin, TQT_SLOT(setEnabled(bool))); + connect(m_automaticAwayGBox, TQT_SIGNAL(toggled(bool)), m_automaticUnawayChBox, TQT_SLOT(setEnabled(bool))); row = 0; automaticAwayLayout->addWidget(autoAwayLabel1, row, 0); automaticAwayLayout->addWidget(m_awayInactivitySpin, row, 1); automaticAwayLayout->addWidget(autoAwayLabel2, row, 2); - QSpacerItem* spacer = new QSpacerItem(0, 0, QSizePolicy::MinimumExpanding, QSizePolicy::Preferred); + TQSpacerItem* spacer = new TQSpacerItem(0, 0, TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred); automaticAwayLayout->addItem(spacer, row, 3); row++; automaticAwayLayout->addMultiCellWidget(m_automaticUnawayChBox, row, row, 0, 3); - m_awayMessageGBox = new QGroupBox(i18n("Away Messages"), awayWidget); + m_awayMessageGBox = new TQGroupBox(i18n("Away Messages"), awayWidget); m_awayMessageGBox->setCheckable(true); m_awayMessageGBox->setColumnLayout(0, Qt::Horizontal); m_awayMessageGBox->setMargin(marginHint()); - QGridLayout* messagesLayout = new QGridLayout(m_awayMessageGBox->layout(), 1, 2, spacingHint()); + TQGridLayout* messagesLayout = new TQGridLayout(m_awayMessageGBox->layout(), 1, 2, spacingHint()); - QWhatsThis::add(m_awayMessageGBox, i18n("If you check this box, Konversation will automatically send the Away message to all channels joined with this Identity. <b>%s</b> is replaced with <b>msg</b>. Whenever you perform an <b>/away</b> command, the Return message will be displayed in all channels joined with this Identity.")); + TQWhatsThis::add(m_awayMessageGBox, i18n("If you check this box, Konversation will automatically send the Away message to all channels joined with this Identity. <b>%s</b> is replaced with <b>msg</b>. Whenever you perform an <b>/away</b> command, the Return message will be displayed in all channels joined with this Identity.")); - QLabel* awayLabel = new QLabel(i18n("Away &message:"), m_awayMessageGBox); + TQLabel* awayLabel = new TQLabel(i18n("Away &message:"), m_awayMessageGBox); m_awayEdit = new KLineEdit(m_awayMessageGBox); awayLabel->setBuddy(m_awayEdit); - QLabel* unAwayLabel = new QLabel(i18n("Re&turn message:"), m_awayMessageGBox); + TQLabel* unAwayLabel = new TQLabel(i18n("Re&turn message:"), m_awayMessageGBox); m_unAwayEdit = new KLineEdit(m_awayMessageGBox); unAwayLabel->setBuddy(m_unAwayEdit); - connect(m_awayMessageGBox, SIGNAL(toggled(bool)), awayLabel, SLOT(setEnabled(bool))); - connect(m_awayMessageGBox, SIGNAL(toggled(bool)), m_awayEdit, SLOT(setEnabled(bool))); - connect(m_awayMessageGBox, SIGNAL(toggled(bool)), unAwayLabel, SLOT(setEnabled(bool))); - connect(m_awayMessageGBox, SIGNAL(toggled(bool)), m_unAwayEdit, SLOT(setEnabled(bool))); + connect(m_awayMessageGBox, TQT_SIGNAL(toggled(bool)), awayLabel, TQT_SLOT(setEnabled(bool))); + connect(m_awayMessageGBox, TQT_SIGNAL(toggled(bool)), m_awayEdit, TQT_SLOT(setEnabled(bool))); + connect(m_awayMessageGBox, TQT_SIGNAL(toggled(bool)), unAwayLabel, TQT_SLOT(setEnabled(bool))); + connect(m_awayMessageGBox, TQT_SIGNAL(toggled(bool)), m_unAwayEdit, TQT_SLOT(setEnabled(bool))); row = 0; messagesLayout->addWidget(awayLabel, row, 0); @@ -234,41 +234,41 @@ namespace Konversation row++; awayLayout->setRowStretch(row, 10); - QWidget* advancedWidget = new QWidget(tabWidget); + TQWidget* advancedWidget = new TQWidget(tabWidget); tabWidget->addTab(advancedWidget, i18n("Advanced")); - QGridLayout* advancedLayout = new QGridLayout(advancedWidget, 1, 2, marginHint(), spacingHint()); + TQGridLayout* advancedLayout = new TQGridLayout(advancedWidget, 1, 2, marginHint(), spacingHint()); - QLabel* commandLabel = new QLabel(i18n("&Pre-shell command:"), advancedWidget); + TQLabel* commandLabel = new TQLabel(i18n("&Pre-shell command:"), advancedWidget); m_sCommandEdit = new KLineEdit(advancedWidget); - QWhatsThis::add(m_sCommandEdit,i18n("Here you can enter a command to be executed before connection to server starts<br>If you have multiple servers in this identity this command will be executed for each server")); + TQWhatsThis::add(m_sCommandEdit,i18n("Here you can enter a command to be executed before connection to server starts<br>If you have multiple servers in this identity this command will be executed for each server")); commandLabel->setBuddy(m_sCommandEdit); - QLabel* loginLabel = new QLabel(i18n("I&dent:"), advancedWidget); + TQLabel* loginLabel = new TQLabel(i18n("I&dent:"), advancedWidget); m_loginEdit = new KLineEdit(advancedWidget); - QWhatsThis::add(m_loginEdit, i18n("When you connect, many servers query your computer for an IDENT response. If you computer is not running an IDENT server, this response is sent by Konversation. No spaces are allowed.")); + TQWhatsThis::add(m_loginEdit, i18n("When you connect, many servers query your computer for an IDENT response. If you computer is not running an IDENT server, this response is sent by Konversation. No spaces are allowed.")); loginLabel->setBuddy(m_loginEdit); // encoding combo box - QLabel* codecLabel = new QLabel(i18n("&Encoding:"), advancedWidget); + TQLabel* codecLabel = new TQLabel(i18n("&Encoding:"), advancedWidget); m_codecCBox = new KComboBox(advancedWidget,"codec_combo_box"); - QWhatsThis::add(m_codecCBox, i18n("This setting affects how characters you type are encoded for sending to the server. It also affects how messages are displayed. When you first open Konversation, it automatically retrieves this setting from the operating system. If you seem to be having trouble seeing other user's messages correctly, try changing this setting.")); + TQWhatsThis::add(m_codecCBox, i18n("This setting affects how characters you type are encoded for sending to the server. It also affects how messages are displayed. When you first open Konversation, it automatically retrieves this setting from the operating system. If you seem to be having trouble seeing other user's messages correctly, try changing this setting.")); codecLabel->setBuddy(m_codecCBox); // add encodings to combo box m_codecCBox->insertStringList(Konversation::IRCCharsets::self()->availableEncodingDescriptiveNames()); - QLabel* quitLabel = new QLabel(i18n("&Quit reason:"), advancedWidget); + TQLabel* quitLabel = new TQLabel(i18n("&Quit reason:"), advancedWidget); m_quitEdit = new KLineEdit(advancedWidget); - QWhatsThis::add(m_quitEdit, i18n("Whenever you leave a server, this message is shown to others.")); + TQWhatsThis::add(m_quitEdit, i18n("Whenever you leave a server, this message is shown to others.")); quitLabel->setBuddy(m_quitEdit); - QLabel* partLabel = new QLabel(i18n("&Part reason:"), advancedWidget); + TQLabel* partLabel = new TQLabel(i18n("&Part reason:"), advancedWidget); m_partEdit = new KLineEdit(advancedWidget); - QWhatsThis::add(m_partEdit, i18n("Whenever you leave a channel, this message is sent to the channel.")); + TQWhatsThis::add(m_partEdit, i18n("Whenever you leave a channel, this message is sent to the channel.")); partLabel->setBuddy(m_partEdit); - QLabel* kickLabel = new QLabel(i18n("&Kick reason:"), advancedWidget); + TQLabel* kickLabel = new TQLabel(i18n("&Kick reason:"), advancedWidget); m_kickEdit = new KLineEdit(advancedWidget); - QWhatsThis::add(m_kickEdit, i18n("Whenever you are kicked from a channel (usually by an IRC operator), this message is sent to the channel.")); + TQWhatsThis::add(m_kickEdit, i18n("Whenever you are kicked from a channel (usually by an IRC operator), this message is sent to the channel.")); kickLabel->setBuddy(m_kickEdit); row = 0; @@ -307,13 +307,13 @@ namespace Konversation updateIdentity(0); // Set up signals / slots for identity page - connect(m_identityCBox, SIGNAL(activated(int)), this, SLOT(updateIdentity(int))); + connect(m_identityCBox, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateIdentity(int))); setButtonOK(KGuiItem(i18n("&OK"), "button_ok", i18n("Change identity information"))); setButtonCancel(KGuiItem(i18n("&Cancel"), "button_cancel", i18n("Discards all changes made"))); AwayManager* awayManager = static_cast<KonversationApplication*>(kapp)->getAwayManager(); - connect(this, SIGNAL(identitiesChanged()), awayManager, SLOT(identitiesChanged())); + connect(this, TQT_SIGNAL(identitiesChanged()), awayManager, TQT_SLOT(identitiesChanged())); } IdentityDialog::~IdentityDialog() @@ -377,7 +377,7 @@ namespace Konversation void IdentityDialog::addNickname() { bool ok = false; - QString txt = KInputDialog::getText(i18n("Add Nickname"), i18n("Nickname:"), QString(), &ok, this); + TQString txt = KInputDialog::getText(i18n("Add Nickname"), i18n("Nickname:"), TQString(), &ok, this); if(ok && !txt.isEmpty()) { @@ -389,7 +389,7 @@ namespace Konversation void IdentityDialog::editNickname() { bool ok = false; - QString txt = KInputDialog::getText(i18n("Edit Nickname"), i18n("Nickname:"), m_nicknameLBox->currentText(), &ok, this); + TQString txt = KInputDialog::getText(i18n("Edit Nickname"), i18n("Nickname:"), m_nicknameLBox->currentText(), &ok, this); if(ok && !txt.isEmpty()) { @@ -422,7 +422,7 @@ namespace Konversation if(current > 0) { - QString txt = m_nicknameLBox->text(current); + TQString txt = m_nicknameLBox->text(current); m_nicknameLBox->removeItem(current); m_nicknameLBox->insertItem(txt, current - 1); m_nicknameLBox->setCurrentItem(current - 1); @@ -437,7 +437,7 @@ namespace Konversation if(current < (m_nicknameLBox->count() - 1)) { - QString txt = m_nicknameLBox->text(current); + TQString txt = m_nicknameLBox->text(current); m_nicknameLBox->removeItem(current); m_nicknameLBox->insertItem(txt, current + 1); m_nicknameLBox->setCurrentItem(current + 1); @@ -454,7 +454,7 @@ namespace Konversation } m_currentIdentity->setRealName(m_realNameEdit->text()); - QStringList nicks; + TQStringList nicks; for(unsigned int i = 0; i < m_nicknameLBox->count(); ++i) { @@ -508,7 +508,7 @@ namespace Konversation void IdentityDialog::newIdentity() { bool ok = false; - QString txt = KInputDialog::getText(i18n("Add Identity"), i18n("Identity name:"), QString(), &ok, this); + TQString txt = KInputDialog::getText(i18n("Add Identity"), i18n("Identity name:"), TQString(), &ok, this); if(ok && !txt.isEmpty()) { @@ -532,8 +532,8 @@ namespace Konversation void IdentityDialog::renameIdentity() { bool ok = false; - QString currentTxt = m_identityCBox->currentText(); - QString txt = KInputDialog::getText(i18n("Rename Identity"), i18n("Identity name:"), currentTxt, &ok, this); + TQString currentTxt = m_identityCBox->currentText(); + TQString txt = KInputDialog::getText(i18n("Rename Identity"), i18n("Identity name:"), currentTxt, &ok, this); if(ok && !txt.isEmpty()) { @@ -570,7 +570,7 @@ namespace Konversation ++it; } - QString warningTxt; + TQString warningTxt; if(found) { @@ -596,8 +596,8 @@ namespace Konversation void IdentityDialog::copyIdentity() { bool ok = false; - QString currentTxt = m_identityCBox->currentText(); - QString txt = KInputDialog::getText(i18n("Duplicate Identity"), i18n("Identity name:"), currentTxt, &ok, this); + TQString currentTxt = m_identityCBox->currentText(); + TQString txt = KInputDialog::getText(i18n("Duplicate Identity"), i18n("Identity name:"), currentTxt, &ok, this); if(ok && !txt.isEmpty()) { |