summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kernel/tqapplication.h6
-rw-r--r--src/kernel/tqapplication_x11.cpp21
2 files changed, 27 insertions, 0 deletions
diff --git a/src/kernel/tqapplication.h b/src/kernel/tqapplication.h
index 0e884583e..289df5abf 100644
--- a/src/kernel/tqapplication.h
+++ b/src/kernel/tqapplication.h
@@ -67,6 +67,12 @@ class TQThread;
class TQApplication;
extern TQ_EXPORT TQApplication *tqApp; // global application object
+// X11/X.h defines Time as unsigned long
+TQ_EXPORT void set_tqt_x_time(unsigned long x);
+TQ_EXPORT void set_tqt_x_user_time(unsigned long x);
+TQ_EXPORT unsigned long get_tqt_x_time(void);
+TQ_EXPORT unsigned long get_tqt_x_user_time(void);
+
class TQ_EXPORT TQApplication : public TQObject
{
diff --git a/src/kernel/tqapplication_x11.cpp b/src/kernel/tqapplication_x11.cpp
index 6744532f4..f180f8b9a 100644
--- a/src/kernel/tqapplication_x11.cpp
+++ b/src/kernel/tqapplication_x11.cpp
@@ -435,6 +435,27 @@ TQ_EXPORT TQTextCodec * qt_input_mapper = 0;
TQ_EXPORT Time tqt_x_time = CurrentTime;
TQ_EXPORT Time tqt_x_user_time = CurrentTime;
+
+void set_tqt_x_time(unsigned long x)
+{
+ tqt_x_time = x;
+}
+
+unsigned long get_tqt_x_time(void)
+{
+ return tqt_x_time;
+}
+
+void set_tqt_x_user_time(unsigned long x)
+{
+ tqt_x_user_time = x;
+}
+
+unsigned long get_tqt_x_user_time(void)
+{
+ return tqt_x_user_time;
+}
+
extern bool qt_check_clipboard_sentinel(); //def in tqclipboard_x11.cpp
extern bool qt_check_selection_sentinel(); //def in tqclipboard_x11.cpp