summaryrefslogtreecommitdiffstats
path: root/kdeprint/management/kmprinterview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/management/kmprinterview.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/management/kmprinterview.cpp')
-rw-r--r--kdeprint/management/kmprinterview.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kdeprint/management/kmprinterview.cpp b/kdeprint/management/kmprinterview.cpp
index 89549ed94..794683f54 100644
--- a/kdeprint/management/kmprinterview.cpp
+++ b/kdeprint/management/kmprinterview.cpp
@@ -24,37 +24,37 @@
#include "kmtimer.h"
#include "kmmanager.h"
-#include <qlayout.h>
-#include <qpopupmenu.h>
+#include <tqlayout.h>
+#include <tqpopupmenu.h>
#include <kaction.h>
#include <klocale.h>
-KMPrinterView::KMPrinterView(QWidget *parent, const char *name)
-: QWidgetStack(parent,name), m_type(KMPrinterView::Icons)
+KMPrinterView::KMPrinterView(TQWidget *parent, const char *name)
+: TQWidgetStack(parent,name), m_type(KMPrinterView::Icons)
{
m_iconview = new KMIconView(this);
addWidget(m_iconview,0);
m_listview = new KMListView(this);
addWidget(m_listview,1);
- m_current = QString::null;
+ m_current = TQString::null;
m_listset = false;
- connect(m_iconview,SIGNAL(rightButtonClicked(const QString&,const QPoint&)),SIGNAL(rightButtonClicked(const QString&,const QPoint&)));
- connect(m_listview,SIGNAL(rightButtonClicked(const QString&,const QPoint&)),SIGNAL(rightButtonClicked(const QString&,const QPoint&)));
- connect(m_iconview,SIGNAL(printerSelected(const QString&)),SIGNAL(printerSelected(const QString&)));
- connect(m_listview,SIGNAL(printerSelected(const QString&)),SIGNAL(printerSelected(const QString&)));
- connect(m_iconview,SIGNAL(printerSelected(const QString&)),SLOT(slotPrinterSelected(const QString&)));
- connect(m_listview,SIGNAL(printerSelected(const QString&)),SLOT(slotPrinterSelected(const QString&)));
+ connect(m_iconview,TQT_SIGNAL(rightButtonClicked(const TQString&,const TQPoint&)),TQT_SIGNAL(rightButtonClicked(const TQString&,const TQPoint&)));
+ connect(m_listview,TQT_SIGNAL(rightButtonClicked(const TQString&,const TQPoint&)),TQT_SIGNAL(rightButtonClicked(const TQString&,const TQPoint&)));
+ connect(m_iconview,TQT_SIGNAL(printerSelected(const TQString&)),TQT_SIGNAL(printerSelected(const TQString&)));
+ connect(m_listview,TQT_SIGNAL(printerSelected(const TQString&)),TQT_SIGNAL(printerSelected(const TQString&)));
+ connect(m_iconview,TQT_SIGNAL(printerSelected(const TQString&)),TQT_SLOT(slotPrinterSelected(const TQString&)));
+ connect(m_listview,TQT_SIGNAL(printerSelected(const TQString&)),TQT_SLOT(slotPrinterSelected(const TQString&)));
setViewType(m_type);
- setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
+ setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
}
KMPrinterView::~KMPrinterView()
{
}
-void KMPrinterView::setPrinterList(QPtrList<KMPrinter> *list)
+void KMPrinterView::setPrinterList(TQPtrList<KMPrinter> *list)
{
if (m_type != KMPrinterView::Tree || list == 0)
m_iconview->setPrinterList(list);
@@ -100,14 +100,14 @@ void KMPrinterView::setViewType(ViewType t)
}
}
-void KMPrinterView::slotPrinterSelected(const QString& p)
+void KMPrinterView::slotPrinterSelected(const TQString& p)
{
m_current = p;
}
-QSize KMPrinterView::minimumSizeHint() const
+TQSize KMPrinterView::minimumSizeHint() const
{
- return QWidgetStack::minimumSizeHint();
+ return TQWidgetStack::minimumSizeHint();
}
#include "kmprinterview.moc"