From 27917305452f2a55ae3be74e83b8a724248ec43f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 20:43:47 -0600 Subject: Split out qt3 and tqt3 files --- qtinterface/interface_qt3/tqapplication.cpp | 70 +++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 qtinterface/interface_qt3/tqapplication.cpp (limited to 'qtinterface/interface_qt3/tqapplication.cpp') diff --git a/qtinterface/interface_qt3/tqapplication.cpp b/qtinterface/interface_qt3/tqapplication.cpp new file mode 100644 index 0000000..26a20d6 --- /dev/null +++ b/qtinterface/interface_qt3/tqapplication.cpp @@ -0,0 +1,70 @@ +/* + +Copyright (C) 2010 Timothy Pearson + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public License +along with this library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +Boston, MA 02110-1301, USA. + +*/ + +#include +#include + +#include + +#ifdef USE_QT3 +extern Time qt_x_time; +extern Time qt_x_user_time; + +void set_tqt_x_time(unsigned long x) { + qt_x_time = x; +} + +unsigned long get_tqt_x_time(void) { + return qt_x_time; +} + +void set_tqt_x_user_time(unsigned long x) { + qt_x_user_time = x; +} + +unsigned long get_tqt_x_user_time(void) { + return qt_x_user_time; +} +#endif + +#ifdef USE_QT4 + +// void QApplication::processOneEvent() +// { +// #warning "!!! WARNING: QApplication::processOneEvent() UNIMPLEMENTED !!!" +// } + +TQEventLoop *QApplication::eventLoop() +{ + return TQEventLoop::eventLoop(); +} + +void QApplication::installTranslator( QTranslator * mf ) +{ + #warning "!!! WARNING: QApplication::installTranslator() UNIMPLEMENTED !!!" +} + +void QApplication::removeTranslator( QTranslator * mf ) +{ + #warning "!!! WARNING: QApplication::removeTranslator() UNIMPLEMENTED !!!" +} + +#endif // USE_QT4 -- cgit v1.2.1