summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp')
-rw-r--r--filesharing/advanced/kcm_sambaconf/printerdlgimpl.cpp42
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