From 88d14d22d621a11ab063f5810d93c91571922440 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 13 Feb 2024 11:11:09 +0900 Subject: [PATCH] Replace Q_WS_* defines with TQ_WS_* equivalents Signed-off-by: Michele Calgaro (cherry picked from commit 23638c89e30cefac38f38a681e58c628ce94a74a) --- configure.py | 2 +- examples/mdi.py | 2 +- pytquic3/embed.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.py b/configure.py index 5210049..6d0f3cf 100644 --- a/configure.py +++ b/configure.py @@ -692,7 +692,7 @@ int main(int argc,char **argv) fprintf(fp,"-x TQt_THREAD_SUPPORT\\n"); #endif -#if !defined(Q_WS_WIN) || defined(TQT_NO_STYLE_WINDOWSXP) +#if !defined(TQ_WS_WIN) || defined(TQT_NO_STYLE_WINDOWSXP) fprintf(fp,"-x TQt_STYLE_WINDOWSXP\\n"); #endif diff --git a/examples/mdi.py b/examples/mdi.py index 961c54a..84d9b36 100755 --- a/examples/mdi.py +++ b/examples/mdi.py @@ -286,7 +286,7 @@ class MDIWindow( TQMainWindow): self.medit.hide() del self.medit qm=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/pytquic3/embed.cpp b/pytquic3/embed.cpp index a24f282..f86a1d6 100644 --- a/pytquic3/embed.cpp +++ b/pytquic3/embed.cpp @@ -32,7 +32,7 @@ // on embedded, we do not compress image data. Rationale: by mapping // the ready-only data directly into memory we are both faster and // more memory efficient -#if defined(Q_WS_QWS) && !defined(TQT_NO_IMAGE_COLLECTION_COMPRESSION) +#if defined(TQ_WS_QWS) && !defined(TQT_NO_IMAGE_COLLECTION_COMPRESSION) #define TQT_NO_IMAGE_COLLECTION_COMPRESSION #endif