summaryrefslogtreecommitdiffstats
path: root/src/kernel/ntqapplication.h
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-02-12 14:08:42 +0900
committerMichele Calgaro <[email protected]>2024-02-14 21:06:27 +0900
commit473cd1e8a525d82f49e936d76daabe3d094a8807 (patch)
treedc0fe3faad1958b846eeebb02208728c0d278854 /src/kernel/ntqapplication.h
parentecca365daf06c711cf30f93f4c773dabf5642790 (diff)
downloadtqt3-473cd1e8a525d82f49e936d76daabe3d094a8807.tar.gz
tqt3-473cd1e8a525d82f49e936d76daabe3d094a8807.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 <[email protected]> (cherry picked from commit 67bff2edcacb208dc44dcd521386bef686dc6dbf)
Diffstat (limited to 'src/kernel/ntqapplication.h')
-rw-r--r--src/kernel/ntqapplication.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/kernel/ntqapplication.h b/src/kernel/ntqapplication.h
index d657e2647..4696b290e 100644
--- a/src/kernel/ntqapplication.h
+++ b/src/kernel/ntqapplication.h
@@ -54,10 +54,10 @@ class TQSessionManager;
class TQStyle;
class TQTranslator;
class TQEventLoop;
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
class TQIMEvent;
#endif
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
class TQWSDecoration;
#endif
@@ -80,7 +80,7 @@ public:
TQApplication( int &argc, char **argv, bool GUIenabled, bool SMenabled );
enum Type { Tty, GuiClient, GuiServer };
TQApplication( int &argc, char **argv, Type );
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
TQApplication( Display* dpy, HANDLE visual = 0, HANDLE cmap = 0 );
TQApplication( Display *dpy, int argc, char **argv,
HANDLE visual = 0, HANDLE cmap= 0 );
@@ -236,18 +236,18 @@ public:
static bool isEffectEnabled( TQt::UIEffect );
static void setEffectEnabled( TQt::UIEffect, bool enable = TRUE );
-#if defined(Q_WS_MAC)
+#if defined(TQ_WS_MAC)
virtual bool macEventFilter( EventHandlerCallRef, EventRef );
#endif
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
virtual bool winEventFilter( MSG * );
#endif
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
virtual bool x11EventFilter( XEvent * );
virtual int x11ClientMessage( TQWidget*, XEvent*, bool passive_only);
int x11ProcessEvent( XEvent* );
#endif
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
virtual bool qwsEventFilter( TQWSEvent * );
int qwsProcessEvent( TQWSEvent* );
void qwsSetCustomColors( TQRgb *colortable, int start, int numColors );
@@ -267,7 +267,7 @@ public:
#elif defined(Q_OS_MAC)
static MacintoshVersion macVersion();
#endif
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
void winFocus( TQWidget *, bool );
static void winMouseButtonUp();
#endif
@@ -280,7 +280,7 @@ public:
virtual void commitData( TQSessionManager& sm );
virtual void saveState( TQSessionManager& sm );
#endif
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
#if !defined(TQT_NO_IM_EXTENSIONS)
virtual TQWidget *locateICHolderWidget( TQWidget *w );
virtual TQWidgetList *icHolderWidgets();
@@ -314,7 +314,7 @@ public slots:
void closeAllWindows();
void aboutTQt();
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
protected:
void setArgs(int, char **);
#endif
@@ -328,12 +328,12 @@ private:
void init_precmdline();
void process_cmdline( int* argcptr, char ** argv );
bool internalNotify( TQObject *, TQEvent * );
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
static TQWidget *findChildWidget( const TQWidget *p, const TQPoint &pos );
static TQWidget *findWidget( const TQObjectList&, const TQPoint &, bool rec );
#endif
-#if defined(Q_WS_MAC)
+#if defined(TQ_WS_MAC)
bool do_mouse_down(Point *, bool *);
static TQMAC_PASCAL OSStatus globalEventProcessor(EventHandlerCallRef, EventRef, void *);
static TQMAC_PASCAL OSStatus globalAppleEventProcessor(const AppleEvent *, AppleEvent *, long);
@@ -348,7 +348,7 @@ private:
friend void tqt_init(int *, char **, TQApplication::Type);
#endif
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
private slots:
void postIMEvent( TQObject *receiver, TQIMEvent *event );
#endif
@@ -406,7 +406,7 @@ private:
static TQString* session_key;
bool is_session_restored;
#endif
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
#if !defined (TQT_NO_STYLE)
static void x11_initialize_style();
#endif
@@ -442,10 +442,10 @@ private:
friend class TQTranslator;
friend class TQEventLoop;
friend TQ_EXPORT void tqt_ucm_initialize( TQApplication * );
-#if defined(Q_WS_WIN)
+#if defined(TQ_WS_WIN)
friend bool qt_sendSpontaneousEvent( TQObject*, TQEvent* );
#endif
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
friend class TQInputContext;
#endif
private: // Disabled copy constructor and operator=
@@ -475,7 +475,7 @@ inline char **TQApplication::argv() const
return app_argv;
}
-#if defined(Q_WS_QWS)
+#if defined(TQ_WS_QWS)
inline void TQApplication::setArgs(int c, char **v)
{
app_argc = c;