summaryrefslogtreecommitdiffstats
path: root/src/kernel/qdragobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qdragobject.cpp')
-rw-r--r--src/kernel/qdragobject.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/kernel/qdragobject.cpp b/src/kernel/qdragobject.cpp
index efc08616..c9d4e8f1 100644
--- a/src/kernel/qdragobject.cpp
+++ b/src/kernel/qdragobject.cpp
@@ -109,7 +109,7 @@ public:
static const char * const move_xpm[] = {
"11 20 3 1",
". c None",
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
"a c #000000",
"X c #FFFFFF", // Windows cursor is traditionally white
#else
@@ -143,7 +143,7 @@ static const char * const copy_xpm[] = {
". c None",
"a c #000000",
"X c #FFFFFF",
-#if defined(Q_WS_WIN) // Windows cursor is traditionally white
+#if defined(TQ_WS_WIN) // Windows cursor is traditionally white
"aa......................",
"aXa.....................",
"aXXa....................",
@@ -203,7 +203,7 @@ static const char * const link_xpm[] = {
". c None",
"a c #000000",
"X c #FFFFFF",
-#if defined(Q_WS_WIN) // Windows cursor is traditionally white
+#if defined(TQ_WS_WIN) // Windows cursor is traditionally white
"aa......................",
"aXa.....................",
"aXXa....................",
@@ -271,7 +271,7 @@ TQDragManager::TQDragManager()
pm_cursor[0] = TQPixmap((const char **)move_xpm);
pm_cursor[1] = TQPixmap((const char **)copy_xpm);
pm_cursor[2] = TQPixmap((const char **)link_xpm);
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
createCursors(); // Xcursors cache can hold only 8 bitmaps (4 cursors)
#endif
object = 0;
@@ -840,7 +840,7 @@ TQByteArray TQTextDrag::encodedData(const char* mime) const
if ( !codec )
return r;
TQString text( d->txt );
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
int index = text.find( TQString::fromLatin1("\r\n"), 0 );
while ( index != -1 ) {
text.replace( index, 2, TQChar('\n') );
@@ -850,7 +850,7 @@ TQByteArray TQTextDrag::encodedData(const char* mime) const
r = codec->fromUnicode(text);
if (!codec || codec->mibEnum() != 1000) {
// Don't include NUL in size (TQCString::resize() adds NUL)
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
// This is needed to ensure the \0 isn't lost on Windows 95
if ( qWinVersion() & TQt::WV_DOS_based )
((TQByteArray&)r).resize(r.length()+1);
@@ -1508,7 +1508,7 @@ TQCString TQUriDrag::localFileToUri(const TQString& filename)
if (TQDir::isRelativePath(r))
return TQCString();
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
bool hasHost = FALSE;
@@ -1529,7 +1529,7 @@ TQCString TQUriDrag::localFileToUri(const TQString& filename)
r.insert(0,'/');
#endif
-#if defined ( Q_WS_X11 ) && 0
+#if defined ( TQ_WS_X11 ) && 0
// URL without the hostname is considered to be errorneous by XDnD.
// See: http://www.newplanetsoftware.com/xdnd/dragging_files.html
// This feature is not active because this would break dnd between old and new qt apps.
@@ -1594,7 +1594,7 @@ TQString TQUriDrag::uriToLocalFile(const char* uri)
return file;
bool local = uri[0] != '/' || ( uri[0] != '\0' && uri[1] == '/' );
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
// do we have a hostname?
if ( !local && uri[0] == '/' && uri[2] != '/' ) {
// then move the pointer to after the 'hostname/' part of the uri
@@ -1618,7 +1618,7 @@ TQString TQUriDrag::uriToLocalFile(const char* uri)
} else {
file.insert(0,'/');
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
if ( file.length() > 2 && file[0] == '/' && file[2] == '|' ) {
file[2] = ':';
file.remove(0,1);
@@ -1628,7 +1628,7 @@ TQString TQUriDrag::uriToLocalFile(const char* uri)
// Leave slash as slashes.
#endif
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
else {
file = uriToUnicodeUri(uri);
// convert to network path