From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../advanced/kcm_sambaconf/printerdlgimpl.cpp | 42 +++++++++++----------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp') diff --git a/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp b/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp index 531e4673..3858101d 100644 --- a/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp +++ b/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp @@ -30,17 +30,17 @@ /** * @author Jan Schäfer **/ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -61,7 +61,7 @@ #include "dictmanager.h" -PrinterDlgImpl::PrinterDlgImpl(QWidget* parent, SambaShare* share) +PrinterDlgImpl::PrinterDlgImpl(TQWidget* parent, SambaShare* share) : KcmPrinterDlg(parent,"sharedlgimpl") { if (!share) { @@ -81,9 +81,9 @@ void PrinterDlgImpl::initDialog() if (!_share) return; - QPtrList *printerList = KMManager::self()->printerListComplete(); + TQPtrList *printerList = KMManager::self()->printerListComplete(); - for (QPtrListIterator it(*printerList); it.current(); ++it) + for (TQPtrListIterator it(*printerList); it.current(); ++it) { if (!it.current()->isSpecial()){ queueCombo->insertItem(it.current()->printerName()); @@ -108,7 +108,7 @@ void PrinterDlgImpl::initDialog() _userTab = new UserTabImpl(this,_share); _tabs->insertTab(_userTab,i18n("&Users"),1); _userTab->load(); - connect(_userTab, SIGNAL(changed()), this, SLOT(changedSlot())); + connect(_userTab, TQT_SIGNAL(changed()), this, TQT_SLOT(changedSlot())); // Printing @@ -120,7 +120,7 @@ void PrinterDlgImpl::initDialog() _dictMngr->add("max print jobs",maxPrintJobsSpin); _dictMngr->add("max reported print jobs",maxReportedPrintJobsSpin); _dictMngr->add("printing",printingCombo, - new QStringList(QStringList() + new TQStringList(TQStringList() << "sysv" << "aix" << "hpux" << "bsd" << "qnx" << "plp" << "lprng" << "softq" << "cups" << "nt" << "os2")); @@ -156,7 +156,7 @@ void PrinterDlgImpl::initDialog() _dictMngr->add("root postexec",rootPostExecEdit); _dictMngr->load( _share ); - connect(_dictMngr, SIGNAL(changed()), this, SLOT(changedSlot())); + connect(_dictMngr, TQT_SIGNAL(changed()), this, TQT_SLOT(changedSlot())); } @@ -200,19 +200,19 @@ void PrinterDlgImpl::printersChkToggled(bool b) int w = 64 + dist; int h = 64 + 2*dist; - QPixmap pix(w,h); + TQPixmap pix(w,h); pix.fill(); // fill with white - QPixmap pix2 = DesktopIcon("printer1"); + TQPixmap pix2 = DesktopIcon("printer1"); // Draw the printericon three times - QPainter p(&pix); + TQPainter p(&pix); p.drawPixmap(dist+dist/2,0,pix2); p.drawPixmap(dist/2,dist,pix2); p.drawPixmap(dist+dist/2,2*dist,pix2); p.end(); - QBitmap mask(w,h); + TQBitmap mask(w,h); mask.fill(Qt::black); // everything is transparent -- cgit v1.2.3