diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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 'filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp')
-rw-r--r-- | filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
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 <qcheckbox.h> -#include <qlineedit.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qlistbox.h> -#include <qpainter.h> -#include <qgroupbox.h> -#include <qpixmap.h> -#include <qbitmap.h> -#include <qlayout.h> -#include <qtabwidget.h> +#include <tqcheckbox.h> +#include <tqlineedit.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqlistbox.h> +#include <tqpainter.h> +#include <tqgroupbox.h> +#include <tqpixmap.h> +#include <tqbitmap.h> +#include <tqlayout.h> +#include <tqtabwidget.h> #include <klineedit.h> #include <kurlrequester.h> @@ -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<KMPrinter> *printerList = KMManager::self()->printerListComplete(); + TQPtrList<KMPrinter> *printerList = KMManager::self()->printerListComplete(); - for (QPtrListIterator<KMPrinter> it(*printerList); it.current(); ++it) + for (TQPtrListIterator<KMPrinter> 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 |