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.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index 68e81d0f..4b2684f1 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -60,7 +60,7 @@
#include "ntqmessagebox.h"
#include "ntqdir.h"
#include "ntqfileinfo.h"
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
#include "qinputcontext_p.h"
#endif
#include "qfontdata_p.h"
@@ -319,7 +319,7 @@
void tqt_init( int *, char **, TQApplication::Type );
void tqt_cleanup();
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
void tqt_init( Display* dpy, TQt::HANDLE, TQt::HANDLE );
void tqt_init( int *, char **, Display* dpy, TQt::HANDLE, TQt::HANDLE );
#endif
@@ -705,7 +705,7 @@ void TQApplication::process_cmdline( int* argcptr, char ** argv )
}
if(j < argc) {
-#ifdef Q_WS_MACX
+#ifdef TQ_WS_MACX
static char* empty = "\0";
argv[j] = empty;
#else
@@ -816,7 +816,7 @@ TQApplication::TQApplication( int &argc, char **argv )
\code
int main( int argc, char **argv )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
bool useGUI = getenv( "DISPLAY" ) != 0;
#else
bool useGUI = TRUE;
@@ -864,7 +864,7 @@ TQApplication::TQApplication( int &argc, char **argv, bool GUIenabled )
\code
int main( int argc, char **argv )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
bool useGUI = getenv( "DISPLAY" ) != 0;
#else
bool useGUI = TRUE;
@@ -943,7 +943,7 @@ TQApplication::Type TQApplication::type() const
return tqt_appType;
}
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
/*!
Create an application, given an already open display \a dpy. If \a
visual and \a colormap are non-zero, the application will use those as
@@ -1033,7 +1033,7 @@ TQApplication::TQApplication(Display *dpy, int argc, char **argv,
}
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
#ifdef TQT_THREAD_SUPPORT
TQThread* TQApplication::guiThread() {
@@ -1366,7 +1366,7 @@ TQStyle& TQApplication::style()
if ( !tqt_is_gui_used )
tqFatal( "No style available in non-gui applications!" );
-#if defined(Q_WS_X11)
+#if defined(TQ_WS_X11)
if(!qt_style_override)
x11_initialize_style(); // run-time search for default style
#endif
@@ -1379,22 +1379,22 @@ TQStyle& TQApplication::style()
delete qt_style_override;
qt_style_override = 0;
} else {
-# if defined(Q_WS_WIN) && defined(Q_OS_TEMP)
+# if defined(TQ_WS_WIN) && defined(Q_OS_TEMP)
style = "PocketPC";
-#elif defined(Q_WS_WIN)
+#elif defined(TQ_WS_WIN)
if ( qWinVersion() >= TQt::WV_XP && qWinVersion() < TQt::WV_NT_based )
style = "WindowsXP";
else
style = "Windows"; // default styles for Windows
-#elif defined(Q_WS_X11) && defined(Q_OS_SOLARIS)
+#elif defined(TQ_WS_X11) && defined(Q_OS_SOLARIS)
style = "CDE"; // default style for X11 on Solaris
-#elif defined(Q_WS_X11) && defined(Q_OS_IRIX)
+#elif defined(TQ_WS_X11) && defined(Q_OS_IRIX)
style = "SGI"; // default style for X11 on IRIX
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
style = "Motif"; // default style for X11
-#elif defined(Q_WS_MAC)
+#elif defined(TQ_WS_MAC)
style = "Macintosh"; // default style for all Mac's
-#elif defined(Q_WS_QWS)
+#elif defined(TQ_WS_QWS)
style = "Compact"; // default style for small devices
#endif
}
@@ -1454,9 +1454,9 @@ void TQApplication::setStyle( TQStyle *style )
{
TQStyle* old = app_style;
app_style = style;
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
tqt_explicit_app_style = TRUE;
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
if ( startingUp() ) {
delete old;
@@ -1530,9 +1530,9 @@ void TQApplication::setStyle( TQStyle *style )
*/
TQStyle* TQApplication::setStyle( const TQString& style )
{
-#ifdef Q_WS_X11
+#ifdef TQ_WS_X11
tqt_explicit_app_style = TRUE;
-#endif // Q_WS_X11
+#endif // TQ_WS_X11
if ( startingUp() ) {
if(qt_style_override)
@@ -1695,12 +1695,12 @@ void TQApplication::setGlobalStrut( const TQSize& strut )
app_strut = strut;
}
-#if defined( Q_WS_WIN ) || defined( Q_WS_MAC )
+#if defined( TQ_WS_WIN ) || defined( TQ_WS_MAC )
extern const char *tqAppFileName();
#endif
#ifndef TQT_NO_DIR
-#ifndef Q_WS_WIN
+#ifndef TQ_WS_WIN
static TQString resolveSymlinks( const TQString& path, int depth = 0 )
{
bool foundLink = FALSE;
@@ -1744,7 +1744,7 @@ static TQString resolveSymlinks( const TQString& path, int depth = 0 )
return path;
}
}
-#endif // Q_WS_WIN
+#endif // TQ_WS_WIN
/*!
Returns the directory that contains the application executable.
@@ -1783,7 +1783,7 @@ TQString TQApplication::applicationDirPath()
*/
TQString TQApplication::applicationFilePath()
{
-#if defined( Q_WS_WIN )
+#if defined( TQ_WS_WIN )
TQFileInfo filePath;
QT_WA({
WCHAR module_name[256];
@@ -1796,7 +1796,7 @@ TQString TQApplication::applicationFilePath()
});
return filePath.filePath();
-#elif defined( Q_WS_MAC )
+#elif defined( TQ_WS_MAC )
return TQDir::cleanDirPath( TQFile::decodeName( tqAppFileName() ) );
#else
TQString argv0 = TQFile::decodeName( argv()[0] );
@@ -1875,7 +1875,7 @@ TQStringList TQApplication::libraryPaths()
app_libpaths = new TQStringList;
TQString installPathPlugins = TQString::fromLocal8Bit(tqInstallPathPlugins());
if ( TQFile::exists(installPathPlugins) ) {
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
installPathPlugins.replace('\\', '/');
#endif
app_libpaths->append(installPathPlugins);
@@ -1884,7 +1884,7 @@ TQStringList TQApplication::libraryPaths()
TQString app_location;
if (tqApp)
app_location = tqApp->applicationFilePath();
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
else {
app_location = TQString(tqAppFileName());
app_location.replace('\\', '/');
@@ -3105,7 +3105,7 @@ bool TQApplication::hasPendingEvents()
return eventLoop()->hasPendingEvents();
}
-#if !defined(Q_WS_X11)
+#if !defined(TQ_WS_X11)
// The doc and X implementation of these functions is in qapplication_x11.cpp
@@ -3908,9 +3908,9 @@ void TQApplication::setActiveWindow( TQWidget* act )
TQFocusEvent out( TQEvent::FocusOut );
TQWidget *tmp = focus_widget;
focus_widget = 0;
-#ifdef Q_WS_WIN
+#ifdef TQ_WS_WIN
TQInputContext::accept( tmp );
-#elif defined(Q_WS_X11)
+#elif defined(TQ_WS_X11)
tmp->unfocusInputContext();
#endif
TQApplication::sendSpontaneousEvent( tmp, &out );
@@ -4011,7 +4011,7 @@ TQ_EXPORT void tqt_dispatchEnterLeave( TQWidget* enter, TQWidget* leave ) {
}
-#ifdef Q_WS_MACX
+#ifdef TQ_WS_MACX
extern TQWidget *tqt_tryModalHelperMac( TQWidget * top ); //qapplication_mac.cpp
#endif
@@ -4028,7 +4028,7 @@ TQ_EXPORT bool tqt_tryModalHelper( TQWidget *widget, TQWidget **rettop ) {
if ( tqApp->activePopupWidget() )
return TRUE;
-#ifdef Q_WS_MACX
+#ifdef TQ_WS_MACX
top = tqt_tryModalHelperMac( top );
if ( rettop ) *rettop = top;
#endif
@@ -4808,7 +4808,7 @@ void MyApplication::commitData( TQSessionManager& sm ) {
Stubbed session management support
*****************************************************************************/
#ifndef TQT_NO_SESSIONMANAGER
-#if defined( TQT_NO_SM_SUPPORT ) || defined( Q_WS_WIN ) || defined( Q_WS_MAC ) || defined( Q_WS_QWS )
+#if defined( TQT_NO_SM_SUPPORT ) || defined( TQ_WS_WIN ) || defined( TQ_WS_MAC ) || defined( TQ_WS_QWS )
class TQSessionManagerData
{
@@ -4826,7 +4826,7 @@ TQSessionManager::TQSessionManager( TQApplication * app, TQString &id, TQString
{
qt_session_manager_self = this;
d = new TQSessionManagerData;
-#if defined(Q_WS_WIN) && !defined(Q_OS_TEMP)
+#if defined(TQ_WS_WIN) && !defined(Q_OS_TEMP)
wchar_t guidstr[40];
GUID guid;
CoCreateGuid( &guid );
@@ -4858,14 +4858,14 @@ TQString TQSessionManager::sessionKey() const
}
-#if defined(Q_WS_X11) || defined(Q_WS_MAC)
+#if defined(TQ_WS_X11) || defined(TQ_WS_MAC)
void* TQSessionManager::handle() const
{
return 0;
}
#endif
-#if !defined(Q_WS_WIN)
+#if !defined(TQ_WS_WIN)
bool TQSessionManager::allowsInteraction()
{
return TRUE;