summaryrefslogtreecommitdiffstats
path: root/src/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:24:30 -0600
commita830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (patch)
tree3910055c634e2ca44eacd2c892118634df9b3597 /src/kernel/qapplication.cpp
parentb0b53cc84f215df9b9bcce77253a6b7a9d300986 (diff)
downloadqt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.tar.gz
qt3-a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0.zip
Rename additional global TQt functions
Diffstat (limited to 'src/kernel/qapplication.cpp')
-rw-r--r--src/kernel/qapplication.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index 7296f4c..66ab1dd 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -438,12 +438,12 @@ static QVFuncList *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 QApplication destructor is called, for example.
@@ -477,7 +477,7 @@ static QVFuncList *postRList = 0; // list of post routines
to clean up the module's data at the exact right moment.
*/
-Q_EXPORT void qAddPostRoutine( QtCleanUpFunction p)
+Q_EXPORT void tqAddPostRoutine( QtCleanUpFunction p)
{
if ( !postRList ) {
postRList = new QVFuncList;
@@ -487,7 +487,7 @@ Q_EXPORT void qAddPostRoutine( QtCleanUpFunction p)
}
-Q_EXPORT void qRemovePostRoutine( QtCleanUpFunction p )
+Q_EXPORT void tqRemovePostRoutine( QtCleanUpFunction p )
{
if ( !postRList ) return;
QVFuncList::Iterator it = postRList->begin();
@@ -862,7 +862,7 @@ QApplication::QApplication( Display* dpy, HANDLE visual, HANDLE colormap )
if ( ! dpy ) {
#ifdef QT_CHECK_STATE
- qWarning( "QApplication: invalid Display* argument." );
+ tqWarning( "QApplication: invalid Display* argument." );
#endif // QT_CHECK_STATE
qt_init( &aargc, aargv, GuiClient );
@@ -903,7 +903,7 @@ QApplication::QApplication(Display *dpy, int argc, char **argv,
if ( ! dpy ) {
#ifdef QT_CHECK_STATE
- qWarning( "QApplication: invalid Display* argument." );
+ tqWarning( "QApplication: invalid Display* argument." );
#endif // QT_CHECK_STATE
qt_init( &argc, argv, GuiClient );
@@ -933,7 +933,7 @@ void QApplication::init_precmdline()
#endif
#if defined(QT_CHECK_STATE)
if ( qApp )
- qWarning( "QApplication: There should be max one application object" );
+ tqWarning( "QApplication: There should be max one application object" );
#endif
qApp = (QApplication*)this;
}
@@ -1106,7 +1106,7 @@ QApplication::~QApplication()
is_app_running = FALSE;
if ( widgetCount ) {
- qDebug( "Widgets left: %i Max widgets: %i \n", QWidget::instanceCounter, QWidget::maxInstances );
+ tqDebug( "Widgets left: %i Max widgets: %i \n", QWidget::instanceCounter, QWidget::maxInstances );
}
#ifndef QT_NO_SESSIONMANAGER
delete session_manager;
@@ -1214,7 +1214,7 @@ QStyle& QApplication::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 @@ QStyle& QApplication::style()
&& !(app_style = QStyleFactory::create( QStyleFactory::keys()[0] ) )
#endif
)
- qFatal( "No %s style available!", style.latin1() );
+ tqFatal( "No %s style available!", style.latin1() );
}
QPalette app_pal_copy ( *app_pal );
@@ -1500,7 +1500,7 @@ void QApplication::setColorSpec( int spec )
{
#if defined(QT_CHECK_STATE)
if ( qApp ) {
- qWarning( "QApplication::setColorSpec: This function must be "
+ tqWarning( "QApplication::setColorSpec: This function must be "
"called before the QApplication object is created" );
}
#endif
@@ -1723,7 +1723,7 @@ QStringList QApplication::libraryPaths()
{
if ( !app_libpaths ) {
app_libpaths = new QStringList;
- QString installPathPlugins = QString::fromLocal8Bit(qInstallPathPlugins());
+ QString installPathPlugins = QString::fromLocal8Bit(tqInstallPathPlugins());
if ( QFile::exists(installPathPlugins) ) {
#ifdef Q_WS_WIN
installPathPlugins.replace('\\', '/');
@@ -1742,7 +1742,7 @@ QStringList QApplication::libraryPaths()
#endif
if (!app_location.isEmpty()) {
app_location.truncate( app_location.findRev( '/' ) );
- if ( app_location != qInstallPathPlugins() && QFile::exists( app_location ) )
+ if ( app_location != tqInstallPathPlugins() && QFile::exists( app_location ) )
app_libpaths->append( app_location );
}
}
@@ -1822,7 +1822,7 @@ QPalette QApplication::palette(const QWidget* w)
{
#if defined(QT_CHECK_STATE)
if ( !qApp )
- qWarning( "QApplication::palette: This function can only be "
+ tqWarning( "QApplication::palette: This function can only be "
"called after the QApplication object has been created" );
#endif
if ( !app_pal ) {
@@ -2319,7 +2319,7 @@ bool QApplication::notify( QObject *receiver, QEvent *e )
if ( receiver == 0 ) { // serious error
#if defined(QT_CHECK_NULL)
- qWarning( "QApplication::notify: Unexpected null receiver" );
+ tqWarning( "QApplication::notify: Unexpected null receiver" );
#endif
return FALSE;
}
@@ -3098,7 +3098,7 @@ void QApplication::postEvent( QObject *receiver, QEvent *event )
{
if ( receiver == 0 ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QApplication::postEvent: Unexpected null receiver" );
+ tqWarning( "QApplication::postEvent: Unexpected null receiver" );
#endif
delete event;
return;
@@ -3412,7 +3412,7 @@ void QApplication::removePostedEvent( QEvent * event )
if ( !globalPostedEvents ) {
#if defined(QT_DEBUG)
- qDebug( "QApplication::removePostedEvent: %p %d is posted: impossible",
+ tqDebug( "QApplication::removePostedEvent: %p %d is posted: impossible",
(void*)event, event->type() );
return;
#endif
@@ -3493,7 +3493,7 @@ void QApplication::removePostedEvent( QEvent * event )
n = "<other>";
break;
}
- qWarning("QEvent: Warning: %s event deleted while posted to %s %s",
+ tqWarning("QEvent: Warning: %s event deleted while posted to %s %s",
n,
pe->receiver ? pe->receiver->className() : "null",
pe->receiver ? pe->receiver->name() : "object" );