summaryrefslogtreecommitdiffstats
path: root/ksirc/dccNew.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/dccNew.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/dccNew.cpp')
-rw-r--r--ksirc/dccNew.cpp58
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);
}