summaryrefslogtreecommitdiffstats
path: root/src/kernel/qapplication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qapplication.cpp')
-rw-r--r--src/kernel/qapplication.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index 149048905..8cc05071f 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -351,8 +351,8 @@ int TQApplication::mouse_double_click_time = 400; // mouse dbl click limit
int TQApplication::wheel_scroll_lines = 3; // number of lines to scroll
#endif
bool qt_is_gui_used;
-bool Q_EXPORT qt_resolve_symlinks = TRUE;
-bool Q_EXPORT qt_tab_all_widgets = TRUE;
+bool Q_EXPORT tqt_resolve_symlinks = TRUE;
+bool Q_EXPORT tqt_tab_all_widgets = TRUE;
TQRect qt_maxWindowRect;
static int drag_time = 500;
static int drag_distance = 4;
@@ -377,7 +377,7 @@ int TQApplication::composedUnicode = 0;
TQMutex *TQApplication::qt_mutex = 0;
static TQMutex *postevent_mutex = 0;
static TQt::HANDLE qt_application_thread_id = 0;
-Q_EXPORT TQt::HANDLE qt_get_application_thread_id()
+Q_EXPORT TQt::HANDLE tqt_get_application_thread_id()
{
return qt_application_thread_id;
}
@@ -438,12 +438,12 @@ static TQVFuncList *postRList = 0; // list of post routines
void init_ptr()
{
global_ptr = new int[100]; // allocate data
- qAddPostRoutine( cleanup_ptr ); // delete later
+ tqAddPostRoutine( cleanup_ptr ); // delete later
}
\endcode
Note that for an application- or module-wide cleanup,
- qAddPostRoutine() is often not suitable. People have a tendency to
+ tqAddPostRoutine() is often not suitable. People have a tendency to
make such modules dynamically loaded, and then unload those modules
long before the TQApplication destructor is called, for example.
@@ -477,7 +477,7 @@ static TQVFuncList *postRList = 0; // list of post routines
to clean up the module's data at the exact right moment.
*/
-Q_EXPORT void qAddPostRoutine( TQtCleanUpFunction p)
+Q_EXPORT void tqAddPostRoutine( TQtCleanUpFunction p)
{
if ( !postRList ) {
postRList = new TQVFuncList;
@@ -487,7 +487,7 @@ Q_EXPORT void qAddPostRoutine( TQtCleanUpFunction p)
}
-Q_EXPORT void qRemovePostRoutine( TQtCleanUpFunction p )
+Q_EXPORT void tqRemovePostRoutine( TQtCleanUpFunction p )
{
if ( !postRList ) return;
TQVFuncList::Iterator it = postRList->begin();
@@ -862,7 +862,7 @@ TQApplication::TQApplication( Display* dpy, HANDLE visual, HANDLE colormap )
if ( ! dpy ) {
#ifdef QT_CHECK_STATE
- qWarning( "TQApplication: invalid Display* argument." );
+ tqWarning( "TQApplication: invalid Display* argument." );
#endif // QT_CHECK_STATE
qt_init( &aargc, aargv, GuiClient );
@@ -903,7 +903,7 @@ TQApplication::TQApplication(Display *dpy, int argc, char **argv,
if ( ! dpy ) {
#ifdef QT_CHECK_STATE
- qWarning( "TQApplication: invalid Display* argument." );
+ tqWarning( "TQApplication: invalid Display* argument." );
#endif // QT_CHECK_STATE
qt_init( &argc, argv, GuiClient );
@@ -933,7 +933,7 @@ void TQApplication::init_precmdline()
#endif
#if defined(QT_CHECK_STATE)
if ( tqApp )
- qWarning( "TQApplication: There should be max one application object" );
+ tqWarning( "TQApplication: There should be max one application object" );
#endif
tqApp = (TQApplication*)this;
}
@@ -1106,7 +1106,7 @@ TQApplication::~TQApplication()
is_app_running = FALSE;
if ( widgetCount ) {
- qDebug( "Widgets left: %i Max widgets: %i \n", TQWidget::instanceCounter, TQWidget::maxInstances );
+ tqDebug( "Widgets left: %i Max widgets: %i \n", TQWidget::instanceCounter, TQWidget::maxInstances );
}
#ifndef QT_NO_SESSIONMANAGER
delete session_manager;
@@ -1214,7 +1214,7 @@ TQStyle& TQApplication::style()
if ( app_style )
return *app_style;
if ( !qt_is_gui_used )
- qFatal( "No style available in non-gui applications!" );
+ tqFatal( "No style available in non-gui applications!" );
#if defined(Q_WS_X11)
if(!qt_style_override)
@@ -1262,7 +1262,7 @@ TQStyle& TQApplication::style()
&& !(app_style = TQStyleFactory::create( TQStyleFactory::keys()[0] ) )
#endif
)
- qFatal( "No %s style available!", style.latin1() );
+ tqFatal( "No %s style available!", style.latin1() );
}
TQPalette app_pal_copy ( *app_pal );
@@ -1500,7 +1500,7 @@ void TQApplication::setColorSpec( int spec )
{
#if defined(QT_CHECK_STATE)
if ( tqApp ) {
- qWarning( "TQApplication::setColorSpec: This function must be "
+ tqWarning( "TQApplication::setColorSpec: This function must be "
"called before the TQApplication object is created" );
}
#endif
@@ -1723,7 +1723,7 @@ TQStringList TQApplication::libraryPaths()
{
if ( !app_libpaths ) {
app_libpaths = new TQStringList;
- TQString installPathPlugins = TQString::fromLocal8Bit(qInstallPathPlugins());
+ TQString installPathPlugins = TQString::fromLocal8Bit(tqInstallPathPlugins());
if ( TQFile::exists(installPathPlugins) ) {
#ifdef Q_WS_WIN
installPathPlugins.replace('\\', '/');
@@ -1742,7 +1742,7 @@ TQStringList TQApplication::libraryPaths()
#endif
if (!app_location.isEmpty()) {
app_location.truncate( app_location.findRev( '/' ) );
- if ( app_location != qInstallPathPlugins() && TQFile::exists( app_location ) )
+ if ( app_location != tqInstallPathPlugins() && TQFile::exists( app_location ) )
app_libpaths->append( app_location );
}
}
@@ -1822,7 +1822,7 @@ TQPalette TQApplication::palette(const TQWidget* w)
{
#if defined(QT_CHECK_STATE)
if ( !tqApp )
- qWarning( "TQApplication::palette: This function can only be "
+ tqWarning( "TQApplication::palette: This function can only be "
"called after the TQApplication object has been created" );
#endif
if ( !app_pal ) {
@@ -2319,7 +2319,7 @@ bool TQApplication::notify( TQObject *receiver, TQEvent *e )
if ( receiver == 0 ) { // serious error
#if defined(QT_CHECK_NULL)
- qWarning( "TQApplication::notify: Unexpected null receiver" );
+ tqWarning( "TQApplication::notify: Unexpected null receiver" );
#endif
return FALSE;
}
@@ -3098,7 +3098,7 @@ void TQApplication::postEvent( TQObject *receiver, TQEvent *event )
{
if ( receiver == 0 ) {
#if defined(QT_CHECK_NULL)
- qWarning( "TQApplication::postEvent: Unexpected null receiver" );
+ tqWarning( "TQApplication::postEvent: Unexpected null receiver" );
#endif
delete event;
return;
@@ -3412,7 +3412,7 @@ void TQApplication::removePostedEvent( TQEvent * event )
if ( !globalPostedEvents ) {
#if defined(QT_DEBUG)
- qDebug( "TQApplication::removePostedEvent: %p %d is posted: impossible",
+ tqDebug( "TQApplication::removePostedEvent: %p %d is posted: impossible",
(void*)event, event->type() );
return;
#endif
@@ -3493,7 +3493,7 @@ void TQApplication::removePostedEvent( TQEvent * event )
n = "<other>";
break;
}
- qWarning("TQEvent: Warning: %s event deleted while posted to %s %s",
+ tqWarning("TQEvent: Warning: %s event deleted while posted to %s %s",
n,
pe->receiver ? pe->receiver->className() : "null",
pe->receiver ? pe->receiver->name() : "object" );