Move time related functions from tqtinterface/tqapplication.{h,cpp}

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/199/head
Michele Calgaro 1 month ago
parent 397b7afa8e
commit fed2da8d26
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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
{

@ -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

Loading…
Cancel
Save