diff options
Diffstat (limited to 'ksirc/dccNew.cpp')
-rw-r--r-- | ksirc/dccNew.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/ksirc/dccNew.cpp b/ksirc/dccNew.cpp index fe44fae6..0ace8c56 100644 --- a/ksirc/dccNew.cpp +++ b/ksirc/dccNew.cpp @@ -6,12 +6,12 @@ * * ***************************************************************************/ -#include <qlabel.h> -#include <qradiobutton.h> -#include <qcheckbox.h> -#include <qspinbox.h> -#include <qstringlist.h> -#include <qlistbox.h> +#include <tqlabel.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> +#include <tqspinbox.h> +#include <tqstringlist.h> +#include <tqlistbox.h> #include <kapplication.h> #include <kstandarddirs.h> @@ -27,29 +27,29 @@ #include "dccNew.h" #include "objFinder.h" -dccNew::dccNew( QWidget *parent, const char *name, int type, QString nick ) +dccNew::dccNew( TQWidget *parent, const char *name, int type, TQString nick ) : dccNewBase( parent, name) { - QColorGroup cg_mainw = kapp->palette().active(); - cg_mainw.setColor(QColorGroup::Base, ksopts->backgroundColor); - cg_mainw.setColor(QColorGroup::Text, ksopts->textColor); - cg_mainw.setColor(QColorGroup::Link, ksopts->linkColor); - cg_mainw.setColor(QColorGroup::Highlight, ksopts->selBackgroundColor); - cg_mainw.setColor(QColorGroup::HighlightedText, ksopts->selForegroundColor); - nickList->setPalette(QPalette(cg_mainw,cg_mainw, cg_mainw)); + TQColorGroup cg_mainw = kapp->palette().active(); + cg_mainw.setColor(TQColorGroup::Base, ksopts->backgroundColor); + cg_mainw.setColor(TQColorGroup::Text, ksopts->textColor); + cg_mainw.setColor(TQColorGroup::Link, ksopts->linkColor); + cg_mainw.setColor(TQColorGroup::Highlight, ksopts->selBackgroundColor); + cg_mainw.setColor(TQColorGroup::HighlightedText, ksopts->selForegroundColor); + nickList->setPalette(TQPalette(cg_mainw,cg_mainw, cg_mainw)); - QStringList allalist = objFinder::allObjects().grep(I18N_NOOP("aListBox::")); + TQStringList allalist = objFinder::allObjects().grep(I18N_NOOP("aListBox::")); - for ( QStringList::Iterator it = allalist.begin(); + for ( TQStringList::Iterator it = allalist.begin(); it != allalist.end(); ++it ) { - QString name = (*it).section("::", 1); + TQString name = (*it).section("::", 1); kdDebug(5008) << "Looking at: " << *it << "/" << name << endl; aListBox *a = static_cast<aListBox *>(objFinder::find(name.latin1(), "aListBox")); if(a){ - QListBoxItem *i; + TQListBoxItem *i; for(i = a->firstItem(); i != 0x0; i = i->next()){ nickListItem *it = new nickListItem(*a->item(a->index(i))); nickList->inSort(it); @@ -62,7 +62,7 @@ dccNew::dccNew( QWidget *parent, const char *name, int type, QString nick ) KCompletion *comp = cbNicks->completionObject(); - QListBoxItem *i; + TQListBoxItem *i; for(i = nickList->firstItem(); i != 0x0; i = i->next()){ comp->addItem(i->text()); cbNicks->insertItem(i->text()); @@ -94,14 +94,14 @@ dccNew::dccNew( QWidget *parent, const char *name, int type, QString nick ) fileSendClicked(); } - connect(nickList, SIGNAL(highlighted(const QString &)), - cbNicks, SLOT(setEditText(const QString &))); + connect(nickList, TQT_SIGNAL(highlighted(const TQString &)), + cbNicks, TQT_SLOT(setEditText(const TQString &))); - connect(pbCancel, SIGNAL(clicked()), - this, SLOT(reject())); + connect(pbCancel, TQT_SIGNAL(clicked()), + this, TQT_SLOT(reject())); - connect(pbSend, SIGNAL(clicked()), - this, SLOT(accept())); + connect(pbSend, TQT_SIGNAL(clicked()), + this, TQT_SLOT(accept())); } @@ -134,17 +134,17 @@ void dccNew::sendClicked() void dccNew::fileClicked() { - QString file = + TQString file = KFileDialog::getOpenFileName(); leFile->setText(file); } -QString dccNew::getFile() { +TQString dccNew::getFile() { return leFile->text() ; } -QString dccNew::getNick() { +TQString dccNew::getNick() { return cbNicks->currentText(); } @@ -155,7 +155,7 @@ int dccNew::getType() { void dccNew::reject() { - emit accepted(-1, QString::null, QString::null); + emit accepted(-1, TQString::null, TQString::null); } |