summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-15 13:11:01 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-22 10:06:09 +0900
commitfed2da8d26b7261a6f86a5d357aa30f9d3a615e7 (patch)
treea7d993cfd981a0beaf2577e4cafb52b8878e5af8 /src
parent397b7afa8e3f32268c4454bf4783ac2a5a799658 (diff)
downloadtqt3-fed2da8d26b7261a6f86a5d357aa30f9d3a615e7.tar.gz
tqt3-fed2da8d26b7261a6f86a5d357aa30f9d3a615e7.zip
Move time related functions from tqtinterface/tqapplication.{h,cpp}
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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