summaryrefslogtreecommitdiffstats
path: root/kdeprint/management/kmjobviewer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeprint/management/kmjobviewer.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/management/kmjobviewer.cpp')
-rw-r--r--kdeprint/management/kmjobviewer.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kdeprint/management/kmjobviewer.cpp b/kdeprint/management/kmjobviewer.cpp
index a5e419fc6..03c3dc620 100644
--- a/kdeprint/management/kmjobviewer.cpp
+++ b/kdeprint/management/kmjobviewer.cpp
@@ -149,7 +149,7 @@ void KMJobViewer::updateCaption()
if (!m_prname.isEmpty())
{
setCaption(i18n("Print Jobs for %1").arg(m_prname));
- KMPrinter *prt = KMManager::self()->findPrinter(m_prname);
+ KMPrinter *prt = KMManager::self()->tqfindPrinter(m_prname);
if (prt)
pixname = prt->pixmap();
}
@@ -183,7 +183,7 @@ void KMJobViewer::addToManager()
}
else if (!m_prname.isEmpty())
{
- KMPrinter *prt = KMManager::self()->findPrinter( m_prname );
+ KMPrinter *prt = KMManager::self()->tqfindPrinter( m_prname );
bool isSpecial = ( prt ? prt->isSpecial() : false );
m_manager->addPrinter(m_prname, (KMJobManager::JobType)m_type, isSpecial);
}
@@ -235,7 +235,7 @@ void KMJobViewer::init()
m_view->addColumn(i18n("Job ID"));
m_view->addColumn(i18n("Owner"));
m_view->addColumn(i18n("Name"), 150);
- m_view->addColumn(i18n("Status", "State"));
+ m_view->addColumn(i18n("tqStatus", "State"));
m_view->addColumn(i18n("Size (KB)"));
m_view->addColumn(i18n("Page(s)"));
m_view->setColumnAlignment(5,Qt::AlignRight|Qt::AlignVCenter);
@@ -280,7 +280,7 @@ void KMJobViewer::initActions()
connect(m_userfield, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotUserChanged()));
connect(uact, TQT_SIGNAL(toggled(bool)), m_userfield, TQT_SLOT(setEnabled(bool)));
m_userfield->setEnabled(false);
- m_userfield->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
+ m_userfield->tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed));
KWidgetAction *ufact = new KWidgetAction(m_userfield, i18n("User Name"), 0, 0, 0, actionCollection(), "view_username");
if (!m_pop)
@@ -387,7 +387,7 @@ void KMJobViewer::updateJobs()
for (;it.current();++it)
{
KMJob *j(it.current());
- JobItem *item = findItem(j->uri());
+ JobItem *item = tqfindItem(j->uri());
if (item)
{
item->setDiscarded(false);
@@ -407,7 +407,7 @@ void KMJobViewer::updateJobs()
slotSelectionChanged();
}
-JobItem* KMJobViewer::findItem(const TQString& uri)
+JobItem* KMJobViewer::tqfindItem(const TQString& uri)
{
TQPtrListIterator<JobItem> it(m_items);
for (;it.current();++it)
@@ -586,7 +586,7 @@ void KMJobViewer::loadPluginActions()
KAction *act = actionCollection()->action("job_restart");
for (int i=0;i<act->containerCount();i++)
{
- if (menuBar()->findItem(act->itemId(i), &menu))
+ if (menuBar()->tqfindItem(act->itemId(i), &menu))
{
menuindex = mpopindex = menu->indexOf(act->itemId(i))+1;
break;