summaryrefslogtreecommitdiffstats
path: root/kdeprint/kdeprintd.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/kdeprintd.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/kdeprintd.cpp')
-rw-r--r--kdeprint/kdeprintd.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kdeprint/kdeprintd.cpp b/kdeprint/kdeprintd.cpp
index 198147463..1d1231467 100644
--- a/kdeprint/kdeprintd.cpp
+++ b/kdeprint/kdeprintd.cpp
@@ -48,10 +48,10 @@ extern "C"
}
}
-class StatusWindow : public QWidget
+class tqStatusWindow : public QWidget
{
public:
- StatusWindow(int pid = -1);
+ tqStatusWindow(int pid = -1);
void setMessage(const TQString&);
int pid() const { return m_pid; }
@@ -62,15 +62,15 @@ private:
QLabel *m_icon;
};
-StatusWindow::StatusWindow(int pid)
-: TQWidget(NULL, "StatusWindow", WType_TopLevel|WStyle_DialogBorder|WStyle_StaysOnTop|WDestructiveClose), m_pid(pid)
+tqStatusWindow::tqStatusWindow(int pid)
+: TQWidget(NULL, "tqStatusWindow", WType_TopLevel|WStyle_DialogBorder|WStyle_StaysOnTop|WDestructiveClose), m_pid(pid)
{
m_label = new TQLabel(this);
- m_label->setAlignment(AlignCenter);
+ m_label->tqsetAlignment(AlignCenter);
m_button = new KPushButton(KStdGuiItem::close(), this);
m_icon = new TQLabel(this);
m_icon->setPixmap(DesktopIcon("fileprint"));
- m_icon->setAlignment(AlignCenter);
+ m_icon->tqsetAlignment(AlignCenter);
KWin::setIcons(winId(), *(m_icon->pixmap()), SmallIcon("fileprint"));
QGridLayout *l0 = new TQGridLayout(this, 2, 3, 10, 10);
l0->setRowStretch(0, 1);
@@ -82,17 +82,17 @@ StatusWindow::StatusWindow(int pid)
resize(200, 50);
}
-void StatusWindow::setMessage(const TQString& msg)
+void tqStatusWindow::setMessage(const TQString& msg)
{
//QSize oldSz = size();
m_label->setText(msg);
- //QSize sz = m_label->sizeHint();
- //sz += TQSize(layout()->margin()*2, layout()->margin()*2+layout()->spacing()+m_button->sizeHint().height());
+ //QSize sz = m_label->tqsizeHint();
+ //sz += TQSize(tqlayout()->margin()*2, tqlayout()->margin()*2+tqlayout()->spacing()+m_button->tqsizeHint().height());
// dialog will never be smaller
//sz = sz.expandedTo(oldSz);
//resize(sz);
//setFixedSize(sz);
- //layout()->activate();
+ //tqlayout()->activate();
}
//*****************************************************************************************************
@@ -124,12 +124,12 @@ int KDEPrintd::print(const TQString& cmd, const TQStringList& files, bool remfla
if ( !url.isLocalFile() )
{
TQString tmpFilename = locateLocal( "tmp", "kdeprint_" + kapp->randomString( 8 ) );
- command.replace( re, KProcess::quote( tmpFilename ) );
+ command.tqreplace( re, KProcess::quote( tmpFilename ) );
proc->setOutput( re.cap( 1 ) );
proc->setTempOutput( tmpFilename );
}
else
- command.replace( re, KProcess::quote( re.cap( 1 ) ) );
+ command.tqreplace( re, KProcess::quote( re.cap( 1 ) ) );
}
if ( checkFiles( command, files ) )
@@ -192,14 +192,14 @@ bool KDEPrintd::checkFiles(TQString& cmd, const TQStringList& files)
void KDEPrintd::statusMessage(const TQString& msg, int pid, const TQString& appName)
{
- StatusWindow *w = m_windows.find(pid);
+ tqStatusWindow *w = m_windows.tqfind(pid);
if (!w && !msg.isEmpty())
{
- w = new StatusWindow(pid);
+ w = new tqStatusWindow(pid);
if (appName.isEmpty())
- w->setCaption(i18n("Printing Status - %1").arg("(pid="+TQString::number(pid)+")"));
+ w->setCaption(i18n("Printing tqStatus - %1").arg("(pid="+TQString::number(pid)+")"));
else
- w->setCaption(i18n("Printing Status - %1").arg(appName));
+ w->setCaption(i18n("Printing tqStatus - %1").arg(appName));
connect(w, TQT_SIGNAL(destroyed()), TQT_SLOT(slotClosed()));
w->show();
m_windows.insert(pid, w);
@@ -215,7 +215,7 @@ void KDEPrintd::statusMessage(const TQString& msg, int pid, const TQString& appN
void KDEPrintd::slotClosed()
{
- const StatusWindow *w = static_cast<const StatusWindow*>(sender());
+ const tqStatusWindow *w = static_cast<const tqStatusWindow*>(sender());
if (w)
{
m_windows.remove(w->pid());