summaryrefslogtreecommitdiffstats
path: root/tdeio/tdeio
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-13 11:10:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-15 10:21:34 +0900
commit03aa7238b34bb438632b6d572b008e32960f0895 (patch)
tree11395aba8fd4cb1f52f0a831c61febf61337dab7 /tdeio/tdeio
parent15d75fb42da10a93a9c371fea8eb0baf281e0d44 (diff)
downloadtdelibs-03aa7238b34bb438632b6d572b008e32960f0895.tar.gz
tdelibs-03aa7238b34bb438632b6d572b008e32960f0895.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeio/tdeio')
-rw-r--r--tdeio/tdeio/defaultprogress.cpp4
-rw-r--r--tdeio/tdeio/job.cpp6
-rw-r--r--tdeio/tdeio/kdirwatch.cpp2
-rw-r--r--tdeio/tdeio/kfilterbase.h2
-rw-r--r--tdeio/tdeio/kmimetype.cpp6
-rw-r--r--tdeio/tdeio/krun.cpp10
-rw-r--r--tdeio/tdeio/krun.h6
-rw-r--r--tdeio/tdeio/kservicetypefactory.cpp2
-rw-r--r--tdeio/tdeio/renamedlg.cpp4
-rw-r--r--tdeio/tdeio/skipdlg.cpp4
-rw-r--r--tdeio/tdeio/slave.cpp16
-rw-r--r--tdeio/tdeio/tcpslavebase.cpp4
-rw-r--r--tdeio/tdeio/tdefileitem.cpp2
13 files changed, 34 insertions, 34 deletions
diff --git a/tdeio/tdeio/defaultprogress.cpp b/tdeio/tdeio/defaultprogress.cpp
index 063d3e1c8..2944cd6aa 100644
--- a/tdeio/tdeio/defaultprogress.cpp
+++ b/tdeio/tdeio/defaultprogress.cpp
@@ -35,7 +35,7 @@
#include <kstdguiitem.h>
#include <klineedit.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <twin.h>
#endif
@@ -86,7 +86,7 @@ void DefaultProgress::init()
{
d = new DefaultProgressPrivate;
-#ifdef Q_WS_X11 //FIXME(E): Remove once all the KWin::foo calls have been ported to QWS
+#ifdef TQ_WS_X11 //FIXME(E): Remove once all the KWin::foo calls have been ported to QWS
// Set a useful icon for this window!
KWin::setIcons( winId(),
TDEGlobal::iconLoader()->loadIcon( "document-save", TDEIcon::NoGroup, 32 ),
diff --git a/tdeio/tdeio/job.cpp b/tdeio/tdeio/job.cpp
index 3418da6bc..5943ae402 100644
--- a/tdeio/tdeio/job.cpp
+++ b/tdeio/tdeio/job.cpp
@@ -73,7 +73,7 @@ extern "C" {
#ifdef Q_OS_UNIX
#include <utime.h>
#endif
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
#include <netwm.h>
#include <fixx11h.h>
#endif
@@ -391,7 +391,7 @@ TQWidget *Job::window() const
void Job::updateUserTimestamp( unsigned long time )
{
-#if defined Q_WS_X11
+#if defined TQ_WS_X11
if( d->m_userTimestamp == 0 || NET::timestampCompare( time, d->m_userTimestamp ) > 0 )
d->m_userTimestamp = time;
#endif
@@ -4695,7 +4695,7 @@ TQString CacheInfo::cachedFileName()
TQFile *CacheInfo::cachedFile()
{
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
const char *mode = (readWrite ? "rb+" : "rb");
#else
const char *mode = (readWrite ? "r+" : "r");
diff --git a/tdeio/tdeio/kdirwatch.cpp b/tdeio/tdeio/kdirwatch.cpp
index 680b18cab..857e50703 100644
--- a/tdeio/tdeio/kdirwatch.cpp
+++ b/tdeio/tdeio/kdirwatch.cpp
@@ -1249,7 +1249,7 @@ void KDirWatchPrivate::emitEvent(Entry* e, int event, const KURL &fileName)
else
#ifdef Q_OS_UNIX
path += "/" + fileName.path();
-#elif defined(Q_WS_WIN)
+#elif defined(TQ_WS_WIN)
//current drive is passed instead of /
path += TQDir::currentDirPath().left(2) + "/" + fileName.path();
#endif
diff --git a/tdeio/tdeio/kfilterbase.h b/tdeio/tdeio/kfilterbase.h
index 203eb581d..f2c4f1225 100644
--- a/tdeio/tdeio/kfilterbase.h
+++ b/tdeio/tdeio/kfilterbase.h
@@ -24,7 +24,7 @@
#include <tdelibs_export.h>
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#undef ERROR //avoid conflicts
#endif
diff --git a/tdeio/tdeio/kmimetype.cpp b/tdeio/tdeio/kmimetype.cpp
index 8e4eb9769..67ac7f7ea 100644
--- a/tdeio/tdeio/kmimetype.cpp
+++ b/tdeio/tdeio/kmimetype.cpp
@@ -855,7 +855,7 @@ pid_t KDEDesktopMimeType::runFSDevice( const KURL& _url, const KSimpleConfig &cf
if ( fstype == "Default" ) // KDE-1 thing
fstype = TQString::null;
TQString point = cfg.readEntry( "MountPoint" );
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
(void) new KAutoMount( ro, fstype, dev, point, _url.path() );
#endif
retval = -1; // we don't want to return 0, but we don't want to return a pid
@@ -1138,7 +1138,7 @@ void KDEDesktopMimeType::executeService( const KURL::List& urls, KDEDesktopMimeT
if ( fstype == "Default" ) // KDE-1 thing
fstype = TQString::null;
TQString point = cfg.readEntry( "MountPoint" );
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
(void)new KAutoMount( ro, fstype, dev, point, path, false );
#endif
}
@@ -1148,7 +1148,7 @@ void KDEDesktopMimeType::executeService( const KURL::List& urls, KDEDesktopMimeT
if ( mp.isEmpty() )
return;
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
(void)new KAutoUnmount( mp, path );
#endif
}
diff --git a/tdeio/tdeio/krun.cpp b/tdeio/tdeio/krun.cpp
index 909594c1e..99584b5ac 100644
--- a/tdeio/tdeio/krun.cpp
+++ b/tdeio/tdeio/krun.cpp
@@ -61,7 +61,7 @@
#include <kde_file.h>
#include <kstringhandler.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <twin.h>
#endif
@@ -562,7 +562,7 @@ static pid_t runCommandInternal( TDEProcess* proc, const KService* service, cons
return 0;
}
TQString bin = KRun::binaryName( binName, true );
-#ifdef Q_WS_X11 // Startup notification doesn't work with QT/E, service isn't needed without Startup notification
+#ifdef TQ_WS_X11 // Startup notification doesn't work with QT/E, service isn't needed without Startup notification
bool silent;
TQCString wmclass;
TDEStartupInfoId id;
@@ -1471,7 +1471,7 @@ TDEProcessRunner::run(TDEProcess * p, const TQString & binName)
return (new TDEProcessRunner(p, binName))->pid();
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
pid_t
TDEProcessRunner::run(TDEProcess * p, const TQString & binName, const TDEStartupInfoId& id )
{
@@ -1493,7 +1493,7 @@ TDEProcessRunner::TDEProcessRunner(TDEProcess * p, const TQString & _binName )
slotProcessExited( process_ );
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
TDEProcessRunner::TDEProcessRunner(TDEProcess * p, const TQString & _binName, const TDEStartupInfoId& id )
: TQObject(),
process_(p),
@@ -1545,7 +1545,7 @@ TDEProcessRunner::slotProcessExited(TDEProcess * p)
kapp->deref();
}
}
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
if( !id_.none())
{
TDEStartupInfoData data;
diff --git a/tdeio/tdeio/krun.h b/tdeio/tdeio/krun.h
index e6c8a23ca..62a1a5d91 100644
--- a/tdeio/tdeio/krun.h
+++ b/tdeio/tdeio/krun.h
@@ -482,7 +482,7 @@ class TDEIO_EXPORT TDEProcessRunner : public TQObject
public:
static pid_t run(TDEProcess *, const TQString & binName);
-#ifdef Q_WS_X11 // We don't have TDEStartupInfo in Qt/Embedded
+#ifdef TQ_WS_X11 // We don't have TDEStartupInfo in Qt/Embedded
static pid_t run(TDEProcess *, const TQString & binName, const TDEStartupInfoId& id );
#endif
@@ -497,14 +497,14 @@ class TDEIO_EXPORT TDEProcessRunner : public TQObject
private:
TDEProcessRunner(TDEProcess *, const TQString & binName);
-#ifdef Q_WS_X11 // We don't have TDEStartupInfo in Qt/Embedded
+#ifdef TQ_WS_X11 // We don't have TDEStartupInfo in Qt/Embedded
TDEProcessRunner(TDEProcess *, const TQString & binName, const TDEStartupInfoId& id );
#endif
TDEProcessRunner();
TDEProcess * process_;
TQString binName;
-#ifdef Q_WS_X11 // We don't have TDEStartupInfo in Qt/Embedded
+#ifdef TQ_WS_X11 // We don't have TDEStartupInfo in Qt/Embedded
TDEStartupInfoId id_;
#endif
};
diff --git a/tdeio/tdeio/kservicetypefactory.cpp b/tdeio/tdeio/kservicetypefactory.cpp
index 682a87d6b..77cda4059 100644
--- a/tdeio/tdeio/kservicetypefactory.cpp
+++ b/tdeio/tdeio/kservicetypefactory.cpp
@@ -234,7 +234,7 @@ KServiceType::List KServiceTypeFactory::allServiceTypes()
it != list.end();
++it)
{
-#ifndef Q_WS_QWS
+#ifndef TQ_WS_QWS
KServiceType *newServiceType = dynamic_cast<KServiceType *>((*it).data());
#else //FIXME
KServiceType *newServiceType = (KServiceType*)(*it).data();
diff --git a/tdeio/tdeio/renamedlg.cpp b/tdeio/tdeio/renamedlg.cpp
index 37e8ba385..ce2ae5323 100644
--- a/tdeio/tdeio/renamedlg.cpp
+++ b/tdeio/tdeio/renamedlg.cpp
@@ -48,7 +48,7 @@
#include <kguiitem.h>
#include <ksqueezedtextlabel.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <twin.h>
#endif
@@ -99,7 +99,7 @@ RenameDlg::RenameDlg(TQWidget *parent, const TQString & _caption,
// Set "StaysOnTop", because this dialog is typically used in tdeio_uiserver,
// i.e. in a separate process.
// ####### This isn't the case anymore - remove?
-#if !defined(Q_WS_QWS) && !defined(Q_WS_WIN) //FIXME(E): Implement for QT Embedded & win32
+#if !defined(TQ_WS_QWS) && !defined(TQ_WS_WIN) //FIXME(E): Implement for QT Embedded & win32
if (d->modal)
KWin::setState( winId(), NET::StaysOnTop );
#endif
diff --git a/tdeio/tdeio/skipdlg.cpp b/tdeio/tdeio/skipdlg.cpp
index 84dfaefa5..ffc09d559 100644
--- a/tdeio/tdeio/skipdlg.cpp
+++ b/tdeio/tdeio/skipdlg.cpp
@@ -32,7 +32,7 @@
#include <kpushbutton.h>
#include <kstdguiitem.h>
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
#include <twin.h>
#endif
@@ -46,7 +46,7 @@ SkipDlg::SkipDlg(TQWidget *parent, bool _multi, const TQString& _error_text, boo
// Set "StaysOnTop", because this dialog is typically used in tdeio_uiserver,
// i.e. in a separate process.
-#ifdef Q_WS_X11 //FIXME(E): Implement for QT Embedded, mac & win32
+#ifdef TQ_WS_X11 //FIXME(E): Implement for QT Embedded, mac & win32
if (modal)
KWin::setState( winId(), NET::StaysOnTop );
#endif
diff --git a/tdeio/tdeio/slave.cpp b/tdeio/tdeio/slave.cpp
index 56d45a315..5ced7acf8 100644
--- a/tdeio/tdeio/slave.cpp
+++ b/tdeio/tdeio/slave.cpp
@@ -89,7 +89,7 @@ namespace TDEIO {
void Slave::accept(TDESocket *socket)
{
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
slaveconn.init(socket);
#endif
delete serv;
@@ -151,7 +151,7 @@ Slave::Slave(TDEServerSocket *socket, const TQString &protocol, const TQString &
idle_since = contact_started;
m_pid = 0;
m_port = 0;
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
connect(serv, TQ_SIGNAL(accepted( TDESocket* )),
TQ_SLOT(accept(TDESocket*) ) );
#endif
@@ -173,7 +173,7 @@ Slave::Slave(bool /*derived*/, TDEServerSocket *socket, const TQString &protocol
m_pid = 0;
m_port = 0;
if (serv != 0) {
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
connect(serv, TQ_SIGNAL(accepted( TDESocket* )),
TQ_SLOT(accept(TDESocket*) ) );
#endif
@@ -376,7 +376,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
socketfile.close();
#endif
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
TDEServerSocket *kss = new TDEServerSocket(TQFile::encodeName(socketfile.name()).data());
Slave *slave = new Slave(kss, protocol, socketfile.name());
@@ -418,7 +418,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
proc.start(TDEProcess::DontCare);
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
slave->setPID(proc.pid());
TQTimer::singleShot(1000*SLAVE_CONNECTION_TIMEOUT_MIN, slave, TQ_SLOT(timeout()));
#endif
@@ -450,7 +450,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
delete slave;
return 0;
}
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
slave->setPID(pid);
TQTimer::singleShot(1000*SLAVE_CONNECTION_TIMEOUT_MIN, slave, TQ_SLOT(timeout()));
#endif
@@ -478,7 +478,7 @@ Slave* Slave::holdSlave( const TQString &protocol, const KURL& url )
socketfile.unlink();
#endif
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
TDEServerSocket *kss = new TDEServerSocket(TQFile::encodeName(socketfile.name()).data());
Slave *slave = new Slave(kss, protocol, socketfile.name());
@@ -505,7 +505,7 @@ Slave* Slave::holdSlave( const TQString &protocol, const KURL& url )
delete slave;
return 0;
}
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
slave->setPID(pid);
TQTimer::singleShot(1000*SLAVE_CONNECTION_TIMEOUT_MIN, slave, TQ_SLOT(timeout()));
#endif
diff --git a/tdeio/tdeio/tcpslavebase.cpp b/tdeio/tdeio/tcpslavebase.cpp
index 0237c9fd5..d75e8804f 100644
--- a/tdeio/tdeio/tcpslavebase.cpp
+++ b/tdeio/tdeio/tcpslavebase.cpp
@@ -44,7 +44,7 @@
#include <ksslall.h>
#include <ksslcertdlg.h>
#include <tdemessagebox.h>
-#ifndef Q_WS_WIN //temporary
+#ifndef TQ_WS_WIN //temporary
#include <kresolver.h>
#endif
@@ -762,7 +762,7 @@ int TCPSlaveBase::verifyCertificate()
_IPmatchesCN = d->kssl->peerInfo().certMatchesAddress();
if (!_IPmatchesCN) {
-#ifndef Q_WS_WIN //temporary
+#ifndef TQ_WS_WIN //temporary
KNetwork::KResolverResults res = KNetwork::KResolver::resolve(d->kssl->peerInfo().peerHost(), "80", KNetwork::KResolver::CanonName);
if (!res.isEmpty()) {
TQString old = d->kssl->peerInfo().peerHost();
diff --git a/tdeio/tdeio/tdefileitem.cpp b/tdeio/tdeio/tdefileitem.cpp
index 577a8a0d7..aa4d1f873 100644
--- a/tdeio/tdeio/tdefileitem.cpp
+++ b/tdeio/tdeio/tdefileitem.cpp
@@ -965,7 +965,7 @@ TQString KFileItem::getToolTipText(int maxcount)
if(!timeStr.isEmpty())
tip += start + i18n("Modified:") + mid +
timeStr + end;
-#ifndef Q_WS_WIN //TODO: show win32-specific permissions
+#ifndef TQ_WS_WIN //TODO: show win32-specific permissions
TQString userStr = user();
TQString groupStr = group();
if(!userStr.isEmpty() || !groupStr.isEmpty())