summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-12 14:08:42 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-12 14:08:52 +0900
commit67bff2edcacb208dc44dcd521386bef686dc6dbf (patch)
tree538584042585402a59d4b1464b117033778ccc28 /examples
parentfb401a891f1b426e9419c0cb16403df407138611 (diff)
downloadtqt3-67bff2edcacb208dc44dcd521386bef686dc6dbf.tar.gz
tqt3-67bff2edcacb208dc44dcd521386bef686dc6dbf.zip
Replace Q_WS_* defines with TQ_WS_* equivalents
This is the first part of the replacement process. Usage of Q_WS_* has been replaced with the equivalent TQ_WS_*. Definition of Q_WS_* has been mirrored into TQ_WS_* defines, to allow TDE code to continue building till replacement is carried over to all other modules. Once that is completed, the original Q_WS_* defines will be removed. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples')
-rw-r--r--examples/canvas/canvas.cpp4
-rw-r--r--examples/dirview/dirview.cpp2
-rw-r--r--examples/fileiconview/qfileiconview.cpp2
-rw-r--r--examples/mdi/application.cpp2
-rw-r--r--examples/opengl/overlay_x11/gearwidget.cpp2
-rw-r--r--examples/opengl/overlay_x11/main.cpp6
-rw-r--r--examples/splitter/splitter.cpp2
7 files changed, 10 insertions, 10 deletions
diff --git a/examples/canvas/canvas.cpp b/examples/canvas/canvas.cpp
index 24744693b..3e3e4cd06 100644
--- a/examples/canvas/canvas.cpp
+++ b/examples/canvas/canvas.cpp
@@ -55,7 +55,7 @@ ImageItem::ImageItem( TQImage img, TQCanvas *canvas )
{
setSize( image.width(), image.height() );
-#if !defined(Q_WS_QWS)
+#if !defined(TQ_WS_QWS)
pixmap.convertFromImage(image, OrderedAlphaDither);
#endif
}
@@ -65,7 +65,7 @@ void ImageItem::drawShape( TQPainter &p )
{
// On TQt/Embedded, we can paint a TQImage as fast as a TQPixmap,
// but on other platforms, we need to use a TQPixmap.
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
p.drawImage( int(x()), int(y()), image, 0, 0, -1, -1, OrderedAlphaDither );
#else
p.drawPixmap( int(x()), int(y()), pixmap );
diff --git a/examples/dirview/dirview.cpp b/examples/dirview/dirview.cpp
index 0e12751ea..7bd26d3f5 100644
--- a/examples/dirview/dirview.cpp
+++ b/examples/dirview/dirview.cpp
@@ -440,7 +440,7 @@ TQString DirectoryView::fullPath(TQListViewItem* item)
else
fullpath = item->text(0) + fullpath;
}
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
if (fullpath.length() > 2 && fullpath[1] != ':') {
TQDir dir(fullpath);
fullpath = dir.currentDirPath().left(2) + fullpath;
diff --git a/examples/fileiconview/qfileiconview.cpp b/examples/fileiconview/qfileiconview.cpp
index ed636bd1f..e684b90b0 100644
--- a/examples/fileiconview/qfileiconview.cpp
+++ b/examples/fileiconview/qfileiconview.cpp
@@ -290,7 +290,7 @@ void TQtFileIconDrag::append( const TQIconDragItem &item, const TQRect &pr,
{
TQIconDrag::append( item, pr, tr );
TQString ourUrl = url;
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
if (ourUrl.length() > 2 && ourUrl[1] != ':') {
TQDir dir(ourUrl);
ourUrl = dir.absPath();
diff --git a/examples/mdi/application.cpp b/examples/mdi/application.cpp
index 138ffa53b..5b91bdb58 100644
--- a/examples/mdi/application.cpp
+++ b/examples/mdi/application.cpp
@@ -337,7 +337,7 @@ void MDIWindow::load( const TQString& fn )
medit->hide();
delete medit;
TQMovie * qm=new TQMovie(fn);
-#ifdef Q_WS_QWS // temporary speed-test hack
+#ifdef TQ_WS_QWS // temporary speed-test hack
qm->setDisplayWidget(tmp);
#endif
tmp->setBackgroundMode(TQWidget::NoBackground);
diff --git a/examples/opengl/overlay_x11/gearwidget.cpp b/examples/opengl/overlay_x11/gearwidget.cpp
index e9a00c0ae..9a1f4dd90 100644
--- a/examples/opengl/overlay_x11/gearwidget.cpp
+++ b/examples/opengl/overlay_x11/gearwidget.cpp
@@ -15,7 +15,7 @@
#include "gearwidget.h"
#include <math.h>
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
#include <X11/Xlib.h>
#endif
diff --git a/examples/opengl/overlay_x11/main.cpp b/examples/opengl/overlay_x11/main.cpp
index c8a5dfba5..dce8ffec9 100644
--- a/examples/opengl/overlay_x11/main.cpp
+++ b/examples/opengl/overlay_x11/main.cpp
@@ -14,7 +14,7 @@
#include "gearwidget.h"
#include "rubberbandwidget.h"
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
#include <X11/Xlib.h>
#endif
@@ -22,7 +22,7 @@ TQColor findOverlayTransparentColor()
{
TQColor invalidColor;
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
Display* appDisplay;
Visual* appVisual;
@@ -83,7 +83,7 @@ TQColor findOverlayTransparentColor()
tqWarning( "Default visual is not in overlay plane" );
return invalidColor;
-#else // defined(Q_WS_X11)
+#else // defined(TQ_WS_X11)
tqWarning( "Wrong window system - Only X11 has overlay support." );
return invalidColor;
#endif
diff --git a/examples/splitter/splitter.cpp b/examples/splitter/splitter.cpp
index 523ef0d68..7439800c8 100644
--- a/examples/splitter/splitter.cpp
+++ b/examples/splitter/splitter.cpp
@@ -83,7 +83,7 @@ int main( int argc, char ** argv )
t5->setMinimumSize( 80, 50 );
t5->setBackgroundColor( TQt::yellow );
-#ifdef Q_WS_QWS
+#ifdef TQ_WS_QWS
// TQt/Embedded XOR drawing not yet implemented.
s1->setOpaqueResize( TRUE );
#endif