summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dialogs/qcolordialog.cpp2
-rw-r--r--src/dialogs/qdialog.cpp4
-rw-r--r--src/dialogs/qwizard.cpp2
-rw-r--r--src/kernel/ntqapplication.h6
-rw-r--r--src/kernel/ntqmetaobject.h6
-rw-r--r--src/kernel/ntqobjectdefs.h20
-rw-r--r--src/kernel/ntqpaintdevice.h4
-rw-r--r--src/kernel/qabstractlayout.cpp4
-rw-r--r--src/kernel/qaccel.cpp8
-rw-r--r--src/kernel/qapplication.cpp200
-rw-r--r--src/kernel/qapplication_p.h12
-rw-r--r--src/kernel/qapplication_x11.cpp152
-rw-r--r--src/kernel/qasyncimageio.cpp16
-rw-r--r--src/kernel/qclipboard_x11.cpp8
-rw-r--r--src/kernel/qdnd_x11.cpp4
-rw-r--r--src/kernel/qeventloop_x11.cpp12
-rw-r--r--src/kernel/qimage.cpp24
-rw-r--r--src/kernel/qjpegio.cpp8
-rw-r--r--src/kernel/qmetaobject.cpp30
-rw-r--r--src/kernel/qmime.cpp4
-rw-r--r--src/kernel/qobject.cpp24
-rw-r--r--src/kernel/qpixmap_x11.cpp6
-rw-r--r--src/kernel/qrichtext.cpp4
-rw-r--r--src/kernel/qstylesheet.cpp8
-rw-r--r--src/kernel/qwidget.cpp14
-rw-r--r--src/kernel/qwidget_x11.cpp16
-rw-r--r--src/moc/moc.y36
-rw-r--r--src/moc/moc_yacc.cpp36
-rw-r--r--src/styles/qcommonstyle.cpp4
-rw-r--r--src/styles/qmotifplusstyle.cpp16
-rw-r--r--src/styles/qsgistyle.cpp30
-rw-r--r--src/styles/qwindowsstyle.cpp18
-rw-r--r--src/table/qtable.cpp28
-rw-r--r--src/tools/qglobal.cpp4
-rw-r--r--src/widgets/qaction.cpp36
-rw-r--r--src/widgets/qbutton.cpp8
-rw-r--r--src/widgets/qbuttongroup.cpp22
-rw-r--r--src/widgets/qdatetimeedit.cpp20
-rw-r--r--src/widgets/qdockarea.cpp12
-rw-r--r--src/widgets/qdockwindow.cpp34
-rw-r--r--src/widgets/qeffects.cpp4
-rw-r--r--src/widgets/qgroupbox.cpp4
-rw-r--r--src/widgets/qlistview.cpp2
-rw-r--r--src/widgets/qmainwindow.cpp34
-rw-r--r--src/widgets/qmenubar.cpp10
-rw-r--r--src/widgets/qmenudata.cpp6
-rw-r--r--src/widgets/qpushbutton.cpp10
-rw-r--r--src/widgets/qradiobutton.cpp2
-rw-r--r--src/widgets/qscrollview.cpp2
-rw-r--r--src/widgets/qsplashscreen.cpp4
-rw-r--r--src/widgets/qsplitter.cpp2
-rw-r--r--src/widgets/qtabbar.cpp2
-rw-r--r--src/widgets/qtabwidget.cpp2
-rw-r--r--src/widgets/qtextedit.cpp4
-rw-r--r--src/widgets/qtitlebar.cpp4
-rw-r--r--src/widgets/qtoolbar.cpp10
-rw-r--r--src/widgets/qtoolbox.cpp2
-rw-r--r--src/widgets/qtoolbutton.cpp4
-rw-r--r--src/widgets/qwidgetplugin.cpp28
-rw-r--r--src/widgets/qwidgetresizehandler.cpp6
-rw-r--r--src/workspace/qworkspace.cpp40
61 files changed, 542 insertions, 542 deletions
diff --git a/src/dialogs/qcolordialog.cpp b/src/dialogs/qcolordialog.cpp
index fada7554..a4863f86 100644
--- a/src/dialogs/qcolordialog.cpp
+++ b/src/dialogs/qcolordialog.cpp
@@ -327,7 +327,7 @@ void TQWellArray::setSelected( int row, int col )
if ( row >= 0 )
emit selected( row, col );
- if ( isVisible() && ::qt_cast<TQPopupMenu*>(parentWidget()) )
+ if ( isVisible() && ::tqt_cast<TQPopupMenu*>(parentWidget()) )
parentWidget()->close();
}
diff --git a/src/dialogs/qdialog.cpp b/src/dialogs/qdialog.cpp
index 90974de0..4f40ded2 100644
--- a/src/dialogs/qdialog.cpp
+++ b/src/dialogs/qdialog.cpp
@@ -744,7 +744,7 @@ void TQDialog::show()
TQWidget *first = fd->next(); // Get first main widget
if ( d->mainDef &&
first != d->mainDef &&
- ::qt_cast<TQPushButton*>(first) )
+ ::tqt_cast<TQPushButton*>(first) )
d->mainDef->setFocus();
}
@@ -759,7 +759,7 @@ void TQDialog::show()
TQWidget *candidate = home;
Q_ASSERT( candidate == fw );
do {
- TQPushButton *pb = ::qt_cast<TQPushButton*>(candidate);
+ TQPushButton *pb = ::tqt_cast<TQPushButton*>(candidate);
if ( pb && pb->autoDefault() ) {
pb->setDefault( TRUE );
break;
diff --git a/src/dialogs/qwizard.cpp b/src/dialogs/qwizard.cpp
index 30720e83..a11094a6 100644
--- a/src/dialogs/qwizard.cpp
+++ b/src/dialogs/qwizard.cpp
@@ -446,7 +446,7 @@ void TQWizard::help()
return;
#if 0
- TQWizardPage *wpage = ::qt_cast<TQWizardPage*>(page);
+ TQWizardPage *wpage = ::tqt_cast<TQWizardPage*>(page);
if ( wpage )
emit wpage->helpClicked();
#endif
diff --git a/src/kernel/ntqapplication.h b/src/kernel/ntqapplication.h
index 02c1993d..98a0ef0e 100644
--- a/src/kernel/ntqapplication.h
+++ b/src/kernel/ntqapplication.h
@@ -342,7 +342,7 @@ private:
friend void qt_mac_update_os_settings();
friend bool qt_set_socket_handler( int, int, TQObject *, bool);
friend void qt_mac_destroy_widget(TQWidget *);
- friend void qt_init(int *, char **, TQApplication::Type);
+ friend void tqt_init(int *, char **, TQApplication::Type);
#endif
#if defined(Q_WS_X11)
@@ -352,7 +352,7 @@ private slots:
private:
#ifdef QT_THREAD_SUPPORT
- static TQMutex *qt_mutex;
+ static TQMutex *tqt_mutex;
#endif // QT_THREAD_SUPPORT
int app_argc;
@@ -431,7 +431,7 @@ private:
friend class TQEvent;
friend class TQTranslator;
friend class TQEventLoop;
- friend Q_EXPORT void qt_ucm_initialize( TQApplication * );
+ friend Q_EXPORT void tqt_ucm_initialize( TQApplication * );
#if defined(Q_WS_WIN)
friend bool qt_sendSpontaneousEvent( TQObject*, TQEvent* );
#endif
diff --git a/src/kernel/ntqmetaobject.h b/src/kernel/ntqmetaobject.h
index c8289a1d..6c8fb094 100644
--- a/src/kernel/ntqmetaobject.h
+++ b/src/kernel/ntqmetaobject.h
@@ -157,7 +157,7 @@ public:
const TQMetaData * const signal_data, int n_signals,
const TQMetaProperty *const prop_data, int n_props,
const TQMetaEnum *const enum_data, int n_enums,
- bool (*qt_static_property)(TQObject*, int, int, TQVariant*),
+ bool (*tqt_static_property)(TQObject*, int, int, TQVariant*),
const TQClassInfo *const class_info, int n_info );
#endif
@@ -218,7 +218,7 @@ public:
const TQMetaData *const, int,
const TQMetaProperty *const prop_data, int n_props,
const TQMetaEnum *const enum_data, int n_enums,
- bool (*qt_static_property)(TQObject*, int, int, TQVariant*),
+ bool (*tqt_static_property)(TQObject*, int, int, TQVariant*),
const TQClassInfo *const class_info, int n_info );
TQStrList enumeratorNames( bool super = FALSE ) const;
int numEnumerators( bool super = FALSE ) const;
@@ -245,7 +245,7 @@ private:
#ifndef QT_NO_PROPERTIES
int propertyoffset;
public:
- bool qt_static_property( TQObject* o, int id, int f, TQVariant* v);
+ bool tqt_static_property( TQObject* o, int id, int f, TQVariant* v);
private:
friend class TQMetaProperty;
#endif
diff --git a/src/kernel/ntqobjectdefs.h b/src/kernel/ntqobjectdefs.h
index d9b18722..4d4e794f 100644
--- a/src/kernel/ntqobjectdefs.h
+++ b/src/kernel/ntqobjectdefs.h
@@ -64,8 +64,8 @@
#ifndef QT_NO_PROPERTIES
# define QT_PROP_FUNCTIONS \
- virtual bool qt_property( int id, int f, TQVariant* v); \
- static bool qt_static_property( TQObject* , int, int, TQVariant* );
+ virtual bool tqt_property( int id, int f, TQVariant* v); \
+ static bool tqt_static_property( TQObject* , int, int, TQVariant* );
#else
# define QT_PROP_FUNCTIONS
#endif
@@ -106,9 +106,9 @@ public: \
return staticMetaObject(); \
} \
virtual const char *className() const; \
- virtual void* qt_cast( const char* ); \
- virtual bool qt_invoke( int, TQUObject* ); \
- virtual bool qt_emit( int, TQUObject* ); \
+ virtual void* tqt_cast( const char* ); \
+ virtual bool tqt_invoke( int, TQUObject* ); \
+ virtual bool tqt_emit( int, TQUObject* ); \
QT_PROP_FUNCTIONS \
static TQMetaObject* staticMetaObject(); \
TQObject* qObject() { return (TQObject*)this; } \
@@ -165,13 +165,13 @@ class TQObjectList;
class TQObjectListIt;
class TQMemberDict;
-Q_EXPORT void *qt_find_obj_child( TQObject *, const char *, const char * );
+Q_EXPORT void *tqt_find_obj_child( TQObject *, const char *, const char * );
#define Q_CHILD(parent,type,name) \
- ((type*)qt_find_obj_child(parent,#type,name))
+ ((type*)tqt_find_obj_child(parent,#type,name))
-Q_EXPORT void *qt_inheritedBy( TQMetaObject *super, const TQObject *cls );
+Q_EXPORT void *tqt_inheritedBy( TQMetaObject *super, const TQObject *cls );
template <typename T>
-Q_INLINE_TEMPLATES T qt_cast(const TQObject *object)
-{ return (T)qt_inheritedBy( ((T)0)->staticMetaObject(), object ); }
+Q_INLINE_TEMPLATES T tqt_cast(const TQObject *object)
+{ return (T)tqt_inheritedBy( ((T)0)->staticMetaObject(), object ); }
#endif // TQOBJECTDEFS_H
diff --git a/src/kernel/ntqpaintdevice.h b/src/kernel/ntqpaintdevice.h
index 8b54afb4..898f9178 100644
--- a/src/kernel/ntqpaintdevice.h
+++ b/src/kernel/ntqpaintdevice.h
@@ -254,8 +254,8 @@ protected:
int, int, int, int, TQt::RasterOp, bool );
#endif
#if defined(Q_WS_X11)
- friend void qt_init_internal( int *, char **, Display *, TQt::HANDLE, TQt::HANDLE );
- friend void qt_cleanup();
+ friend void tqt_init_internal( int *, char **, Display *, TQt::HANDLE, TQt::HANDLE );
+ friend void tqt_cleanup();
#endif
private:
diff --git a/src/kernel/qabstractlayout.cpp b/src/kernel/qabstractlayout.cpp
index b0f0e8be..69cee62f 100644
--- a/src/kernel/qabstractlayout.cpp
+++ b/src/kernel/qabstractlayout.cpp
@@ -771,7 +771,7 @@ TQWidget *TQLayout::mainWidget()
{
if ( !topLevel ) {
if ( parent() ) {
- TQLayout *parentLayout = ::qt_cast<TQLayout*>(parent());
+ TQLayout *parentLayout = ::tqt_cast<TQLayout*>(parent());
Q_ASSERT(parentLayout);
return parentLayout->mainWidget();
} else {
@@ -891,7 +891,7 @@ bool TQLayout::eventFilter( TQObject *o, TQEvent *e )
TQWidget *w = (TQWidget *)c->child();
if ( !w->isTopLevel() ) {
#if !defined(QT_NO_MENUBAR) && !defined(QT_NO_TOOLBAR)
- if ( ::qt_cast<TQMenuBar*>(w) && !::qt_cast<TQToolBar*>(w->parentWidget()) )
+ if ( ::tqt_cast<TQMenuBar*>(w) && !::tqt_cast<TQToolBar*>(w->parentWidget()) )
menubar = (TQMenuBar *)w;
else
#endif
diff --git a/src/kernel/qaccel.cpp b/src/kernel/qaccel.cpp
index 3f761991..3acc3da5 100644
--- a/src/kernel/qaccel.cpp
+++ b/src/kernel/qaccel.cpp
@@ -193,15 +193,15 @@ private:
};
TQAccelManager* TQAccelManager::self_ptr = 0;
-bool Q_EXPORT qt_tryAccelEvent( TQWidget* w, TQKeyEvent* e){
+bool Q_EXPORT tqt_tryAccelEvent( TQWidget* w, TQKeyEvent* e){
return TQAccelManager::self()->tryAccelEvent( w, e );
}
-bool Q_EXPORT qt_dispatchAccelEvent( TQWidget* w, TQKeyEvent* e){
+bool Q_EXPORT tqt_dispatchAccelEvent( TQWidget* w, TQKeyEvent* e){
return TQAccelManager::self()->dispatchAccelEvent( w, e );
}
-bool Q_EXPORT qt_tryComposeUnicode( TQWidget* w, TQKeyEvent* e){
+bool Q_EXPORT tqt_tryComposeUnicode( TQWidget* w, TQKeyEvent* e){
return TQAccelManager::self()->tryComposeUnicode( w, e );
}
@@ -229,7 +229,7 @@ bool TQAccelManager::correctSubWindow( TQWidget* w, TQAccelPrivate* d ) {
/* if we live in a floating dock window, keep our parent's
* accelerators working */
#ifndef QT_NO_MAINWINDOW
- if ( tlw->isDialog() && tlw->parentWidget() && ::qt_cast<TQDockWindow*>(tlw) )
+ if ( tlw->isDialog() && tlw->parentWidget() && ::tqt_cast<TQDockWindow*>(tlw) )
return tlw->parentWidget()->topLevelWidget() == wtlw;
if ( wtlw != tlw )
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index 8cc05071..3dc3db74 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -312,28 +312,28 @@
*/
/*
- The qt_init() and qt_cleanup() functions are implemented in the
+ The tqt_init() and tqt_cleanup() functions are implemented in the
qapplication_xyz.cpp file.
*/
-void qt_init( int *, char **, TQApplication::Type );
-void qt_cleanup();
+void tqt_init( int *, char **, TQApplication::Type );
+void tqt_cleanup();
#if defined(Q_WS_X11)
-void qt_init( Display* dpy, TQt::HANDLE, TQt::HANDLE );
+void tqt_init( Display* dpy, TQt::HANDLE, TQt::HANDLE );
#endif
-Q_EXPORT bool qt_tryModalHelper( TQWidget *widget, TQWidget **rettop );
+Q_EXPORT bool tqt_tryModalHelper( TQWidget *widget, TQWidget **rettop );
TQApplication *tqApp = 0; // global application object
TQStyle *TQApplication::app_style = 0; // default application style
-bool qt_explicit_app_style = FALSE; // style explicitly set by programmer
+bool tqt_explicit_app_style = FALSE; // style explicitly set by programmer
int TQApplication::app_cspec = TQApplication::NormalColor;
#ifndef QT_NO_PALETTE
TQPalette *TQApplication::app_pal = 0; // default application palette
#endif
TQFont *TQApplication::app_font = 0; // default application font
-bool qt_app_has_font = FALSE;
+bool tqt_app_has_font = FALSE;
#ifndef QT_NO_CURSOR
TQCursor *TQApplication::app_cursor = 0; // default application cursor
#endif
@@ -350,10 +350,10 @@ int TQApplication::mouse_double_click_time = 400; // mouse dbl click limit
#ifndef QT_NO_WHEELEVENT
int TQApplication::wheel_scroll_lines = 3; // number of lines to scroll
#endif
-bool qt_is_gui_used;
+bool tqt_is_gui_used;
bool Q_EXPORT tqt_resolve_symlinks = TRUE;
bool Q_EXPORT tqt_tab_all_widgets = TRUE;
-TQRect qt_maxWindowRect;
+TQRect tqt_maxWindowRect;
static int drag_time = 500;
static int drag_distance = 4;
static bool reverse_layout = FALSE;
@@ -366,7 +366,7 @@ bool TQApplication::animate_tooltip = FALSE;
bool TQApplication::fade_tooltip = FALSE;
bool TQApplication::animate_toolbox = FALSE;
bool TQApplication::widgetCount = FALSE;
-TQApplication::Type qt_appType=TQApplication::Tty;
+TQApplication::Type tqt_appType=TQApplication::Tty;
#ifndef QT_NO_COMPONENT
TQStringList *TQApplication::app_libpaths = 0;
#endif
@@ -374,29 +374,29 @@ bool TQApplication::metaComposeUnicode = FALSE;
int TQApplication::composedUnicode = 0;
#ifdef QT_THREAD_SUPPORT
-TQMutex *TQApplication::qt_mutex = 0;
+TQMutex *TQApplication::tqt_mutex = 0;
static TQMutex *postevent_mutex = 0;
-static TQt::HANDLE qt_application_thread_id = 0;
+static TQt::HANDLE tqt_application_thread_id = 0;
Q_EXPORT TQt::HANDLE tqt_get_application_thread_id()
{
- return qt_application_thread_id;
+ return tqt_application_thread_id;
}
#endif // QT_THREAD_SUPPORT
TQEventLoop *TQApplication::eventloop = 0; // application event loop
#ifndef QT_NO_ACCEL
-extern bool qt_dispatchAccelEvent( TQWidget*, TQKeyEvent* ); // def in qaccel.cpp
-extern bool qt_tryComposeUnicode( TQWidget*, TQKeyEvent* ); // def in qaccel.cpp
+extern bool tqt_dispatchAccelEvent( TQWidget*, TQKeyEvent* ); // def in qaccel.cpp
+extern bool tqt_tryComposeUnicode( TQWidget*, TQKeyEvent* ); // def in qaccel.cpp
#endif
#if defined(QT_TABLET_SUPPORT)
bool chokeMouse = FALSE;
#endif
-void qt_setMaxWindowRect(const TQRect& r)
+void tqt_setMaxWindowRect(const TQRect& r)
{
- qt_maxWindowRect = r;
+ tqt_maxWindowRect = r;
// Re-resize any maximized windows
TQWidgetList* l = TQApplication::topLevelWidgets();
if ( l ) {
@@ -510,11 +510,11 @@ TQString *TQApplication::session_key = 0; // ## session key. Should be a member
#endif
TQWidgetList *TQApplication::popupWidgets = 0; // has keyboard input focus
-TQDesktopWidget *qt_desktopWidget = 0; // root window widgets
+TQDesktopWidget *tqt_desktopWidget = 0; // root window widgets
#ifndef QT_NO_CLIPBOARD
-TQClipboard *qt_clipboard = 0; // global clipboard object
+TQClipboard *tqt_clipboard = 0; // global clipboard object
#endif
-TQWidgetList * qt_modal_stack=0; // stack of modal widgets
+TQWidgetList * tqt_modal_stack=0; // stack of modal widgets
// Definitions for posted events
struct TQPostEvent {
@@ -553,12 +553,12 @@ uint qGlobalPostedEventsCount()
static TQSingleCleanupHandler<TQPostEventList> qapp_cleanup_events;
#ifndef QT_NO_PALETTE
-TQPalette *qt_std_pal = 0;
+TQPalette *tqt_std_pal = 0;
-void qt_create_std_palette()
+void tqt_create_std_palette()
{
- if ( qt_std_pal )
- delete qt_std_pal;
+ if ( tqt_std_pal )
+ delete tqt_std_pal;
TQColor standardLightGray( 192, 192, 192 );
TQColor light( 255, 255, 255 );
@@ -572,10 +572,10 @@ void qt_create_std_palette()
TQColorGroup std_inact( TQt::black, standardLightGray,
light, dark, TQt::gray,
TQt::black, TQt::white );
- qt_std_pal = new TQPalette( std_act, std_dis, std_inact );
+ tqt_std_pal = new TQPalette( std_act, std_dis, std_inact );
}
-static void qt_fix_tooltips()
+static void tqt_fix_tooltips()
{
// No resources for this yet (unlike on Windows).
TQColorGroup cg( TQt::black, TQColor(255,255,220),
@@ -589,7 +589,7 @@ static void qt_fix_tooltips()
void TQApplication::process_cmdline( int* argcptr, char ** argv )
{
// process platform-indep command line
- if ( !qt_is_gui_used || !*argcptr)
+ if ( !tqt_is_gui_used || !*argcptr)
return;
int argc = *argcptr;
@@ -789,7 +789,7 @@ TQApplication::TQApplication( int &argc, char **argv, Type type )
construct( argc, argv, type );
}
-Q_EXPORT void qt_ucm_initialize( TQApplication *theApp )
+Q_EXPORT void tqt_ucm_initialize( TQApplication *theApp )
{
if ( tqApp )
return;
@@ -802,8 +802,8 @@ Q_EXPORT void qt_ucm_initialize( TQApplication *theApp )
void TQApplication::construct( int &argc, char **argv, Type type )
{
- qt_appType = type;
- qt_is_gui_used = (type != Tty);
+ tqt_appType = type;
+ tqt_is_gui_used = (type != Tty);
init_precmdline();
static const char *empty = "";
if ( argc == 0 || argv == 0 ) {
@@ -813,11 +813,11 @@ void TQApplication::construct( int &argc, char **argv, Type type )
app_argc = argc;
app_argv = argv;
- qt_init( &argc, argv, type ); // Must be called before initialize()
+ tqt_init( &argc, argv, type ); // Must be called before initialize()
process_cmdline( &argc, argv );
initialize( argc, argv );
- if ( qt_is_gui_used )
- qt_maxWindowRect = desktop()->rect();
+ if ( tqt_is_gui_used )
+ tqt_maxWindowRect = desktop()->rect();
if ( eventloop )
eventloop->appStartingUp();
}
@@ -828,7 +828,7 @@ void TQApplication::construct( int &argc, char **argv, Type type )
TQApplication::Type TQApplication::type() const
{
- return qt_appType;
+ return tqt_appType;
}
#if defined(Q_WS_X11)
@@ -854,9 +854,9 @@ TQApplication::TQApplication( Display* dpy, HANDLE visual, HANDLE colormap )
app_argc = aargc;
app_argv = aargv;
- qt_appType = GuiClient;
- qt_is_gui_used = TRUE;
- qt_appType = GuiClient;
+ tqt_appType = GuiClient;
+ tqt_is_gui_used = TRUE;
+ tqt_appType = GuiClient;
init_precmdline();
// ... no command line.
@@ -865,15 +865,15 @@ TQApplication::TQApplication( Display* dpy, HANDLE visual, HANDLE colormap )
tqWarning( "TQApplication: invalid Display* argument." );
#endif // QT_CHECK_STATE
- qt_init( &aargc, aargv, GuiClient );
+ tqt_init( &aargc, aargv, GuiClient );
} else {
- qt_init( dpy, visual, colormap );
+ tqt_init( dpy, visual, colormap );
}
initialize( aargc, aargv );
- if ( qt_is_gui_used )
- qt_maxWindowRect = desktop()->rect();
+ if ( tqt_is_gui_used )
+ tqt_maxWindowRect = desktop()->rect();
if ( eventloop )
eventloop->appStartingUp();
}
@@ -893,9 +893,9 @@ TQApplication::TQApplication( Display* dpy, HANDLE visual, HANDLE colormap )
TQApplication::TQApplication(Display *dpy, int argc, char **argv,
HANDLE visual, HANDLE colormap)
{
- qt_appType = GuiClient;
- qt_is_gui_used = TRUE;
- qt_appType = GuiClient;
+ tqt_appType = GuiClient;
+ tqt_is_gui_used = TRUE;
+ tqt_appType = GuiClient;
init_precmdline();
app_argc = argc;
@@ -906,16 +906,16 @@ TQApplication::TQApplication(Display *dpy, int argc, char **argv,
tqWarning( "TQApplication: invalid Display* argument." );
#endif // QT_CHECK_STATE
- qt_init( &argc, argv, GuiClient );
+ tqt_init( &argc, argv, GuiClient );
} else {
- qt_init(dpy, visual, colormap);
+ tqt_init(dpy, visual, colormap);
}
process_cmdline( &argc, argv );
initialize(argc, argv);
- if ( qt_is_gui_used )
- qt_maxWindowRect = desktop()->rect();
+ if ( tqt_is_gui_used )
+ tqt_maxWindowRect = desktop()->rect();
if ( eventloop )
eventloop->appStartingUp();
}
@@ -945,9 +945,9 @@ void TQApplication::init_precmdline()
void TQApplication::initialize( int argc, char **argv )
{
#ifdef QT_THREAD_SUPPORT
- qt_mutex = new TQMutex( TRUE );
+ tqt_mutex = new TQMutex( TRUE );
postevent_mutex = new TQMutex( TRUE );
- qt_application_thread_id = TQThread::currentThread();
+ tqt_application_thread_id = TQThread::currentThread();
#endif // QT_THREAD_SUPPORT
app_argc = argc;
@@ -1012,7 +1012,7 @@ TQWidget *TQApplication::activePopupWidget()
TQWidget *TQApplication::activeModalWidget()
{
- return qt_modal_stack ? qt_modal_stack->getFirst() : 0;
+ return tqt_modal_stack ? tqt_modal_stack->getFirst() : 0;
}
/*!
@@ -1024,9 +1024,9 @@ TQApplication::~TQApplication()
{
#ifndef QT_NO_CLIPBOARD
// flush clipboard contents
- if ( qt_clipboard ) {
+ if ( tqt_clipboard ) {
TQCustomEvent event( TQEvent::Clipboard );
- TQApplication::sendEvent( qt_clipboard, &event );
+ TQApplication::sendEvent( tqt_clipboard, &event );
}
#endif
@@ -1046,18 +1046,18 @@ TQApplication::~TQApplication()
TQObject *tipmanager = child( "toolTipManager", "TQTipManager", FALSE );
delete tipmanager;
- delete qt_desktopWidget;
- qt_desktopWidget = 0;
+ delete tqt_desktopWidget;
+ tqt_desktopWidget = 0;
is_app_closing = TRUE;
#ifndef QT_NO_CLIPBOARD
- delete qt_clipboard;
- qt_clipboard = 0;
+ delete tqt_clipboard;
+ tqt_clipboard = 0;
#endif
TQWidget::destroyMapper();
#ifndef QT_NO_PALETTE
- delete qt_std_pal;
- qt_std_pal = 0;
+ delete tqt_std_pal;
+ tqt_std_pal = 0;
delete app_pal;
app_pal = 0;
delete app_palettes;
@@ -1084,7 +1084,7 @@ TQApplication::~TQApplication()
delete qt_dnd_manager;
#endif
- qt_cleanup();
+ tqt_cleanup();
#ifndef QT_NO_COMPONENT
delete app_libpaths;
@@ -1092,8 +1092,8 @@ TQApplication::~TQApplication()
#endif
#ifdef QT_THREAD_SUPPORT
- delete qt_mutex;
- qt_mutex = 0;
+ delete tqt_mutex;
+ tqt_mutex = 0;
delete postevent_mutex;
postevent_mutex = 0;
#endif // QT_THREAD_SUPPORT
@@ -1115,8 +1115,8 @@ TQApplication::~TQApplication()
session_key = 0;
#endif //QT_NO_SESSIONMANAGER
- qt_explicit_app_style = FALSE;
- qt_app_has_font = FALSE;
+ tqt_explicit_app_style = FALSE;
+ tqt_app_has_font = FALSE;
app_tracking = 0;
obey_desktop_settings = TRUE;
cursor_flash_time = 1000;
@@ -1213,7 +1213,7 @@ TQStyle& TQApplication::style()
#ifndef QT_NO_STYLE
if ( app_style )
return *app_style;
- if ( !qt_is_gui_used )
+ if ( !tqt_is_gui_used )
tqFatal( "No style available in non-gui applications!" );
#if defined(Q_WS_X11)
@@ -1305,7 +1305,7 @@ void TQApplication::setStyle( TQStyle *style )
TQStyle* old = app_style;
app_style = style;
#ifdef Q_WS_X11
- qt_explicit_app_style = TRUE;
+ tqt_explicit_app_style = TRUE;
#endif // Q_WS_X11
if ( startingUp() ) {
@@ -1332,9 +1332,9 @@ void TQApplication::setStyle( TQStyle *style )
// take care of possible palette requirements of certain gui
// styles. Do it before polishing the application since the style
// might call TQApplication::setStyle() itself
- if ( !qt_std_pal )
- qt_create_std_palette();
- TQPalette tmpPal = *qt_std_pal;
+ if ( !tqt_std_pal )
+ tqt_create_std_palette();
+ TQPalette tmpPal = *tqt_std_pal;
setPalette( tmpPal, TRUE );
// initialize the application with the new style
@@ -1381,7 +1381,7 @@ void TQApplication::setStyle( TQStyle *style )
TQStyle* TQApplication::setStyle( const TQString& style )
{
#ifdef Q_WS_X11
- qt_explicit_app_style = TRUE;
+ tqt_explicit_app_style = TRUE;
#endif // Q_WS_X11
if ( startingUp() ) {
@@ -1826,10 +1826,10 @@ TQPalette TQApplication::palette(const TQWidget* w)
"called after the TQApplication object has been created" );
#endif
if ( !app_pal ) {
- if ( !qt_std_pal )
- qt_create_std_palette();
- app_pal = new TQPalette( *qt_std_pal );
- qt_fix_tooltips();
+ if ( !tqt_std_pal )
+ tqt_create_std_palette();
+ app_pal = new TQPalette( *tqt_std_pal );
+ tqt_fix_tooltips();
}
if ( w && app_palettes ) {
@@ -1885,7 +1885,7 @@ void TQApplication::setPalette( const TQPalette &palette, bool informWidgets,
all = app_palettes != 0;
delete app_palettes;
app_palettes = 0;
- qt_fix_tooltips();
+ tqt_fix_tooltips();
} else {
if ( !app_palettes ) {
app_palettes = new TQAsciiDict<TQPalette>;
@@ -1961,7 +1961,7 @@ void TQApplication::setFont( const TQFont &font, bool informWidgets,
{
bool all = FALSE;
if ( !className ) {
- qt_app_has_font = TRUE;
+ tqt_app_has_font = TRUE;
if ( !app_font ) {
app_font = new TQFont( font );
TQ_CHECK_PTR( app_font );
@@ -2367,7 +2367,7 @@ bool TQApplication::notify( TQObject *receiver, TQEvent *e )
res = internalNotify( receiver, e );
if ( !res && !key->isAccepted() )
- res = qt_dispatchAccelEvent( (TQWidget*)receiver, key );
+ res = tqt_dispatchAccelEvent( (TQWidget*)receiver, key );
// next lines are for compatibility with TQt <= 3.0.x: old
// TQAccel was listening on toplevel widgets
@@ -2383,7 +2383,7 @@ bool TQApplication::notify( TQObject *receiver, TQEvent *e )
TQWidget* w = (TQWidget*)receiver;
TQKeyEvent* key = (TQKeyEvent*) e;
#ifndef QT_NO_ACCEL
- if ( qt_tryComposeUnicode( w, key ) )
+ if ( tqt_tryComposeUnicode( w, key ) )
break;
#endif
bool def = key->isAccepted();
@@ -3596,7 +3596,7 @@ void TQApplication::setActiveWindow( TQWidget* act )
Creates the proper Enter/Leave event when widget \a enter is entered
and widget \a leave is left.
*/
-Q_EXPORT void qt_dispatchEnterLeave( TQWidget* enter, TQWidget* leave ) {
+Q_EXPORT void tqt_dispatchEnterLeave( TQWidget* enter, TQWidget* leave ) {
#if 0
if ( leave ) {
TQEvent e( TQEvent::Leave );
@@ -3666,19 +3666,19 @@ Q_EXPORT void qt_dispatchEnterLeave( TQWidget* enter, TQWidget* leave ) {
TQEvent leaveEvent( TQEvent::Leave );
for ( w = leaveList.first(); w; w = leaveList.next() ) {
- if ( !tqApp->activeModalWidget() || qt_tryModalHelper( w, 0 ))
+ if ( !tqApp->activeModalWidget() || tqt_tryModalHelper( w, 0 ))
TQApplication::sendEvent( w, &leaveEvent );
}
TQEvent enterEvent( TQEvent::Enter );
for ( w = enterList.first(); w; w = enterList.next() ) {
- if ( !tqApp->activeModalWidget() || qt_tryModalHelper( w, 0 ))
+ if ( !tqApp->activeModalWidget() || tqt_tryModalHelper( w, 0 ))
TQApplication::sendEvent( w, &enterEvent );
}
}
#ifdef Q_WS_MACX
-extern TQWidget *qt_tryModalHelperMac( TQWidget * top ); //qapplication_mac.cpp
+extern TQWidget *tqt_tryModalHelperMac( TQWidget * top ); //qapplication_mac.cpp
#endif
@@ -3687,7 +3687,7 @@ extern TQWidget *qt_tryModalHelperMac( TQWidget * top ); //qapplication_mac.cpp
Called from qapplication_<platform>.cpp, returns TRUE
if the widget should accept the event.
*/
-Q_EXPORT bool qt_tryModalHelper( TQWidget *widget, TQWidget **rettop ) {
+Q_EXPORT bool tqt_tryModalHelper( TQWidget *widget, TQWidget **rettop ) {
TQWidget *modal=0, *top=TQApplication::activeModalWidget();
if ( rettop ) *rettop = top;
@@ -3695,7 +3695,7 @@ Q_EXPORT bool qt_tryModalHelper( TQWidget *widget, TQWidget **rettop ) {
return TRUE;
#ifdef Q_WS_MACX
- top = qt_tryModalHelperMac( top );
+ top = tqt_tryModalHelperMac( top );
if ( rettop ) *rettop = top;
#endif
@@ -3718,15 +3718,15 @@ Q_EXPORT bool qt_tryModalHelper( TQWidget *widget, TQWidget **rettop ) {
groupLeader = groupLeader->parentWidget();
if ( groupLeader ) {
- // Does groupLeader have a child in qt_modal_stack?
+ // Does groupLeader have a child in tqt_modal_stack?
bool unrelated = TRUE;
- modal = qt_modal_stack->first();
+ modal = tqt_modal_stack->first();
while (modal && unrelated) {
TQWidget* p = modal->parentWidget();
while ( p && p != groupLeader && !p->testWFlags( TQt::WGroupLeader) ) {
p = p->parentWidget();
}
- modal = qt_modal_stack->next();
+ modal = tqt_modal_stack->next();
if ( p == groupLeader ) unrelated = FALSE;
}
@@ -3754,12 +3754,12 @@ Q_EXPORT bool qt_tryModalHelper( TQWidget *widget, TQWidget **rettop ) {
TQDesktopWidget *TQApplication::desktop()
{
- if ( !qt_desktopWidget || // not created yet
- !qt_desktopWidget->isDesktop() ) { // reparented away
- qt_desktopWidget = new TQDesktopWidget();
- TQ_CHECK_PTR( qt_desktopWidget );
+ if ( !tqt_desktopWidget || // not created yet
+ !tqt_desktopWidget->isDesktop() ) { // reparented away
+ tqt_desktopWidget = new TQDesktopWidget();
+ TQ_CHECK_PTR( tqt_desktopWidget );
}
- return qt_desktopWidget;
+ return tqt_desktopWidget;
}
#ifndef QT_NO_CLIPBOARD
@@ -3768,11 +3768,11 @@ TQDesktopWidget *TQApplication::desktop()
*/
TQClipboard *TQApplication::clipboard()
{
- if ( qt_clipboard == 0 ) {
- qt_clipboard = new TQClipboard;
- TQ_CHECK_PTR( qt_clipboard );
+ if ( tqt_clipboard == 0 ) {
+ tqt_clipboard = new TQClipboard;
+ TQ_CHECK_PTR( tqt_clipboard );
}
- return qt_clipboard;
+ return tqt_clipboard;
}
#endif // QT_NO_CLIPBOARD
@@ -3859,12 +3859,12 @@ bool TQApplication::desktopSettingsAware()
#if defined(QT_THREAD_SUPPORT)
void TQApplication::lock()
{
- qt_mutex->lock();
+ tqt_mutex->lock();
}
void TQApplication::unlock(bool wakeUpGui)
{
- qt_mutex->unlock();
+ tqt_mutex->unlock();
if (wakeUpGui)
wakeUpGuiThread();
@@ -3872,12 +3872,12 @@ void TQApplication::unlock(bool wakeUpGui)
bool TQApplication::locked()
{
- return qt_mutex->locked();
+ return tqt_mutex->locked();
}
bool TQApplication::tryLock()
{
- return qt_mutex->tryLock();
+ return tqt_mutex->tryLock();
}
#endif
diff --git a/src/kernel/qapplication_p.h b/src/kernel/qapplication_p.h
index ae7568b8..766a8c40 100644
--- a/src/kernel/qapplication_p.h
+++ b/src/kernel/qapplication_p.h
@@ -66,12 +66,12 @@ class TQMouseEvent;
class TQWheelEvent;
extern Q_EXPORT bool tqt_modal_state();
-extern Q_EXPORT void qt_enter_modal( TQWidget* );
-extern Q_EXPORT void qt_leave_modal( TQWidget* );
+extern Q_EXPORT void tqt_enter_modal( TQWidget* );
+extern Q_EXPORT void tqt_leave_modal( TQWidget* );
-extern bool qt_is_gui_used;
+extern bool tqt_is_gui_used;
#ifndef QT_NO_CLIPBOARD
-extern TQClipboard *qt_clipboard;
+extern TQClipboard *tqt_clipboard;
#endif
#if defined (Q_OS_WIN32) || defined (Q_OS_CYGWIN)
@@ -89,7 +89,7 @@ extern int qt_ncols_option;
#endif
-extern void qt_dispatchEnterLeave( TQWidget*, TQWidget* );
-extern bool qt_tryModalHelper( TQWidget *, TQWidget ** = 0 );
+extern void tqt_dispatchEnterLeave( TQWidget*, TQWidget* );
+extern bool tqt_tryModalHelper( TQWidget *, TQWidget ** = 0 );
#endif
diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp
index 44ff475c..874afe06 100644
--- a/src/kernel/qapplication_x11.cpp
+++ b/src/kernel/qapplication_x11.cpp
@@ -228,7 +228,7 @@ Atom qt_net_wm_ping = 0; // _NET_WM_PING protocol
static Atom qt_xsetroot_id = 0;
Atom qt_xa_clipboard = 0;
Atom qt_selection_property = 0;
-Atom qt_clipboard_sentinel = 0;
+Atom tqt_clipboard_sentinel = 0;
Atom qt_selection_sentinel = 0;
Q_EXPORT Atom tqt_wm_state = 0;
Atom qt_wm_change_state = 0;
@@ -359,7 +359,7 @@ static Time mouseButtonPressTime = 0; // when was a button pressed
static short mouseXPos, mouseYPos; // mouse pres position in act window
static short mouseGlobalXPos, mouseGlobalYPos; // global mouse press position
-extern TQWidgetList *qt_modal_stack; // stack of modal widgets
+extern TQWidgetList *tqt_modal_stack; // stack of modal widgets
static bool ignoreNextMouseReleaseEvent = FALSE; // ignore the next mouse release
// event if return from a modal
// widget
@@ -442,14 +442,14 @@ extern bool qt_check_clipboard_sentinel(); //def in qclipboard_x11.cpp
extern bool qt_check_selection_sentinel(); //def in qclipboard_x11.cpp
static void qt_save_rootinfo();
-bool qt_try_modal( TQWidget *, XEvent * );
+bool tqt_try_modal( TQWidget *, XEvent * );
int qt_ncols_option = 216; // used in qcolor_x11.cpp
int qt_visual_option = -1;
bool qt_cmap_option = FALSE;
TQWidget *qt_button_down = 0; // widget got last button-down
-extern bool qt_tryAccelEvent( TQWidget*, TQKeyEvent* ); // def in qaccel.cpp
+extern bool tqt_tryAccelEvent( TQWidget*, TQKeyEvent* ); // def in qaccel.cpp
struct TQScrollInProgress {
static long serial;
@@ -491,8 +491,8 @@ extern Atom qt_xdnd_selection;
extern bool qt_xdnd_dragging;
// gui or non-gui from qapplication.cpp
-extern bool qt_is_gui_used;
-extern bool qt_app_has_font;
+extern bool tqt_is_gui_used;
+extern bool tqt_app_has_font;
static bool qt_x11_cmdline_font = false;
@@ -505,8 +505,8 @@ extern void qt_clear_paintevent_clipping();
// Palette handling
-extern TQPalette *qt_std_pal;
-extern void qt_create_std_palette();
+extern TQPalette *tqt_std_pal;
+extern void tqt_create_std_palette();
void qt_x11_intern_atom( const char *, Atom * );
@@ -819,7 +819,7 @@ static int qt_xio_errhandler( Display * )
#endif
-// Memory leak: if the app exits before qt_init_internal(), this dict
+// Memory leak: if the app exits before tqt_init_internal(), this dict
// isn't released correctly.
static TQAsciiDict<Atom> *atoms_to_be_created = 0;
static bool create_atoms_now = 0;
@@ -828,7 +828,7 @@ static bool create_atoms_now = 0;
qt_x11_intern_atom() - efficiently interns an atom, now or later.
If the application is being initialized, this function stores the
- adddress of the atom and qt_init_internal will do the actual work
+ adddress of the atom and tqt_init_internal will do the actual work
tquickly. If the application is running, the atom is created here.
Neither argument may point to temporary variables.
@@ -902,8 +902,8 @@ static void qt_x11_process_intern_atoms()
*/
bool TQApplication::x11_apply_settings()
{
- if (! qt_std_pal)
- qt_create_std_palette();
+ if (! tqt_std_pal)
+ tqt_create_std_palette();
Atom type;
int format;
@@ -1000,13 +1000,13 @@ bool TQApplication::x11_apply_settings()
pal.disabled().foreground() );
}
- if (pal != *qt_std_pal && pal != TQApplication::palette()) {
+ if (pal != *tqt_std_pal && pal != TQApplication::palette()) {
TQApplication::setPalette(pal, TRUE);
- *qt_std_pal = pal;
+ *tqt_std_pal = pal;
}
TQFont font(TQApplication::font());
- if ( !qt_app_has_font && !qt_x11_cmdline_font ) {
+ if ( !tqt_app_has_font && !qt_x11_cmdline_font ) {
// read new font
str = settings.readEntry("/qt/font");
if (! str.isNull() && ! str.isEmpty()) {
@@ -1028,12 +1028,12 @@ bool TQApplication::x11_apply_settings()
}
// read new TQStyle
- extern bool qt_explicit_app_style; // defined in qapplication.cpp
+ extern bool tqt_explicit_app_style; // defined in qapplication.cpp
TQString stylename = settings.readEntry( "/qt/style" );
- if ( !stylename.isEmpty() && !qt_explicit_app_style ) {
+ if ( !stylename.isEmpty() && !tqt_explicit_app_style ) {
TQApplication::setStyle( stylename );
// took the style from the user settings, so mark the explicit flag FALSE
- qt_explicit_app_style = FALSE;
+ tqt_explicit_app_style = FALSE;
}
num =
@@ -1203,8 +1203,8 @@ static void qt_set_input_encoding()
static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
const char* bg = 0, const char* button = 0 )
{
- if ( !qt_std_pal )
- qt_create_std_palette();
+ if ( !tqt_std_pal )
+ tqt_create_std_palette();
TQCString resFont, resFG, resBG, resEF, sysFont;
@@ -1303,7 +1303,7 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
resFG = fg;
if ( resBG.isEmpty() )
resBG = bg;
- if ( (!qt_app_has_font || qt_x11_cmdline_font) && !resFont.isEmpty() ) { // set application font
+ if ( (!tqt_app_has_font || qt_x11_cmdline_font) && !resFont.isEmpty() ) { // set application font
TQFont fnt;
fnt.setRawName( resFont );
@@ -1341,17 +1341,17 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
if ( !resBG.isEmpty() )
bg = TQColor(TQString(resBG));
else
- bg = qt_std_pal->active().background();
+ bg = tqt_std_pal->active().background();
if ( !resFG.isEmpty() )
fg = TQColor(TQString(resFG));
else
- fg = qt_std_pal->active().foreground();
+ fg = tqt_std_pal->active().foreground();
if ( button )
btn = TQColor( button );
else if ( !resBG.isEmpty() )
btn = bg;
else
- btn = qt_std_pal->active().button();
+ btn = tqt_std_pal->active().button();
int h,s,v;
fg.hsv(&h,&s,&v);
@@ -1384,9 +1384,9 @@ static void qt_set_x11_resources( const char* font = 0, const char* fg = 0,
dcg.setColor( TQColorGroup::Highlight, TQt::darkBlue );
}
TQPalette pal( cg, dcg, cg );
- if ( pal != *qt_std_pal && pal != TQApplication::palette() )
+ if ( pal != *tqt_std_pal && pal != TQApplication::palette() )
TQApplication::setPalette( pal, TRUE );
- *qt_std_pal = pal;
+ *tqt_std_pal = pal;
}
if ( !resEF.isEmpty() ) {
@@ -1626,7 +1626,7 @@ static Visual *find_truecolor_visual( Display *dpy, int scr, int *depth, int *nc
/*****************************************************************************
- qt_init() - initializes TQt for X11
+ tqt_init() - initializes TQt for X11
*****************************************************************************/
#define XK_MISCELLANY
@@ -1639,14 +1639,14 @@ static Visual *find_truecolor_visual( Display *dpy, int scr, int *depth, int *nc
// ### in ntqpaintdevice.h which then should have a static too but can't have
// ### it because "storage class specifiers invalid in friend function
// ### declarations" :-) Ideas anyone?
-void qt_init_internal( int *argcptr, char **argv,
+void tqt_init_internal( int *argcptr, char **argv,
Display *display, TQt::HANDLE visual, TQt::HANDLE colormap )
{
setlocale( LC_ALL, "" ); // use correct char set mapping
setlocale( LC_NUMERIC, "C" ); // make sprintf()/scanf() work
#if defined(QT_THREAD_SUPPORT)
- if ( qt_is_gui_used ) {
+ if ( tqt_is_gui_used ) {
XInitThreads();
}
#endif
@@ -1804,7 +1804,7 @@ void qt_init_internal( int *argcptr, char **argv,
#endif
// Connect to X server
- if( qt_is_gui_used ) {
+ if( tqt_is_gui_used ) {
if ( ( appDpy = XOpenDisplay(appDpyName) ) == 0 ) {
tqWarning( "%s: cannot connect to X server %s", appName,
XDisplayName(appDpyName) );
@@ -1820,7 +1820,7 @@ void qt_init_internal( int *argcptr, char **argv,
// Get X parameters
- if( qt_is_gui_used ) {
+ if( tqt_is_gui_used ) {
appScreen = DefaultScreen(appDpy);
appScreenCount = ScreenCount(appDpy);
@@ -1990,7 +1990,7 @@ void qt_init_internal( int *argcptr, char **argv,
qt_x11_intern_atom( "INCR", &qt_x_incr );
qt_x11_intern_atom( "_XSETROOT_ID", &qt_xsetroot_id );
qt_x11_intern_atom( "_QT_SELECTION", &qt_selection_property );
- qt_x11_intern_atom( "_QT_CLIPBOARD_SENTINEL", &qt_clipboard_sentinel );
+ qt_x11_intern_atom( "_QT_CLIPBOARD_SENTINEL", &tqt_clipboard_sentinel );
qt_x11_intern_atom( "_QT_SELECTION_SENTINEL", &qt_selection_sentinel );
qt_x11_intern_atom( "_QT_SCROLL_DONE", &qt_qt_scrolldone );
qt_x11_intern_atom( "_QT_INPUT_ENCODING", &qt_input_encoding );
@@ -2205,7 +2205,7 @@ void qt_init_internal( int *argcptr, char **argv,
TQThread::initialize();
#endif
- if( qt_is_gui_used ) {
+ if( tqt_is_gui_used ) {
tqApp->setName( appName );
int screen;
@@ -2221,7 +2221,7 @@ void qt_init_internal( int *argcptr, char **argv,
}
}
- if ( qt_is_gui_used ) {
+ if ( tqt_is_gui_used ) {
qt_set_input_encoding();
qt_set_x11_resources( appFont, appFGCol, appBGCol, appBTNCol);
@@ -2235,7 +2235,7 @@ void qt_init_internal( int *argcptr, char **argv,
(int) ( ( ( TQPaintDevice::x11AppDpiY() >= 95 ? 17. : 12. ) *
72. / (float) TQPaintDevice::x11AppDpiY() ) + 0.5 );
- if ( !qt_app_has_font && !qt_x11_cmdline_font ) {
+ if ( !tqt_app_has_font && !qt_x11_cmdline_font ) {
TQFont f( "Helvetica", ptsz );
TQApplication::setFont( f );
}
@@ -2454,29 +2454,29 @@ void TQApplication::x11_initialize_style()
}
#endif
-void qt_init( int *argcptr, char **argv, TQApplication::Type )
+void tqt_init( int *argcptr, char **argv, TQApplication::Type )
{
- qt_init_internal( argcptr, argv, 0, 0, 0 );
+ tqt_init_internal( argcptr, argv, 0, 0, 0 );
}
-void qt_init( Display *display, TQt::HANDLE visual, TQt::HANDLE colormap )
+void tqt_init( Display *display, TQt::HANDLE visual, TQt::HANDLE colormap )
{
- qt_init_internal( 0, 0, display, visual, colormap );
+ tqt_init_internal( 0, 0, display, visual, colormap );
}
/*****************************************************************************
- qt_cleanup() - cleans up when the application is finished
+ tqt_cleanup() - cleans up when the application is finished
*****************************************************************************/
-void qt_cleanup()
+void tqt_cleanup()
{
appliedstamp = 0;
if ( app_save_rootinfo ) // root window must keep state
qt_save_rootinfo();
- if ( qt_is_gui_used ) {
+ if ( tqt_is_gui_used ) {
TQPixmapCache::clear();
TQPainter::cleanup();
TQCursor::cleanup();
@@ -2503,7 +2503,7 @@ void qt_cleanup()
#endif
#endif
- if ( qt_is_gui_used ) {
+ if ( tqt_is_gui_used ) {
int screen;
for ( screen = 0; screen < appScreenCount; screen++ ) {
if ( ! TQPaintDevice::x11AppDefaultColormap( screen ) )
@@ -2526,7 +2526,7 @@ void qt_cleanup()
XSetErrorHandler( original_x_errhandler );
XSetIOErrorHandler( original_xio_errhandler );
- if ( qt_is_gui_used && !appForeignDpy )
+ if ( tqt_is_gui_used && !appForeignDpy )
XCloseDisplay( appDpy ); // close X display
appDpy = 0;
@@ -2820,7 +2820,7 @@ void TQApplication::setMainWidget( TQWidget *mainWidget )
TQApplication cursor stack
*****************************************************************************/
-extern void qt_x11_enforce_cursor( TQWidget * w );
+extern void tqt_x11_enforce_cursor( TQWidget * w );
typedef TQPtrList<TQCursor> TQCursorList;
@@ -2886,7 +2886,7 @@ void TQApplication::setOverrideCursor( const TQCursor &cursor, bool replace )
register TQWidget *w;
while ( (w=it.current()) ) { // for all widgets that have
if ( w->testWState( WState_OwnCursor ) )
- qt_x11_enforce_cursor( w );
+ tqt_x11_enforce_cursor( w );
++it;
}
XFlush( appDpy ); // make X execute it NOW
@@ -2914,7 +2914,7 @@ void TQApplication::restoreOverrideCursor()
register TQWidget *w;
while ( (w=it.current()) ) { // set back to original cursors
if ( w->testWState( WState_OwnCursor ) )
- qt_x11_enforce_cursor( w );
+ tqt_x11_enforce_cursor( w );
++it;
}
XFlush( appDpy );
@@ -3429,7 +3429,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if ( event->type == PropertyNotify ) { // some properties changed
if ( event->xproperty.window == TQPaintDevice::x11AppRootWindow( 0 ) ) {
// root properties for the first screen
- if ( event->xproperty.atom == qt_clipboard_sentinel ) {
+ if ( event->xproperty.atom == tqt_clipboard_sentinel ) {
if (qt_check_clipboard_sentinel() )
emit clipboard()->dataChanged();
} else if ( event->xproperty.atom == qt_selection_sentinel ) {
@@ -3493,7 +3493,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
widget = keywidget; // send XKeyEvents through keywidget->x11Event()
if ( app_do_modal ) // modal event handling
- if ( !qt_try_modal(widget, event) ) {
+ if ( !tqt_try_modal(widget, event) ) {
if ( event->type == ClientMessage )
x11ClientMessage( widget, event, TRUE );
return 1;
@@ -3638,7 +3638,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if ( qt_focus_model == FocusModel_PointerRoot ) // PointerRoot mode
setActiveWindow( widget );
}
- qt_dispatchEnterLeave( widget, TQWidget::find( curWin ) );
+ tqt_dispatchEnterLeave( widget, TQWidget::find( curWin ) );
curWin = widget->winId();
widget->translateMouseEvent( event ); //we don't get MotionNotify, emulate it
}
@@ -3689,9 +3689,9 @@ int TQApplication::x11ProcessEvent( XEvent* event )
}
if ( !curWin )
- qt_dispatchEnterLeave( widget, 0 );
+ tqt_dispatchEnterLeave( widget, 0 );
- qt_dispatchEnterLeave( enter, widget );
+ tqt_dispatchEnterLeave( enter, widget );
curWin = enter ? enter->winId() : 0;
}
break;
@@ -3761,9 +3761,9 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if ( qt_xdnd_selection && req->selection == qt_xdnd_selection ) {
qt_xdnd_handle_selection_request( req );
- } else if (qt_clipboard) {
+ } else if (tqt_clipboard) {
TQCustomEvent e( TQEvent::Clipboard, event );
- TQApplication::sendSpontaneousEvent( qt_clipboard, &e );
+ TQApplication::sendSpontaneousEvent( tqt_clipboard, &e );
}
break;
}
@@ -3773,9 +3773,9 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
break;
- if (qt_clipboard) {
+ if (tqt_clipboard) {
TQCustomEvent e( TQEvent::Clipboard, event );
- TQApplication::sendSpontaneousEvent( qt_clipboard, &e );
+ TQApplication::sendSpontaneousEvent( tqt_clipboard, &e );
}
break;
}
@@ -3786,9 +3786,9 @@ int TQApplication::x11ProcessEvent( XEvent* event )
if (! req || qt_xdnd_selection && req->selection == qt_xdnd_selection)
break;
- if (qt_clipboard) {
+ if (tqt_clipboard) {
TQCustomEvent e( TQEvent::Clipboard, event );
- TQApplication::sendSpontaneousEvent( qt_clipboard, &e );
+ TQApplication::sendSpontaneousEvent( tqt_clipboard, &e );
}
break;
}
@@ -3826,12 +3826,12 @@ bool TQApplication::x11EventFilter( XEvent * )
A modal widget without a parent becomes application-modal.
A modal widget with a parent becomes modal to its parent and grandparents..
- qt_enter_modal()
+ tqt_enter_modal()
Enters modal state
Arguments:
TQWidget *widget A modal widget
- qt_leave_modal()
+ tqt_leave_modal()
Leaves modal state for a widget
Arguments:
TQWidget *widget A modal widget
@@ -3842,38 +3842,38 @@ bool tqt_modal_state()
return app_do_modal;
}
-void qt_enter_modal( TQWidget *widget )
+void tqt_enter_modal( TQWidget *widget )
{
- if ( !qt_modal_stack ) { // create modal stack
- qt_modal_stack = new TQWidgetList;
- TQ_CHECK_PTR( qt_modal_stack );
+ if ( !tqt_modal_stack ) { // create modal stack
+ tqt_modal_stack = new TQWidgetList;
+ TQ_CHECK_PTR( tqt_modal_stack );
}
if (widget->parentWidget()) {
TQEvent e(TQEvent::WindowBlocked);
TQApplication::sendEvent(widget->parentWidget(), &e);
}
- qt_dispatchEnterLeave( 0, TQWidget::find((WId)curWin) );
- qt_modal_stack->insert( 0, widget );
+ tqt_dispatchEnterLeave( 0, TQWidget::find((WId)curWin) );
+ tqt_modal_stack->insert( 0, widget );
app_do_modal = TRUE;
curWin = 0;
ignoreNextMouseReleaseEvent = FALSE;
}
-void qt_leave_modal( TQWidget *widget )
+void tqt_leave_modal( TQWidget *widget )
{
- if ( qt_modal_stack && qt_modal_stack->removeRef(widget) ) {
- if ( qt_modal_stack->isEmpty() ) {
- delete qt_modal_stack;
- qt_modal_stack = 0;
+ if ( tqt_modal_stack && tqt_modal_stack->removeRef(widget) ) {
+ if ( tqt_modal_stack->isEmpty() ) {
+ delete tqt_modal_stack;
+ tqt_modal_stack = 0;
TQPoint p( TQCursor::pos() );
TQWidget* w = TQApplication::widgetAt( p.x(), p.y(), TRUE );
- qt_dispatchEnterLeave( w, TQWidget::find( curWin ) ); // send synthetic enter event
+ tqt_dispatchEnterLeave( w, TQWidget::find( curWin ) ); // send synthetic enter event
curWin = w? w->winId() : 0;
}
}
- app_do_modal = qt_modal_stack != 0;
+ app_do_modal = tqt_modal_stack != 0;
ignoreNextMouseReleaseEvent = TRUE;
if (widget->parentWidget()) {
@@ -3883,7 +3883,7 @@ void qt_leave_modal( TQWidget *widget )
}
-Q_EXPORT bool qt_try_modal( TQWidget *widget, XEvent *event )
+Q_EXPORT bool tqt_try_modal( TQWidget *widget, XEvent *event )
{
if (qt_xdnd_dragging) {
// allow mouse events while DnD is active
@@ -3897,7 +3897,7 @@ Q_EXPORT bool qt_try_modal( TQWidget *widget, XEvent *event )
}
}
- if ( qt_tryModalHelper( widget ) )
+ if ( tqt_tryModalHelper( widget ) )
return TRUE;
bool block_event = FALSE;
@@ -5571,7 +5571,7 @@ bool TQETWidget::translateKeyEvent( const XEvent *event, bool grab )
// send accel events if the keyboard is not grabbed
TQKeyEvent a( type, code, ascii, state, text, autor,
TQMAX( TQMAX(count,1), int(text.length())) );
- if ( qt_tryAccelEvent( this, &a ) )
+ if ( tqt_tryAccelEvent( this, &a ) )
return TRUE;
}
diff --git a/src/kernel/qasyncimageio.cpp b/src/kernel/qasyncimageio.cpp
index 277a2e08..c42e876e 100644
--- a/src/kernel/qasyncimageio.cpp
+++ b/src/kernel/qasyncimageio.cpp
@@ -46,8 +46,8 @@
#include "ntqgif.h"
#include <stdlib.h>
-extern void qt_init_image_handlers();
-extern void qt_init_image_plugins();
+extern void tqt_init_image_handlers();
+extern void tqt_init_image_plugins();
#define Q_TRANSPARENT 0x00ffffff
@@ -303,7 +303,7 @@ public:
#if defined(QT_BUILTIN_GIF_READER) && QT_BUILTIN_GIF_READER == 1
gif_decoder_factory = new TQGIFFormatType;
#endif
- qt_init_image_handlers();
+ tqt_init_image_handlers();
tqAddPostRoutine( cleanup );
}
}
@@ -344,7 +344,7 @@ void TQImageDecoderPrivate::cleanup()
*/
TQImageDecoder::TQImageDecoder(TQImageConsumer* c)
{
- qt_init_image_handlers();
+ tqt_init_image_handlers();
d = new TQImageDecoderPrivate;
TQ_CHECK_PTR(d);
consumer = c;
@@ -397,7 +397,7 @@ int TQImageDecoder::decode(const uchar* buffer, int length)
actual_decoder = f->decoderFor(d->header, d->count);
}
if ( !actual_decoder && !plugins_loaded) {
- qt_init_image_plugins();
+ tqt_init_image_plugins();
plugins_loaded = TRUE;
for (TQImageFormatType* f = TQImageDecoderPrivate::factories->first();
@@ -432,7 +432,7 @@ int TQImageDecoder::decode(const uchar* buffer, int length)
TQImageFormatType* TQImageDecoder::format( const char* name )
{
TQImageDecoderPrivate::ensureFactories();
- qt_init_image_plugins();
+ tqt_init_image_plugins();
for (TQImageFormatType* f = TQImageDecoderPrivate::factories->first();
f;
@@ -467,7 +467,7 @@ const char* TQImageDecoder::formatName(const uchar* buffer, int length)
}
}
if ( !name && !plugins_loaded) {
- qt_init_image_plugins();
+ tqt_init_image_plugins();
plugins_loaded = TRUE;
for (TQImageFormatType* f = TQImageDecoderPrivate::factories->first();
f && !name;
@@ -491,7 +491,7 @@ const char* TQImageDecoder::formatName(const uchar* buffer, int length)
TQStrList TQImageDecoder::inputFormats()
{
TQImageDecoderPrivate::ensureFactories();
- qt_init_image_plugins();
+ tqt_init_image_plugins();
TQStrList result;
diff --git a/src/kernel/qclipboard_x11.cpp b/src/kernel/qclipboard_x11.cpp
index b80e8698..9fd48c58 100644
--- a/src/kernel/qclipboard_x11.cpp
+++ b/src/kernel/qclipboard_x11.cpp
@@ -91,7 +91,7 @@ extern Time tqt_x_time; // def. in qapplication_x11.cpp
extern Time qt_x_incr; // def. in qapplication_x11.cpp
extern Atom qt_xa_clipboard;
extern Atom qt_selection_property;
-extern Atom qt_clipboard_sentinel;
+extern Atom tqt_clipboard_sentinel;
extern Atom qt_selection_sentinel;
extern Atom qt_utf8_string;
@@ -244,7 +244,7 @@ static TQClipboardData *clipboardData()
return internalCbData;
}
-void qt_clipboard_cleanup_mime_source(TQMimeSource *src)
+void tqt_clipboard_cleanup_mime_source(TQMimeSource *src)
{
if(internalCbData && internalCbData->source() == src)
internalCbData->clear(FALSE);
@@ -1520,7 +1520,7 @@ void TQClipboard::setData( TQMimeSource* src, Mode mode )
case Clipboard:
atom = qt_xa_clipboard;
- sentinel_atom = qt_clipboard_sentinel;
+ sentinel_atom = tqt_clipboard_sentinel;
d = clipboardData();
break;
@@ -1644,7 +1644,7 @@ bool qt_check_clipboard_sentinel()
if (XGetWindowProperty(TQPaintDevice::x11AppDisplay(),
TQApplication::desktop()->screen(0)->winId(),
- qt_clipboard_sentinel, 0, 2, False, XA_WINDOW,
+ tqt_clipboard_sentinel, 0, 2, False, XA_WINDOW,
&actualType, &actualFormat, &nitems, &bytesLeft,
(unsigned char **) &owners) == Success) {
if (actualType == XA_WINDOW && actualFormat == 32 && nitems == 2) {
diff --git a/src/kernel/qdnd_x11.cpp b/src/kernel/qdnd_x11.cpp
index aeb02583..e45341aa 100644
--- a/src/kernel/qdnd_x11.cpp
+++ b/src/kernel/qdnd_x11.cpp
@@ -74,8 +74,8 @@ extern "C" {
extern void qt_ignore_badwindow();
extern bool qt_badwindow();
-extern void qt_enter_modal( TQWidget *widget );
-extern void qt_leave_modal( TQWidget *widget );
+extern void tqt_enter_modal( TQWidget *widget );
+extern void tqt_leave_modal( TQWidget *widget );
#if defined(Q_C_CALLBACKS)
}
diff --git a/src/kernel/qeventloop_x11.cpp b/src/kernel/qeventloop_x11.cpp
index bada85fd..0ae38705 100644
--- a/src/kernel/qeventloop_x11.cpp
+++ b/src/kernel/qeventloop_x11.cpp
@@ -60,7 +60,7 @@ static const int XKeyRelease = KeyRelease;
#undef KeyRelease
// from qapplication.cpp
-extern bool qt_is_gui_used;
+extern bool tqt_is_gui_used;
// from qeventloop_unix.cpp
extern timeval *qt_wait_timer();
@@ -117,7 +117,7 @@ void TQEventLoop::init()
// intitialize the X11 parts of the event loop
d->xfd = -1;
- if ( qt_is_gui_used )
+ if ( tqt_is_gui_used )
d->xfd = XConnectionNumber( TQPaintDevice::x11AppDisplay() );
}
@@ -139,11 +139,11 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
int nevents = 0;
#if defined(QT_THREAD_SUPPORT)
- TQMutexLocker locker( TQApplication::qt_mutex );
+ TQMutexLocker locker( TQApplication::tqt_mutex );
#endif
// handle gui and posted events
- if ( qt_is_gui_used ) {
+ if ( tqt_is_gui_used ) {
TQApplication::sendPostedEvents();
// Two loops so that posted events accumulate
@@ -261,7 +261,7 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
FD_ZERO( &d->sn_vec[2].select_fds );
}
- if ( qt_is_gui_used ) {
+ if ( tqt_is_gui_used ) {
// select for events on the event socket - only on X11
FD_SET( d->xfd, &d->sn_vec[0].select_fds );
highest = TQMAX( highest, d->xfd );
@@ -407,7 +407,7 @@ bool TQEventLoop::hasPendingEvents() const
void TQEventLoop::appStartingUp()
{
- if ( qt_is_gui_used )
+ if ( tqt_is_gui_used )
d->xfd = XConnectionNumber( TQPaintDevice::x11AppDisplay() );
}
diff --git a/src/kernel/qimage.cpp b/src/kernel/qimage.cpp
index c67c463a..fad12bfa 100644
--- a/src/kernel/qimage.cpp
+++ b/src/kernel/qimage.cpp
@@ -3861,7 +3861,7 @@ static TQPluginManager<TQImageFormatInterface> *plugin_manager = 0;
static void *plugin_manager = 0;
#endif
-void qt_init_image_plugins()
+void tqt_init_image_plugins()
{
#ifndef QT_NO_COMPONENT
if ( plugin_manager )
@@ -3893,7 +3893,7 @@ static void cleanup()
#endif
}
-void qt_init_image_handlers() // initialize image handlers
+void tqt_init_image_handlers() // initialize image handlers
{
if ( !imageHandlers ) {
imageHandlers = new TQIHList;
@@ -3940,8 +3940,8 @@ void qt_init_image_handlers() // initialize image handlers
static TQImageHandler *get_image_handler( const char *format )
{ // get pointer to handler
- qt_init_image_handlers();
- qt_init_image_plugins();
+ tqt_init_image_handlers();
+ tqt_init_image_plugins();
register TQImageHandler *p = imageHandlers->first();
while ( p ) { // traverse list
if ( p->format == format )
@@ -4012,7 +4012,7 @@ void TQImageIO::defineIOHandler( const char *format,
image_io_handler readImage,
image_io_handler writeImage )
{
- qt_init_image_handlers();
+ tqt_init_image_handlers();
TQImageHandler *p;
p = new TQImageHandler( format, header, flags,
readImage, writeImage );
@@ -4278,8 +4278,8 @@ const char *TQImageIO::imageFormat( TQIODevice *d )
char buf[buflen];
char buf2[buflen];
- qt_init_image_handlers();
- qt_init_image_plugins();
+ tqt_init_image_handlers();
+ tqt_init_image_plugins();
int pos = d->at(); // save position
int rdlen = d->readBlock( buf, buflen ); // read a few bytes
@@ -4326,8 +4326,8 @@ TQStrList TQImageIO::inputFormats()
{
TQStrList result;
- qt_init_image_handlers();
- qt_init_image_plugins();
+ tqt_init_image_handlers();
+ tqt_init_image_plugins();
#ifndef QT_NO_ASYNC_IMAGE_IO
// Include asynchronous loaders first.
@@ -4356,8 +4356,8 @@ TQStrList TQImageIO::outputFormats()
{
TQStrList result;
- qt_init_image_handlers();
- qt_init_image_plugins();
+ tqt_init_image_handlers();
+ tqt_init_image_plugins();
// Include asynchronous writers (!) first.
// (None)
@@ -4497,7 +4497,7 @@ bool TQImageIO::write()
return FALSE;
TQImageHandler *h = get_image_handler( frmt );
if ( !h && !plugin_manager) {
- qt_init_image_plugins();
+ tqt_init_image_plugins();
h = get_image_handler( frmt );
}
if ( !h || !h->write_image ) {
diff --git a/src/kernel/qjpegio.cpp b/src/kernel/qjpegio.cpp
index cbc469fa..8e2f3e2e 100644
--- a/src/kernel/qjpegio.cpp
+++ b/src/kernel/qjpegio.cpp
@@ -105,7 +105,7 @@ extern "C" {
#endif
static
-void qt_init_source(j_decompress_ptr)
+void tqt_init_source(j_decompress_ptr)
{
}
@@ -168,7 +168,7 @@ void qt_term_source(j_decompress_ptr)
inline my_jpeg_source_mgr::my_jpeg_source_mgr(TQImageIO* iioptr)
{
- jpeg_source_mgr::init_source = qt_init_source;
+ jpeg_source_mgr::init_source = tqt_init_source;
jpeg_source_mgr::fill_input_buffer = qt_fill_input_buffer;
jpeg_source_mgr::skip_input_data = qt_skip_input_data;
jpeg_source_mgr::resync_to_restart = jpeg_resync_to_restart;
@@ -376,7 +376,7 @@ extern "C" {
#endif
static
-void qt_init_destination(j_compress_ptr)
+void tqt_init_destination(j_compress_ptr)
{
}
@@ -433,7 +433,7 @@ void qt_term_destination(j_compress_ptr cinfo)
inline
my_jpeg_destination_mgr::my_jpeg_destination_mgr(TQImageIO* iioptr)
{
- jpeg_destination_mgr::init_destination = qt_init_destination;
+ jpeg_destination_mgr::init_destination = tqt_init_destination;
jpeg_destination_mgr::empty_output_buffer = qt_empty_output_buffer;
jpeg_destination_mgr::term_destination = qt_term_destination;
iio = iioptr;
diff --git a/src/kernel/qmetaobject.cpp b/src/kernel/qmetaobject.cpp
index 6dbc044a..75bd9b5a 100644
--- a/src/kernel/qmetaobject.cpp
+++ b/src/kernel/qmetaobject.cpp
@@ -145,7 +145,7 @@ public:
#ifndef QT_NO_PROPERTIES
enumData(0), numEnumData(0),
propData(0),numPropData(0),
- qt_static_property(0),
+ tqt_static_property(0),
#endif
classInfo(0), numClassInfo(0) {}
#ifndef QT_NO_PROPERTIES
@@ -153,7 +153,7 @@ public:
int numEnumData;
const TQMetaProperty *propData;
int numPropData;
- bool (*qt_static_property)(TQObject*, int, int, TQVariant*);
+ bool (*tqt_static_property)(TQObject*, int, int, TQVariant*);
#endif
const TQClassInfo *classInfo;
int numClassInfo;
@@ -249,7 +249,7 @@ TQMetaObject::TQMetaObject( const char *const class_name, TQMetaObject *super_cl
const TQMetaData *const signal_data, int n_signals,
const TQMetaProperty *const prop_data, int n_props,
const TQMetaEnum *const enum_data, int n_enums,
- bool (*qt_static_property)(TQObject*, int, int, TQVariant*),
+ bool (*tqt_static_property)(TQObject*, int, int, TQVariant*),
const TQClassInfo *const class_info, int n_info )
{
classname = class_name; // set meta data
@@ -265,7 +265,7 @@ TQMetaObject::TQMetaObject( const char *const class_name, TQMetaObject *super_cl
d->numPropData = n_props;
d->enumData = enum_data;
d->numEnumData = n_enums;
- d->qt_static_property = qt_static_property;
+ d->tqt_static_property = tqt_static_property;
d->classInfo = class_info;
d->numClassInfo = n_info;
@@ -492,14 +492,14 @@ TQMetaObject *TQMetaObject::new_metaobject( const char *classname,
const TQMetaData * const signal_data, int n_signals,
const TQMetaProperty * const prop_data, int n_props,
const TQMetaEnum * const enum_data, int n_enums,
- bool (*qt_static_property)(TQObject*, int, int, TQVariant*),
+ bool (*tqt_static_property)(TQObject*, int, int, TQVariant*),
const TQClassInfo * const class_info, int n_info )
{
return new TQMetaObject( classname, superclassobject, slot_data, n_slots,
signal_data, n_signals,
prop_data, n_props,
enum_data, n_enums,
- qt_static_property,
+ tqt_static_property,
class_info, n_info );
}
#endif
@@ -827,14 +827,14 @@ bool TQMetaObject::hasMetaObject( const char *class_name )
### this functions will go away. It exists purely for the sake of meta
### object code generated with TQt 3.1.0
*/
-bool TQMetaObject::qt_static_property( TQObject* o, int id, int f, TQVariant* v)
+bool TQMetaObject::tqt_static_property( TQObject* o, int id, int f, TQVariant* v)
{
- if ( d->qt_static_property )
- return d->qt_static_property( o, id, f, v );
+ if ( d->tqt_static_property )
+ return d->tqt_static_property( o, id, f, v );
else if ( o ) // compatibility
- return o->qt_property( id, f, v );
+ return o->tqt_property( id, f, v );
else if ( superclass )
- return superclass->qt_static_property( o, id, f, v );
+ return superclass->tqt_static_property( o, id, f, v );
switch ( f ) {
case 3: case 4: case 5:
return TRUE;
@@ -1116,7 +1116,7 @@ bool TQMetaProperty::designable( TQObject* o ) const
return FALSE;
if ( o ) {
int idx = _id >= 0 ? _id : (*meta)->indexOfProperty( this, TRUE );
- return idx >= 0 && o->qt_property( idx, 3, 0 );
+ return idx >= 0 && o->tqt_property( idx, 3, 0 );
}
if ( testFlags( DesignableOverride ) ) {
const TQMetaObject* mo = (*meta);
@@ -1137,7 +1137,7 @@ bool TQMetaProperty::scriptable( TQObject* o ) const
{
if ( o ) {
int idx = _id >= 0 ? _id : (*meta)->indexOfProperty( this, TRUE );
- return idx >= 0 && o->qt_property( idx, 4, 0 );
+ return idx >= 0 && o->tqt_property( idx, 4, 0 );
}
if ( testFlags( ScriptableOverride ) ) {
const TQMetaObject* mo = (*meta);
@@ -1160,7 +1160,7 @@ bool TQMetaProperty::stored( TQObject* o ) const
return FALSE;
if ( o ) {
int idx = _id >= 0 ? _id : (*meta)->indexOfProperty( this, TRUE );
- return idx >= 0 && o->qt_property( idx, 5, 0 );
+ return idx >= 0 && o->tqt_property( idx, 5, 0 );
}
if ( testFlags( StoredOverride ) ) {
const TQMetaObject* mo = (*meta);
@@ -1185,7 +1185,7 @@ bool TQMetaProperty::reset( TQObject* o ) const
int idx = _id >= 0 ? _id : (*meta)->indexOfProperty( this, TRUE );
if ( idx < 0 )
return 0;
- return o->qt_property( idx, 2, 0 );
+ return o->tqt_property( idx, 2, 0 );
}
diff --git a/src/kernel/qmime.cpp b/src/kernel/qmime.cpp
index d36b88ae..8b962a64 100644
--- a/src/kernel/qmime.cpp
+++ b/src/kernel/qmime.cpp
@@ -110,8 +110,8 @@ void TQMimeSource::clearCache()
TQMimeSource::~TQMimeSource()
{
#ifndef QT_NO_CLIPBOARD
- extern void qt_clipboard_cleanup_mime_source(TQMimeSource *);
- qt_clipboard_cleanup_mime_source(this);
+ extern void tqt_clipboard_cleanup_mime_source(TQMimeSource *);
+ tqt_clipboard_cleanup_mime_source(this);
#endif
clearCache();
}
diff --git a/src/kernel/qobject.cpp b/src/kernel/qobject.cpp
index e958f636..61ed4e7e 100644
--- a/src/kernel/qobject.cpp
+++ b/src/kernel/qobject.cpp
@@ -246,14 +246,14 @@ static void removeObjFromList( TQObjectList *objList, const TQObject *obj,
Returns 0 if there is no such child.
\code
- TQListBox *c = (TQListBox *) qt_find_obj_child( myWidget, "TQListBox",
+ TQListBox *c = (TQListBox *) tqt_find_obj_child( myWidget, "TQListBox",
"my list box" );
if ( c )
c->insertItem( "another string" );
\endcode
*/
-void *qt_find_obj_child( TQObject *parent, const char *type, const char *name )
+void *tqt_find_obj_child( TQObject *parent, const char *type, const char *name )
{
const TQObjectList *list = parent->children();
if ( list ) {
@@ -303,7 +303,7 @@ static void qt_spy_signal( TQObject* sender, int signal, TQUObject* o )
TQObject* old_sender = qt_spy_signal_sender;
qt_spy_signal_sender = sender;
- tqt_preliminary_signal_spy->qt_invoke( slot, o );
+ tqt_preliminary_signal_spy->tqt_invoke( slot, o );
qt_spy_signal_sender = old_sender;
break;
}
@@ -616,7 +616,7 @@ bool TQObject::inherits( const char *clname ) const
\sa inherits()
*/
-void *qt_inheritedBy( TQMetaObject *superClass, const TQObject *object )
+void *tqt_inheritedBy( TQMetaObject *superClass, const TQObject *object )
{
if (!object)
return 0;
@@ -2378,9 +2378,9 @@ void TQObject::activate_signal( TQConnectionList *clist, TQUObject *o )
sol->currentSender = this;
}
if ( c->memberType() == TQSIGNAL_CODE )
- object->qt_emit( c->member(), o );
+ object->tqt_emit( c->member(), o );
else
- object->qt_invoke( c->member(), o );
+ object->tqt_invoke( c->member(), o );
if ( sol ) {
sol->currentSender = oldSender;
if ( sol->deref() )
@@ -2402,9 +2402,9 @@ void TQObject::activate_signal( TQConnectionList *clist, TQUObject *o )
sol->currentSender = this;
}
if ( c->memberType() == TQSIGNAL_CODE )
- object->qt_emit( c->member(), o );
+ object->tqt_emit( c->member(), o );
else
- object->qt_invoke( c->member(), o );
+ object->tqt_invoke( c->member(), o );
if (sol ) {
sol->currentSender = oldSender;
if ( sol->deref() )
@@ -2631,7 +2631,7 @@ bool TQObject::setProperty( const char *name, const TQVariant& value )
} else if ( v.type() != TQVariant::Int && v.type() != TQVariant::UInt ) {
return FALSE;
}
- return qt_property( id, 0, &v );
+ return tqt_property( id, 0, &v );
}
TQVariant::Type type = (TQVariant::Type)(p->flags >> 24);
@@ -2639,7 +2639,7 @@ bool TQObject::setProperty( const char *name, const TQVariant& value )
type = TQVariant::nameToType( p->type() );
if ( type != TQVariant::Invalid && !v.canCast( type ) )
return FALSE;
- return qt_property( id, 0, &v );
+ return tqt_property( id, 0, &v );
}
/*!
@@ -2666,8 +2666,8 @@ TQVariant TQObject::property( const char *name ) const
className(), name );
return v;
}
- TQObject* that = (TQObject*) this; // moc ensures constness for the qt_property call
- that->qt_property( id, 1, &v );
+ TQObject* that = (TQObject*) this; // moc ensures constness for the tqt_property call
+ that->tqt_property( id, 1, &v );
return v;
}
diff --git a/src/kernel/qpixmap_x11.cpp b/src/kernel/qpixmap_x11.cpp
index 328f7817..fb4168aa 100644
--- a/src/kernel/qpixmap_x11.cpp
+++ b/src/kernel/qpixmap_x11.cpp
@@ -112,7 +112,7 @@ static XShmSegmentInfo xshminfo;
static XImage *xshmimg = 0;
static Pixmap xshmpm = 0;
-static void qt_cleanup_mitshm()
+static void tqt_cleanup_mitshm()
{
if ( xshmimg == 0 )
return;
@@ -137,11 +137,11 @@ static bool qt_create_mitshm_buffer( const TQPaintDevice* dev, int w, int h )
Visual *vis = (Visual*)dev->x11Visual();
if ( xshminit ) {
- qt_cleanup_mitshm();
+ tqt_cleanup_mitshm();
} else {
if ( !XShmQueryVersion(dpy, &major, &minor, &pixmaps_ok) )
return FALSE; // MIT Shm not supported
- tqAddPostRoutine( qt_cleanup_mitshm );
+ tqAddPostRoutine( tqt_cleanup_mitshm );
xshminit = TRUE;
}
diff --git a/src/kernel/qrichtext.cpp b/src/kernel/qrichtext.cpp
index 59f13022..42bcc9d2 100644
--- a/src/kernel/qrichtext.cpp
+++ b/src/kernel/qrichtext.cpp
@@ -7219,7 +7219,7 @@ static const Entity entitylist [] = {
static TQMap<TQString, TQChar> *html_map = 0;
-static void qt_cleanup_html_map()
+static void tqt_cleanup_html_map()
{
delete html_map;
html_map = 0;
@@ -7229,7 +7229,7 @@ static TQMap<TQString, TQChar> *htmlMap()
{
if ( !html_map ) {
html_map = new TQMap<TQString, TQChar>;
- tqAddPostRoutine( qt_cleanup_html_map );
+ tqAddPostRoutine( tqt_cleanup_html_map );
const Entity *ent = entitylist;
while( ent->code ) {
diff --git a/src/kernel/qstylesheet.cpp b/src/kernel/qstylesheet.cpp
index e74a9be1..dcddbb9e 100644
--- a/src/kernel/qstylesheet.cpp
+++ b/src/kernel/qstylesheet.cpp
@@ -1286,7 +1286,7 @@ void TQStyleSheet::init()
static TQStyleSheet* defaultsheet = 0;
-static TQSingleCleanupHandler<TQStyleSheet> qt_cleanup_stylesheet;
+static TQSingleCleanupHandler<TQStyleSheet> tqt_cleanup_stylesheet;
/*!
Returns the application-wide default style sheet. This style sheet
@@ -1302,7 +1302,7 @@ TQStyleSheet* TQStyleSheet::defaultSheet()
{
if (!defaultsheet) {
defaultsheet = new TQStyleSheet();
- qt_cleanup_stylesheet.set( &defaultsheet );
+ tqt_cleanup_stylesheet.set( &defaultsheet );
}
return defaultsheet;
}
@@ -1318,12 +1318,12 @@ void TQStyleSheet::setDefaultSheet( TQStyleSheet* sheet)
{
if ( defaultsheet != sheet ) {
if ( defaultsheet )
- qt_cleanup_stylesheet.reset();
+ tqt_cleanup_stylesheet.reset();
delete defaultsheet;
}
defaultsheet = sheet;
if ( defaultsheet )
- qt_cleanup_stylesheet.set( &defaultsheet );
+ tqt_cleanup_stylesheet.set( &defaultsheet );
}
/*!\internal
diff --git a/src/kernel/qwidget.cpp b/src/kernel/qwidget.cpp
index 5a27310f..a29036c1 100644
--- a/src/kernel/qwidget.cpp
+++ b/src/kernel/qwidget.cpp
@@ -1760,8 +1760,8 @@ void TQWidget::setEnabled( bool enable )
// enforce the windows behavior of clearing the cursor on
// disabled widgets
- extern void qt_x11_enforce_cursor( TQWidget * w ); // defined in qwidget_x11.cpp
- qt_x11_enforce_cursor( this );
+ extern void tqt_x11_enforce_cursor( TQWidget * w ); // defined in qwidget_x11.cpp
+ tqt_x11_enforce_cursor( this );
}
#endif
#ifdef Q_WS_WIN
@@ -4044,9 +4044,9 @@ void TQWidget::show()
TQApplication::sendEvent( this, &showEvent );
if ( testWFlags(WShowModal) ) {
- // qt_enter_modal *before* show, otherwise the initial
+ // tqt_enter_modal *before* show, otherwise the initial
// stacking might be wrong
- qt_enter_modal( this );
+ tqt_enter_modal( this );
}
// do not show the window directly, but post a show-window request
@@ -4096,7 +4096,7 @@ void TQWidget::hide()
// destroyed and we lose all access to its parent because we haven't
// left modality. (Eg. modal Progress Dialog)
if ( testWFlags(WShowModal) )
- qt_leave_modal( this );
+ tqt_leave_modal( this );
#if defined(Q_WS_WIN)
if ( isTopLevel() && !isPopup() && parentWidget() && isActiveWindow() )
@@ -4940,7 +4940,7 @@ bool TQWidget::event( TQEvent *e )
if ( e->type() == TQEvent::LanguageChange ) {
int index = metaObject()->findSlot( "languageChange()", TRUE );
if ( index >= 0 )
- qt_invoke( index, 0 );
+ tqt_invoke( index, 0 );
}
update();
break;
@@ -4985,7 +4985,7 @@ bool TQWidget::event( TQEvent *e )
TQObject *o;
while( ( o = it.current() ) != 0 ) {
++it;
- TQWidget *w = ::qt_cast<TQWidget*>(o);
+ TQWidget *w = ::tqt_cast<TQWidget*>(o);
if (w && !w->testWFlags(TQt::WShowModal))
TQApplication::sendEvent( o, e );
}
diff --git a/src/kernel/qwidget_x11.cpp b/src/kernel/qwidget_x11.cpp
index d2631316..71c36373 100644
--- a/src/kernel/qwidget_x11.cpp
+++ b/src/kernel/qwidget_x11.cpp
@@ -207,7 +207,7 @@ Window qt_XCreateSimpleWindow( const TQWidget *creator,
void qt_XDestroyWindow( const TQWidget *destroyer,
Display *display, Window window );
-Q_EXPORT void qt_x11_enforce_cursor( TQWidget * w )
+Q_EXPORT void tqt_x11_enforce_cursor( TQWidget * w )
{
if ( w->testWState( TQt::WState_OwnCursor ) ) {
TQCursor * oc = TQApplication::overrideCursor();
@@ -225,7 +225,7 @@ Q_EXPORT void qt_x11_enforce_cursor( TQWidget * w )
}
}
-Q_EXPORT void qt_wait_for_window_manager( TQWidget* w )
+Q_EXPORT void tqt_wait_for_window_manager( TQWidget* w )
{
TQApplication::flushX();
XEvent ev;
@@ -754,7 +754,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
} else if ( topLevel ) { // set X cursor
setWState( WState_OwnCursor );
if ( initializeWindow )
- qt_x11_enforce_cursor( this );
+ tqt_x11_enforce_cursor( this );
}
if ( destroyw )
@@ -800,7 +800,7 @@ void TQWidget::destroy( bool destroyWindow, bool destroySubWindows )
if ( isTopLevel() )
qt_deferred_map_take( this );
if ( testWFlags(WShowModal) ) // just be sure we leave modal
- qt_leave_modal( this );
+ tqt_leave_modal( this );
else if ( testWFlags(WType_Popup) )
tqApp->closePopup( this );
@@ -1210,7 +1210,7 @@ void TQWidget::setCursor( const TQCursor &cursor )
extra->curs = new TQCursor(cursor);
}
setWState( WState_OwnCursor );
- qt_x11_enforce_cursor( this );
+ tqt_x11_enforce_cursor( this );
XFlush( x11Display() );
}
@@ -1222,7 +1222,7 @@ void TQWidget::unsetCursor()
}
if ( !isTopLevel() )
clearWState( WState_OwnCursor );
- qt_x11_enforce_cursor( this );
+ tqt_x11_enforce_cursor( this );
XFlush( x11Display() );
}
@@ -1932,7 +1932,7 @@ void TQWidget::showWindow()
&& !(qt_net_supports(qt_net_wm_state_max_h)
&& qt_net_supports(qt_net_wm_state_max_v))) {
XMapWindow( x11Display(), winId() );
- qt_wait_for_window_manager(this);
+ tqt_wait_for_window_manager(this);
// if the wm was not smart enough to adjust our size, do that manually
updateFrameStrut();
@@ -1956,7 +1956,7 @@ void TQWidget::showWindow()
if (isFullScreen() && !qt_net_supports(qt_net_wm_state_fullscreen)) {
XMapWindow(x11Display(), winId());
- qt_wait_for_window_manager(this);
+ tqt_wait_for_window_manager(this);
return;
}
}
diff --git a/src/moc/moc.y b/src/moc/moc.y
index c9c3f0b9..0026ef2c 100644
--- a/src/moc/moc.y
+++ b/src/moc/moc.y
@@ -1816,7 +1816,7 @@ int main( int argc, char **argv )
return ret;
}
#else
-bool qt_is_gui_used = FALSE;
+bool tqt_is_gui_used = FALSE;
#include <ctype.h>
#include <stdio.h>
#include <string.h>
@@ -2319,7 +2319,7 @@ char *straddSpc( const char *s1, const char *s2,
/*
- We call B::qt_invoke() rather than A::B::qt_invoke() to
+ We call B::tqt_invoke() rather than A::B::tqt_invoke() to
work around a bug in MSVC 6. The bug occurs if the
super-class is in a namespace and the sub-class isn't.
@@ -3065,7 +3065,7 @@ void generateClass() // generate C++ source code for a class
//
// Generate smart cast function
//
- fprintf( out, "\nvoid* %s::qt_cast( const char* clname )\n{\n",
+ fprintf( out, "\nvoid* %s::tqt_cast( const char* clname )\n{\n",
(const char*)qualifiedClassName() );
fprintf( out, " if ( !qstrcmp( clname, \"%s\" ) )\n"
"\treturn this;\n",
@@ -3078,7 +3078,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "\treturn (%s*)this;\n", fixed.data());
}
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_cast( clname );\n",
+ fprintf( out, " return %s::tqt_cast( clname );\n",
(const char*)purestSuperClassName() );
else
fprintf( out, " return 0;\n" );
@@ -3234,9 +3234,9 @@ void generateClass() // generate C++ source code for a class
//
-// Generate internal qt_invoke() function
+// Generate internal tqt_invoke() function
//
- fprintf( out, "\nbool %s::qt_invoke( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_invoke( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
if( !g->slots.isEmpty() ) {
fprintf( out, " switch ( _id - staticMetaObject()->slotOffset() ) {\n" );
@@ -3298,7 +3298,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " default:\n" );
if ( !g->superClassName.isEmpty() && !isTQObject ) {
- fprintf( out, "\treturn %s::qt_invoke( _id, _o );\n",
+ fprintf( out, "\treturn %s::tqt_invoke( _id, _o );\n",
(const char *) purestSuperClassName() );
} else {
fprintf( out, "\treturn FALSE;\n" );
@@ -3307,7 +3307,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " return TRUE;\n}\n" );
} else {
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_invoke(_id,_o);\n}\n",
+ fprintf( out, " return %s::tqt_invoke(_id,_o);\n}\n",
(const char *) purestSuperClassName() );
else
fprintf( out, " return FALSE;\n}\n" );
@@ -3315,9 +3315,9 @@ void generateClass() // generate C++ source code for a class
//
-// Generate internal qt_emit() function
+// Generate internal tqt_emit() function
//
- fprintf( out, "\nbool %s::qt_emit( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_emit( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
if ( !g->signals.isEmpty() ) {
fprintf( out, " switch ( _id - staticMetaObject()->signalOffset() ) {\n" );
@@ -3369,7 +3369,7 @@ void generateClass() // generate C++ source code for a class
}
fprintf( out, " default:\n" );
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, "\treturn %s::qt_emit(_id,_o);\n",
+ fprintf( out, "\treturn %s::tqt_emit(_id,_o);\n",
(const char *) purestSuperClassName() );
else
fprintf( out, "\treturn FALSE;\n" );
@@ -3377,7 +3377,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " return TRUE;\n}\n" );
} else {
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_emit(_id,_o);\n}\n",
+ fprintf( out, " return %s::tqt_emit(_id,_o);\n}\n",
(const char *) purestSuperClassName() );
else
fprintf( out, " return FALSE;\n}\n" );
@@ -3386,10 +3386,10 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "#ifndef QT_NO_PROPERTIES\n" );
//
-// Generate internal qt_property() functions
+// Generate internal tqt_property() functions
//
- fprintf( out, "\nbool %s::qt_property( int id, int f, TQVariant* v)\n{\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_property( int id, int f, TQVariant* v)\n{\n", qualifiedClassName().data() );
if ( !g->props.isEmpty() ) {
fprintf( out, " switch ( id - staticMetaObject()->propertyOffset() ) {\n" );
@@ -3502,7 +3502,7 @@ void generateClass() // generate C++ source code for a class
}
fprintf( out, " default:\n" );
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, "\treturn %s::qt_property( id, f, v );\n",
+ fprintf( out, "\treturn %s::tqt_property( id, f, v );\n",
(const char *) purestSuperClassName() );
else
fprintf( out, "\treturn FALSE;\n" );
@@ -3510,18 +3510,18 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " return TRUE;\n" );
if ( need_resolve )
- fprintf( out, "resolve:\n return %s::qt_property( staticMetaObject()->resolveProperty(id), f, v );\n",
+ fprintf( out, "resolve:\n return %s::tqt_property( staticMetaObject()->resolveProperty(id), f, v );\n",
(const char *) purestSuperClassName() );
fprintf( out, "}\n" );
} else {
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_property( id, f, v);\n}\n",
+ fprintf( out, " return %s::tqt_property( id, f, v);\n}\n",
(const char *) purestSuperClassName() );
else
fprintf( out, " return FALSE;\n}\n" );
}
- fprintf( out, "\nbool %s::qt_static_property( TQObject* , int , int , TQVariant* ){ return FALSE; }\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_static_property( TQObject* , int , int , TQVariant* ){ return FALSE; }\n", qualifiedClassName().data() );
fprintf( out, "#endif // QT_NO_PROPERTIES\n" );
}
diff --git a/src/moc/moc_yacc.cpp b/src/moc/moc_yacc.cpp
index f3c5c75c..d7f661fe 100644
--- a/src/moc/moc_yacc.cpp
+++ b/src/moc/moc_yacc.cpp
@@ -4642,7 +4642,7 @@ int main( int argc, char **argv )
return ret;
}
#else
-bool qt_is_gui_used = FALSE;
+bool tqt_is_gui_used = FALSE;
#include <ctype.h>
#include <stdio.h>
#include <string.h>
@@ -5145,7 +5145,7 @@ char *straddSpc( const char *s1, const char *s2,
/*
- We call B::qt_invoke() rather than A::B::qt_invoke() to
+ We call B::tqt_invoke() rather than A::B::tqt_invoke() to
work around a bug in MSVC 6. The bug occurs if the
super-class is in a namespace and the sub-class isn't.
@@ -5891,7 +5891,7 @@ void generateClass() // generate C++ source code for a class
//
// Generate smart cast function
//
- fprintf( out, "\nvoid* %s::qt_cast( const char* clname )\n{\n",
+ fprintf( out, "\nvoid* %s::tqt_cast( const char* clname )\n{\n",
(const char*)qualifiedClassName() );
fprintf( out, " if ( !qstrcmp( clname, \"%s\" ) )\n"
"\treturn this;\n",
@@ -5904,7 +5904,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "\treturn (%s*)this;\n", fixed.data());
}
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_cast( clname );\n",
+ fprintf( out, " return %s::tqt_cast( clname );\n",
(const char*)purestSuperClassName() );
else
fprintf( out, " return 0;\n" );
@@ -6060,9 +6060,9 @@ void generateClass() // generate C++ source code for a class
//
-// Generate internal qt_invoke() function
+// Generate internal tqt_invoke() function
//
- fprintf( out, "\nbool %s::qt_invoke( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_invoke( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
if( !g->slots.isEmpty() ) {
fprintf( out, " switch ( _id - staticMetaObject()->slotOffset() ) {\n" );
@@ -6124,7 +6124,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " default:\n" );
if ( !g->superClassName.isEmpty() && !isTQObject ) {
- fprintf( out, "\treturn %s::qt_invoke( _id, _o );\n",
+ fprintf( out, "\treturn %s::tqt_invoke( _id, _o );\n",
(const char *) purestSuperClassName() );
} else {
fprintf( out, "\treturn FALSE;\n" );
@@ -6133,7 +6133,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " return TRUE;\n}\n" );
} else {
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_invoke(_id,_o);\n}\n",
+ fprintf( out, " return %s::tqt_invoke(_id,_o);\n}\n",
(const char *) purestSuperClassName() );
else
fprintf( out, " return FALSE;\n}\n" );
@@ -6141,9 +6141,9 @@ void generateClass() // generate C++ source code for a class
//
-// Generate internal qt_emit() function
+// Generate internal tqt_emit() function
//
- fprintf( out, "\nbool %s::qt_emit( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_emit( int _id, TQUObject* _o )\n{\n", qualifiedClassName().data() );
if ( !g->signals.isEmpty() ) {
fprintf( out, " switch ( _id - staticMetaObject()->signalOffset() ) {\n" );
@@ -6195,7 +6195,7 @@ void generateClass() // generate C++ source code for a class
}
fprintf( out, " default:\n" );
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, "\treturn %s::qt_emit(_id,_o);\n",
+ fprintf( out, "\treturn %s::tqt_emit(_id,_o);\n",
(const char *) purestSuperClassName() );
else
fprintf( out, "\treturn FALSE;\n" );
@@ -6203,7 +6203,7 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " return TRUE;\n}\n" );
} else {
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_emit(_id,_o);\n}\n",
+ fprintf( out, " return %s::tqt_emit(_id,_o);\n}\n",
(const char *) purestSuperClassName() );
else
fprintf( out, " return FALSE;\n}\n" );
@@ -6212,10 +6212,10 @@ void generateClass() // generate C++ source code for a class
fprintf( out, "#ifndef QT_NO_PROPERTIES\n" );
//
-// Generate internal qt_property() functions
+// Generate internal tqt_property() functions
//
- fprintf( out, "\nbool %s::qt_property( int id, int f, TQVariant* v)\n{\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_property( int id, int f, TQVariant* v)\n{\n", qualifiedClassName().data() );
if ( !g->props.isEmpty() ) {
fprintf( out, " switch ( id - staticMetaObject()->propertyOffset() ) {\n" );
@@ -6328,7 +6328,7 @@ void generateClass() // generate C++ source code for a class
}
fprintf( out, " default:\n" );
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, "\treturn %s::qt_property( id, f, v );\n",
+ fprintf( out, "\treturn %s::tqt_property( id, f, v );\n",
(const char *) purestSuperClassName() );
else
fprintf( out, "\treturn FALSE;\n" );
@@ -6336,18 +6336,18 @@ void generateClass() // generate C++ source code for a class
fprintf( out, " return TRUE;\n" );
if ( need_resolve )
- fprintf( out, "resolve:\n return %s::qt_property( staticMetaObject()->resolveProperty(id), f, v );\n",
+ fprintf( out, "resolve:\n return %s::tqt_property( staticMetaObject()->resolveProperty(id), f, v );\n",
(const char *) purestSuperClassName() );
fprintf( out, "}\n" );
} else {
if ( !g->superClassName.isEmpty() && !isTQObject )
- fprintf( out, " return %s::qt_property( id, f, v);\n}\n",
+ fprintf( out, " return %s::tqt_property( id, f, v);\n}\n",
(const char *) purestSuperClassName() );
else
fprintf( out, " return FALSE;\n}\n" );
}
- fprintf( out, "\nbool %s::qt_static_property( TQObject* , int , int , TQVariant* ){ return FALSE; }\n", qualifiedClassName().data() );
+ fprintf( out, "\nbool %s::tqt_static_property( TQObject* , int , int , TQVariant* ){ return FALSE; }\n", qualifiedClassName().data() );
fprintf( out, "#endif // QT_NO_PROPERTIES\n" );
}
diff --git a/src/styles/qcommonstyle.cpp b/src/styles/qcommonstyle.cpp
index fa95124e..3510574c 100644
--- a/src/styles/qcommonstyle.cpp
+++ b/src/styles/qcommonstyle.cpp
@@ -1674,7 +1674,7 @@ void TQCommonStyle::drawComplexControl( ComplexControl control,
down = active & SC_TitleBarCloseButton;
if ( widget->testWFlags( WStyle_Tool )
#ifndef QT_NO_MAINWINDOW
- || ::qt_cast<TQDockWindow*>(widget)
+ || ::tqt_cast<TQDockWindow*>(widget)
#endif
)
pm = stylePixmap(SP_DockWindowCloseButton, widget);
@@ -2254,7 +2254,7 @@ int TQCommonStyle::pixelMetric(PixelMetric m, const TQWidget *widget) const
if ( widget->testWFlags( WStyle_Tool ) ) {
ret = TQMAX( widget->fontMetrics().lineSpacing(), 16 );
#ifndef QT_NO_MAINWINDOW
- } else if ( ::qt_cast<TQDockWindow*>(widget) ) {
+ } else if ( ::tqt_cast<TQDockWindow*>(widget) ) {
ret = TQMAX( widget->fontMetrics().lineSpacing(), 13 );
#endif
} else {
diff --git a/src/styles/qmotifplusstyle.cpp b/src/styles/qmotifplusstyle.cpp
index 528e6dce..36358792 100644
--- a/src/styles/qmotifplusstyle.cpp
+++ b/src/styles/qmotifplusstyle.cpp
@@ -179,24 +179,24 @@ void TQMotifPlusStyle::polish(TQPalette &)
void TQMotifPlusStyle::polish(TQWidget *widget)
{
#ifndef QT_NO_FRAME
- if (::qt_cast<TQFrame*>(widget) && ((TQFrame *) widget)->frameStyle() == TQFrame::Panel)
+ if (::tqt_cast<TQFrame*>(widget) && ((TQFrame *) widget)->frameStyle() == TQFrame::Panel)
((TQFrame *) widget)->setFrameStyle(TQFrame::WinPanel);
#endif
#ifndef QT_NO_MENUBAR
- if (::qt_cast<TQMenuBar*>(widget) && ((TQMenuBar *) widget)->frameStyle() != TQFrame::NoFrame)
+ if (::tqt_cast<TQMenuBar*>(widget) && ((TQMenuBar *) widget)->frameStyle() != TQFrame::NoFrame)
((TQMenuBar *) widget)->setFrameStyle(TQFrame::StyledPanel | TQFrame::Raised);
#endif
#ifndef QT_NO_TOOLBAR
- if (::qt_cast<TQToolBar*>(widget))
+ if (::tqt_cast<TQToolBar*>(widget))
widget->layout()->setMargin(2);
#endif
if (useHoveringHighlight) {
- if (::qt_cast<TQButton*>(widget) || ::qt_cast<TQComboBox*>(widget))
+ if (::tqt_cast<TQButton*>(widget) || ::tqt_cast<TQComboBox*>(widget))
widget->installEventFilter(this);
- if (::qt_cast<TQScrollBar*>(widget) || ::qt_cast<TQSlider*>(widget)) {
+ if (::tqt_cast<TQScrollBar*>(widget) || ::tqt_cast<TQSlider*>(widget)) {
widget->setMouseTracking(TRUE);
widget->installEventFilter(this);
}
@@ -1493,7 +1493,7 @@ bool TQMotifPlusStyle::eventFilter(TQObject *object, TQEvent *event)
{
singleton->mousePressed = TRUE;
- if (!::qt_cast<TQSlider*>(object))
+ if (!::tqt_cast<TQSlider*>(object))
break;
singleton->sliderActive = TRUE;
@@ -1504,7 +1504,7 @@ bool TQMotifPlusStyle::eventFilter(TQObject *object, TQEvent *event)
{
singleton->mousePressed = FALSE;
- if (!::qt_cast<TQSlider*>(object))
+ if (!::tqt_cast<TQSlider*>(object))
break;
singleton->sliderActive = FALSE;
@@ -1541,7 +1541,7 @@ bool TQMotifPlusStyle::eventFilter(TQObject *object, TQEvent *event)
if (! object->isWidgetType() || object != singleton->hoverWidget)
break;
- if (!::qt_cast<TQScrollBar*>(object) && ! ::qt_cast<TQSlider*>(object))
+ if (!::tqt_cast<TQScrollBar*>(object) && ! ::tqt_cast<TQSlider*>(object))
break;
singleton->mousePos = ((TQMouseEvent *) event)->pos();
diff --git a/src/styles/qsgistyle.cpp b/src/styles/qsgistyle.cpp
index e09b4aa3..86dcef36 100644
--- a/src/styles/qsgistyle.cpp
+++ b/src/styles/qsgistyle.cpp
@@ -214,7 +214,7 @@ TQSGIStyle::polish( TQWidget* w )
sgiPal.setColor( TQPalette::Disabled, TQColorGroup::HighlightedText, sgiPal.disabled().base() );
}
- if ( ::qt_cast<TQLineEdit*>(w) || ::qt_cast<TQTextEdit*>(w) ) {
+ if ( ::tqt_cast<TQLineEdit*>(w) || ::tqt_cast<TQTextEdit*>(w) ) {
// different basecolor and highlighting in Q(Multi)LineEdit
sgiPal.setColor( TQColorGroup::Base, TQColor(211,181,181) );
sgiPal.setColor( TQPalette::Active, TQColorGroup::Highlight, sgiPal.active().midlight() );
@@ -224,27 +224,27 @@ TQSGIStyle::polish( TQWidget* w )
sgiPal.setColor( TQPalette::Disabled, TQColorGroup::Highlight, sgiPal.disabled().midlight() );
sgiPal.setColor( TQPalette::Disabled, TQColorGroup::HighlightedText, sgiPal.disabled().text() );
- } else if ( ::qt_cast<TQMenuBar*>(w) || ::qt_cast<TQToolBar*>(w) ) {
+ } else if ( ::tqt_cast<TQMenuBar*>(w) || ::tqt_cast<TQToolBar*>(w) ) {
sgiPal.setColor( TQColorGroup::Button, sgiPal.active().midlight() );
}
w->setPalette( sgiPal );
}
- if ( ::qt_cast<TQButton*>(w) || ::qt_cast<TQSlider*>(w) || ::qt_cast<TQScrollBar*>(w) ) {
+ if ( ::tqt_cast<TQButton*>(w) || ::tqt_cast<TQSlider*>(w) || ::tqt_cast<TQScrollBar*>(w) ) {
w->installEventFilter( this );
w->setMouseTracking( TRUE );
#ifndef QT_NO_SCROLLBAR
- if ( ::qt_cast<TQScrollBar*>(w) )
+ if ( ::tqt_cast<TQScrollBar*>(w) )
w->setBackgroundMode( TQWidget::NoBackground );
#endif
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQFont f = TQApplication::font();
f.setBold( TRUE );
f.setItalic( TRUE );
w->setFont( f );
#ifndef QT_NO_MENUBAR
- } else if ( ::qt_cast<TQMenuBar*>(w) ) {
+ } else if ( ::tqt_cast<TQMenuBar*>(w) ) {
((TQFrame*) w)->setFrameStyle(TQFrame::StyledPanel | TQFrame::Raised);
w->setBackgroundMode( TQWidget::PaletteBackground );
TQFont f = TQApplication::font();
@@ -253,14 +253,14 @@ TQSGIStyle::polish( TQWidget* w )
w->setFont( f );
#endif
#ifndef QT_NO_POPUPMENU
- } else if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ } else if ( ::tqt_cast<TQPopupMenu*>(w) ) {
((TQFrame*) w)->setLineWidth( pixelMetric( PM_DefaultFrameWidth ) + 1 );
TQFont f = TQApplication::font();
f.setBold( TRUE );
f.setItalic( TRUE );
w->setFont( f );
#endif
- } else if ( ::qt_cast<TQToolBar*>(w) || w->inherits("TQToolBarSeparator") ) {
+ } else if ( ::tqt_cast<TQToolBar*>(w) || w->inherits("TQToolBarSeparator") ) {
w->setBackgroundMode( TQWidget::PaletteBackground );
}
}
@@ -269,15 +269,15 @@ TQSGIStyle::polish( TQWidget* w )
void
TQSGIStyle::unPolish( TQWidget* w )
{
- if ( ::qt_cast<TQButton*>(w) || ::qt_cast<TQSlider*>(w) || ::qt_cast<TQScrollBar*>(w) ) {
+ if ( ::tqt_cast<TQButton*>(w) || ::tqt_cast<TQSlider*>(w) || ::tqt_cast<TQScrollBar*>(w) ) {
w->removeEventFilter( this );
#ifndef QT_NO_POPUPMENU
- } else if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ } else if ( ::tqt_cast<TQPopupMenu*>(w) ) {
((TQFrame*)w)->setLineWidth( pixelMetric( PM_DefaultFrameWidth ) );
w->setFont( TQApplication::font() );
#endif
#if !defined(QT_NO_MENUBAR) || !defined(QT_NO_COMBOBOX)
- } else if ( ::qt_cast<TQMenuBar*>(w) || ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQMenuBar*>(w) || ::tqt_cast<TQComboBox*>(w) ) {
w->setFont( TQApplication::font() );
#endif
}
@@ -295,7 +295,7 @@ bool TQSGIStyle::eventFilter( TQObject* o, TQEvent* e )
case TQEvent::MouseButtonPress:
{
#ifndef QT_NO_SCROLLBAR
- if ( ::qt_cast<TQScrollBar*>(widget) ) {
+ if ( ::tqt_cast<TQScrollBar*>(widget) ) {
d->lastScrollbarRect.rect = ((TQScrollBar*)widget)->sliderRect();
d->lastScrollbarRect.scrollbar = ((TQScrollBar*)widget);
widget->repaint( FALSE );
@@ -303,7 +303,7 @@ bool TQSGIStyle::eventFilter( TQObject* o, TQEvent* e )
#endif
{
#ifndef QT_NO_SLIDER
- if ( ::qt_cast<TQSlider*>(widget) ) {
+ if ( ::tqt_cast<TQSlider*>(widget) ) {
d->lastSliderRect.rect = ((TQSlider*)widget)->sliderRect();
d->lastSliderRect.slider = ((TQSlider*)widget);
widget->repaint( FALSE );
@@ -317,13 +317,13 @@ bool TQSGIStyle::eventFilter( TQObject* o, TQEvent* e )
{
if ( 0 ) {
#ifndef QT_NO_SCROLLBAR
- } else if ( ::qt_cast<TQScrollBar*>(widget) ) {
+ } else if ( ::tqt_cast<TQScrollBar*>(widget) ) {
TQRect oldRect = d->lastScrollbarRect.rect;
d->lastScrollbarRect.rect = TQRect( 0, -1, 0, -1 );
widget->repaint( oldRect, FALSE );
#endif
#ifndef QT_NO_SLIDER
- } else if ( ::qt_cast<TQSlider*>(widget) ) {
+ } else if ( ::tqt_cast<TQSlider*>(widget) ) {
TQRect oldRect = d->lastSliderRect.rect;
d->lastSliderRect.rect = TQRect( 0, -1, 0, -1 );
widget->repaint( oldRect, FALSE );
diff --git a/src/styles/qwindowsstyle.cpp b/src/styles/qwindowsstyle.cpp
index b58eb9d8..e716a53e 100644
--- a/src/styles/qwindowsstyle.cpp
+++ b/src/styles/qwindowsstyle.cpp
@@ -129,7 +129,7 @@ bool TQWindowsStyle::Private::eventFilter(TQObject *o, TQEvent *e)
if (!o->isWidgetType())
return TQObject::eventFilter(o, e);
- TQWidget *widget = ::qt_cast<TQWidget*>(o);
+ TQWidget *widget = ::tqt_cast<TQWidget*>(o);
switch(e->type()) {
case TQEvent::KeyPress:
@@ -179,7 +179,7 @@ bool TQWindowsStyle::Private::eventFilter(TQObject *o, TQEvent *e)
case TQEvent::FocusOut:
{
// Menubars toggle based on focus
- TQMenuBar *menuBar = ::qt_cast<TQMenuBar*>(o);
+ TQMenuBar *menuBar = ::tqt_cast<TQMenuBar*>(o);
if (menuBar && !menuBarTimer) // delayed repaint to avoid flicker
menuBarTimer = menuBar->startTimer(0);
}
@@ -191,7 +191,7 @@ bool TQWindowsStyle::Private::eventFilter(TQObject *o, TQEvent *e)
break;
case TQEvent::Timer:
{
- TQMenuBar *menuBar = ::qt_cast<TQMenuBar*>(o);
+ TQMenuBar *menuBar = ::tqt_cast<TQMenuBar*>(o);
TQTimerEvent *te = (TQTimerEvent*)e;
if (menuBar && te->timerId() == menuBarTimer) {
menuBar->killTimer(te->timerId());
@@ -1116,7 +1116,7 @@ int TQWindowsStyle::pixelMetric(PixelMetric metric, const TQWidget *widget) cons
#if defined(Q_WS_WIN)
case PM_TitleBarHeight:
- if ( widget && ( widget->testWFlags( WStyle_Tool ) || ::qt_cast<TQDockWindow*>(widget) ) ) {
+ if ( widget && ( widget->testWFlags( WStyle_Tool ) || ::tqt_cast<TQDockWindow*>(widget) ) ) {
// MS always use one less than they say
#if defined(Q_OS_TEMP)
ret = GetSystemMetrics( SM_CYCAPTION ) - 1;
@@ -2084,10 +2084,10 @@ int TQWindowsStyle::styleHint( StyleHint hint,
ret = cues ? 1 : 0;
// Do nothing if we always paint underlines
if (!ret && widget && d) {
- TQMenuBar *menuBar = ::qt_cast<TQMenuBar*>(widget);
+ TQMenuBar *menuBar = ::tqt_cast<TQMenuBar*>(widget);
TQPopupMenu *popupMenu = 0;
if (!menuBar)
- popupMenu = ::qt_cast<TQPopupMenu*>(widget);
+ popupMenu = ::tqt_cast<TQPopupMenu*>(widget);
// If we paint a menubar draw underlines if it has focus, or if alt is down,
// or if a popup menu belonging to the menubar is active and paints underlines
@@ -2097,8 +2097,8 @@ int TQWindowsStyle::styleHint( StyleHint hint,
} else if (d->altDown()) {
ret = 1;
} else if (tqApp->focusWidget() && tqApp->focusWidget()->isPopup()) {
- popupMenu = ::qt_cast<TQPopupMenu*>(tqApp->focusWidget());
- TQMenuData *pm = popupMenu ? (TQMenuData*)popupMenu->qt_cast("TQMenuData") : 0;
+ popupMenu = ::tqt_cast<TQPopupMenu*>(tqApp->focusWidget());
+ TQMenuData *pm = popupMenu ? (TQMenuData*)popupMenu->tqt_cast("TQMenuData") : 0;
if (pm && ((FriendlyMenuData*)pm)->parentMenu == menuBar) {
if (d->hasSeenAlt(menuBar))
ret = 1;
@@ -2106,7 +2106,7 @@ int TQWindowsStyle::styleHint( StyleHint hint,
}
// If we paint a popup menu draw underlines if the respective menubar does
} else if (popupMenu) {
- TQMenuData *pm = (TQMenuData*)popupMenu->qt_cast("TQMenuData");
+ TQMenuData *pm = (TQMenuData*)popupMenu->tqt_cast("TQMenuData");
while (pm) {
if (((FriendlyMenuData*)pm)->isMenuBar) {
menuBar = (TQMenuBar*)pm;
diff --git a/src/table/qtable.cpp b/src/table/qtable.cpp
index 94ee5393..40f407bf 100644
--- a/src/table/qtable.cpp
+++ b/src/table/qtable.cpp
@@ -819,7 +819,7 @@ a TQLineEdit you will need to reimplement this function.
void TQTableItem::setContentFromEditor( TQWidget *w )
{
- TQLineEdit *le = ::qt_cast<TQLineEdit*>(w);
+ TQLineEdit *le = ::tqt_cast<TQLineEdit*>(w);
if ( le ) {
TQString input = le->text();
if ( le->validator() )
@@ -1280,7 +1280,7 @@ TQWidget *TQComboTableItem::createEditor() const
void TQComboTableItem::setContentFromEditor( TQWidget *w )
{
- TQComboBox *cb = ::qt_cast<TQComboBox*>(w);
+ TQComboBox *cb = ::tqt_cast<TQComboBox*>(w);
if ( cb ) {
entries.clear();
for ( int i = 0; i < cb->count(); ++i )
@@ -1326,7 +1326,7 @@ void TQComboTableItem::paint( TQPainter *p, const TQColorGroup &cg,
void TQComboTableItem::setCurrentItem( int i )
{
TQWidget *w = table()->cellWidget( row(), col() );
- TQComboBox *cb = ::qt_cast<TQComboBox*>(w);
+ TQComboBox *cb = ::tqt_cast<TQComboBox*>(w);
if ( cb ) {
cb->setCurrentItem( i );
current = i;
@@ -1363,7 +1363,7 @@ void TQComboTableItem::setCurrentItem( const TQString &s )
int TQComboTableItem::currentItem() const
{
TQWidget *w = table()->cellWidget( row(), col() );
- TQComboBox *cb = ::qt_cast<TQComboBox*>(w);
+ TQComboBox *cb = ::tqt_cast<TQComboBox*>(w);
if ( cb )
return cb->currentItem();
return current;
@@ -1378,7 +1378,7 @@ int TQComboTableItem::currentItem() const
TQString TQComboTableItem::currentText() const
{
TQWidget *w = table()->cellWidget( row(), col() );
- TQComboBox *cb = ::qt_cast<TQComboBox*>(w);
+ TQComboBox *cb = ::tqt_cast<TQComboBox*>(w);
if ( cb )
return cb->currentText();
return *entries.at( current );
@@ -1391,7 +1391,7 @@ TQString TQComboTableItem::currentText() const
int TQComboTableItem::count() const
{
TQWidget *w = table()->cellWidget( row(), col() );
- TQComboBox *cb = ::qt_cast<TQComboBox*>(w);
+ TQComboBox *cb = ::tqt_cast<TQComboBox*>(w);
if ( cb )
return cb->count();
return (int)entries.count(); //### size_t/int cast
@@ -1406,7 +1406,7 @@ int TQComboTableItem::count() const
TQString TQComboTableItem::text( int i ) const
{
TQWidget *w = table()->cellWidget( row(), col() );
- TQComboBox *cb = ::qt_cast<TQComboBox*>(w);
+ TQComboBox *cb = ::tqt_cast<TQComboBox*>(w);
if ( cb )
return cb->text( i );
return *entries.at( i );
@@ -1523,7 +1523,7 @@ void TQCheckTableItem::setText( const TQString &t )
{
TQTableItem::setText( t );
TQWidget *w = table()->cellWidget( row(), col() );
- TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w);
+ TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w);
if ( cb )
cb->setText( t );
}
@@ -1546,7 +1546,7 @@ TQWidget *TQCheckTableItem::createEditor() const
void TQCheckTableItem::setContentFromEditor( TQWidget *w )
{
- TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w);
+ TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w);
if ( cb )
checked = cb->isChecked();
}
@@ -1599,7 +1599,7 @@ void TQCheckTableItem::setChecked( bool b )
checked = b;
table()->updateCell( row(), col() );
TQWidget *w = table()->cellWidget( row(), col() );
- TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w);
+ TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w);
if ( cb )
cb->setChecked( b );
}
@@ -1618,7 +1618,7 @@ bool TQCheckTableItem::isChecked() const
// #### and end up in an infinite loop that way
// table()->updateCell( row(), col() );
TQWidget *w = table()->cellWidget( row(), col() );
- TQCheckBox *cb = ::qt_cast<TQCheckBox*>(w);
+ TQCheckBox *cb = ::tqt_cast<TQCheckBox*>(w);
if ( cb )
return cb->isChecked();
return checked;
@@ -3591,7 +3591,7 @@ void TQTable::selectRow( int row )
return;
bool isDataTable = FALSE;
#ifndef QT_NO_SQL
- isDataTable = ::qt_cast<TQDataTable*>(this) != 0;
+ isDataTable = ::tqt_cast<TQDataTable*>(this) != 0;
#endif
if ( isDataTable || selectionMode() == SingleRow ) {
setCurrentCell( row, currentColumn() );
@@ -3701,7 +3701,7 @@ void TQTable::contentsMousePressEventEx( TQMouseEvent* e )
TQTableItem *itm = item( tmpRow, tmpCol );
if ( itm && itm->editType() == TQTableItem::WhenCurrent ) {
TQWidget *w = cellWidget( tmpRow, tmpCol );
- if ( ::qt_cast<TQComboBox*>(w) || ::qt_cast<TQButton*>(w) ) {
+ if ( ::tqt_cast<TQComboBox*>(w) || ::tqt_cast<TQButton*>(w) ) {
TQMouseEvent ev( e->type(), w->mapFromGlobal( e->globalPos() ),
e->globalPos(), e->button(), e->state() );
TQApplication::sendPostedEvents( w, 0 );
@@ -5210,7 +5210,7 @@ void TQTable::setCellContentFromEditor( int row, int col )
if ( i ) {
i->setContentFromEditor( editor );
} else {
- TQLineEdit *le = ::qt_cast<TQLineEdit*>(editor);
+ TQLineEdit *le = ::tqt_cast<TQLineEdit*>(editor);
if ( le )
setText( row, col, le->text() );
}
diff --git a/src/tools/qglobal.cpp b/src/tools/qglobal.cpp
index f2c92c2e..296e600f 100644
--- a/src/tools/qglobal.cpp
+++ b/src/tools/qglobal.cpp
@@ -450,10 +450,10 @@ static const int QT_BUFFER_LENGTH = 8196; // internal buffer length
#include "qt_mac.h"
-extern bool qt_is_gui_used;
+extern bool tqt_is_gui_used;
static void mac_default_handler( const char *msg )
{
- if ( qt_is_gui_used ) {
+ if ( tqt_is_gui_used ) {
const unsigned char *p = p_str(msg);
DebugStr(p);
free((void*)p);
diff --git a/src/widgets/qaction.cpp b/src/widgets/qaction.cpp
index 314a4f70..391b47ee 100644
--- a/src/widgets/qaction.cpp
+++ b/src/widgets/qaction.cpp
@@ -220,18 +220,18 @@ TQActionPrivate::~TQActionPrivate()
++itci;
TQComboBox* combo = ci->combo;
combo->clear();
- TQActionGroup *group = ::qt_cast<TQActionGroup*>(action->parent());
+ TQActionGroup *group = ::tqt_cast<TQActionGroup*>(action->parent());
TQObjectList *siblings = group ? group->queryList("TQAction") : 0;
if (siblings) {
TQObjectListIt it(*siblings);
while (it.current()) {
- TQAction *sib = ::qt_cast<TQAction*>(it.current());
+ TQAction *sib = ::tqt_cast<TQAction*>(it.current());
++it;
sib->removeFrom(combo);
}
it = TQObjectListIt(*siblings);
while (it.current()) {
- TQAction *sib = ::qt_cast<TQAction*>(it.current());
+ TQAction *sib = ::tqt_cast<TQAction*>(it.current());
++it;
if (sib == action)
continue;
@@ -568,7 +568,7 @@ TQAction::TQAction( const TQString& text, const TQString& menuText, TQKeySequenc
*/
void TQAction::init()
{
- if ( ::qt_cast<TQActionGroup*>(parent()) )
+ if ( ::tqt_cast<TQActionGroup*>(parent()) )
((TQActionGroup*) parent())->add( this ); // insert into action group
}
@@ -1008,7 +1008,7 @@ void TQAction::toolButtonToggled( bool on )
bool TQAction::addTo( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( !qstrcmp( name(), "qt_separator_action" ) ) {
((TQToolBar*)w)->addSeparator();
} else {
@@ -1030,7 +1030,7 @@ bool TQAction::addTo( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQActionPrivate::MenuItem* mi = new TQActionPrivate::MenuItem;
mi->popup = (TQPopupMenu*) w;
TQIconSet* diconset = d->iconset;
@@ -1049,7 +1049,7 @@ bool TQAction::addTo( TQWidget* w )
connect( mi->popup, SIGNAL(aboutToHide()), this, SLOT(clearStatusText()) );
connect( mi->popup, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
// Makes only sense when called by TQActionGroup::addTo
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQActionPrivate::ComboItem *ci = new TQActionPrivate::ComboItem;
ci->combo = (TQComboBox*)w;
connect( ci->combo, SIGNAL( destroyed() ), this, SLOT( objectDestroyed() ) );
@@ -1108,7 +1108,7 @@ void TQAction::showStatusText( const TQString& text )
static TQPopupMenu *lastmenu = 0;
TQObject *s = (TQObject*)sender();
if ( s ) {
- TQPopupMenu *menu = (TQPopupMenu*)s->qt_cast( "TQPopupMenu" );
+ TQPopupMenu *menu = (TQPopupMenu*)s->tqt_cast( "TQPopupMenu" );
if ( menu && !!text )
lastmenu = menu;
else if ( menu && text.isEmpty() ) {
@@ -1188,7 +1188,7 @@ void TQAction::clearStatusText()
bool TQAction::removeFrom( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQToolButton> it( d->toolbuttons);
TQToolButton* btn;
while ( ( btn = it.current() ) ) {
@@ -1202,7 +1202,7 @@ bool TQAction::removeFrom( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPtrListIterator<TQActionPrivate::MenuItem> it( d->menuitems);
TQActionPrivate::MenuItem* mi;
while ( ( mi = it.current() ) ) {
@@ -1215,7 +1215,7 @@ bool TQAction::removeFrom( TQWidget* w )
d->menuitems.removeRef( mi );
}
}
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQPtrListIterator<TQActionPrivate::ComboItem> it( d->comboitems );
TQActionPrivate::ComboItem *ci;
while ( ( ci = it.current() ) ) {
@@ -1347,7 +1347,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
}
for ( TQPtrListIterator<TQActionGroupPrivate::MenuItem> pu( menuitems ); pu.current(); ++pu ) {
TQWidget* parent = pu.current()->popup->parentWidget();
- if ( ::qt_cast<TQPopupMenu*>(parent) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(parent) ) {
TQPopupMenu* ppopup = (TQPopupMenu*)parent;
ppopup->setItemEnabled( pu.current()->id, that->isEnabled() );
ppopup->setItemVisible( pu.current()->id, that->isVisible() );
@@ -1357,7 +1357,7 @@ void TQActionGroupPrivate::update( const TQActionGroup* that )
}
for ( TQPtrListIterator<TQPopupMenu> pm( popupmenus ); pm.current(); ++pm ) {
TQPopupMenu *popup = pm.current();
- TQPopupMenu *parent = ::qt_cast<TQPopupMenu*>(popup->parentWidget());
+ TQPopupMenu *parent = ::tqt_cast<TQPopupMenu*>(popup->parentWidget());
if ( !parent )
continue;
@@ -1654,7 +1654,7 @@ void TQActionGroup::addSeparator()
bool TQActionGroup::addTo( TQWidget* w )
{
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
if ( d->dropdown ) {
if ( !d->exclusive ) {
TQPtrListIterator<TQAction> it( d->actions);
@@ -1737,7 +1737,7 @@ bool TQActionGroup::addTo( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPopupMenu *popup;
if ( d->dropdown ) {
TQPopupMenu *menu = (TQPopupMenu*)w;
@@ -1791,7 +1791,7 @@ bool TQActionGroup::removeFrom( TQWidget* w )
}
#ifndef QT_NO_TOOLBAR
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQPtrListIterator<TQComboBox> cb( d->comboboxes );
while( cb.current() ) {
TQComboBox *box = cb.current();
@@ -1808,7 +1808,7 @@ bool TQActionGroup::removeFrom( TQWidget* w )
}
} else
#endif
- if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ if ( ::tqt_cast<TQPopupMenu*>(w) ) {
TQPtrListIterator<TQActionGroupPrivate::MenuItem> pu( d->menuitems );
while ( pu.current() ) {
TQActionGroupPrivate::MenuItem *mi = pu.current();
@@ -1959,7 +1959,7 @@ void TQActionGroup::childEvent( TQChildEvent *e )
if ( !e->removed() )
return;
- TQAction *action = ::qt_cast<TQAction*>(e->child());
+ TQAction *action = ::tqt_cast<TQAction*>(e->child());
if ( !action )
return;
diff --git a/src/widgets/qbutton.cpp b/src/widgets/qbutton.cpp
index d24dd17f..05539be9 100644
--- a/src/widgets/qbutton.cpp
+++ b/src/widgets/qbutton.cpp
@@ -391,7 +391,7 @@ TQButton::TQButton( TQWidget *parent, const char *name, WFlags f )
repeat = FALSE; // not in autorepeat mode
d = 0;
#ifndef QT_NO_BUTTONGROUP
- if ( ::qt_cast<TQButtonGroup*>(parent) ) {
+ if ( ::tqt_cast<TQButtonGroup*>(parent) ) {
setGroup((TQButtonGroup*)parent);
group()->insert( this ); // insert into button group
}
@@ -705,7 +705,7 @@ void TQButton::keyPressEvent( TQKeyEvent *e )
case Key_Return:
{
#ifndef QT_NO_PUSHBUTTON
- TQPushButton *pb = (TQPushButton*)qt_cast( "TQPushButton" );
+ TQPushButton *pb = (TQPushButton*)tqt_cast( "TQPushButton" );
if ( pb && ( pb->autoDefault() || pb->isDefault() ) )
emit clicked();
else
@@ -717,7 +717,7 @@ void TQButton::keyPressEvent( TQKeyEvent *e )
if ( !e->isAutoRepeat() ) {
setDown( TRUE );
#ifndef QT_NO_PUSHBUTTON
- if ( ::qt_cast<TQPushButton*>(this) )
+ if ( ::tqt_cast<TQPushButton*>(this) )
emit pressed();
else
#endif
@@ -999,7 +999,7 @@ bool TQButton::isExclusiveToggle() const
#ifndef QT_NO_BUTTONGROUP
return group() && ( group()->isExclusive() ||
group()->isRadioButtonExclusive() &&
- ::qt_cast<TQRadioButton*>(this) );
+ ::tqt_cast<TQRadioButton*>(this) );
#else
return FALSE;
#endif
diff --git a/src/widgets/qbuttongroup.cpp b/src/widgets/qbuttongroup.cpp
index c94ba037..5745cd3f 100644
--- a/src/widgets/qbuttongroup.cpp
+++ b/src/widgets/qbuttongroup.cpp
@@ -410,7 +410,7 @@ void TQButtonGroup::buttonClicked()
{
// introduce a TQButtonListIt if calling anything
int id = -1;
- TQButton *bt = ::qt_cast<TQButton*>(sender()); // object that sent the signal
+ TQButton *bt = ::tqt_cast<TQButton*>(sender()); // object that sent the signal
#if defined(QT_CHECK_NULL)
Q_ASSERT( bt );
#endif
@@ -436,19 +436,19 @@ void TQButtonGroup::buttonToggled( bool on )
// introduce a TQButtonListIt if calling anything
if ( !on || !excl_grp && !radio_excl )
return;
- TQButton *bt = ::qt_cast<TQButton*>(sender()); // object that sent the signal
+ TQButton *bt = ::tqt_cast<TQButton*>(sender()); // object that sent the signal
#if defined(QT_CHECK_NULL)
Q_ASSERT( bt );
Q_ASSERT( bt->isToggleButton() );
#endif
- if ( !excl_grp && !::qt_cast<TQRadioButton*>(bt) )
+ if ( !excl_grp && !::tqt_cast<TQRadioButton*>(bt) )
return;
TQButtonItem * i = buttons->first();
bool hasTabFocus = FALSE;
while( i != 0 && hasTabFocus == FALSE ) {
- if ( ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) &&
+ if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) &&
(i->button->focusPolicy() & TabFocus) )
hasTabFocus = TRUE;
i = buttons->next();
@@ -459,9 +459,9 @@ void TQButtonGroup::buttonToggled( bool on )
if ( bt != i->button &&
i->button->isToggleButton() &&
i->button->isOn() &&
- ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) )
+ ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) )
i->button->setOn( FALSE );
- if ( ( excl_grp || ::qt_cast<TQRadioButton*>(i->button) ) &&
+ if ( ( excl_grp || ::tqt_cast<TQRadioButton*>(i->button) ) &&
i->button->isToggleButton() &&
hasTabFocus )
i->button->setFocusPolicy( (FocusPolicy)(i->button->focusPolicy() &
@@ -572,12 +572,12 @@ void TQButtonGroup::moveFocus( int key )
i = buttons->next();
}
- TQButton *buttoncand = ::qt_cast<TQButton*>(candidate);
- if ( buttoncand && ::qt_cast<TQButton*>(f) &&
+ TQButton *buttoncand = ::tqt_cast<TQButton*>(candidate);
+ if ( buttoncand && ::tqt_cast<TQButton*>(f) &&
((TQButton*)f)->isOn() &&
buttoncand->isToggleButton() &&
- ( isExclusive() || ( ::qt_cast<TQRadioButton*>(f) &&
- ::qt_cast<TQRadioButton*>(candidate)))) {
+ ( isExclusive() || ( ::tqt_cast<TQRadioButton*>(f) &&
+ ::tqt_cast<TQRadioButton*>(candidate)))) {
if ( f->focusPolicy() & TabFocus ) {
f->setFocusPolicy( (FocusPolicy)(f->focusPolicy() & ~TabFocus) );
candidate->setFocusPolicy( (FocusPolicy)(candidate->focusPolicy()|
@@ -669,7 +669,7 @@ bool TQButtonGroup::event( TQEvent * e )
{
if ( e->type() == TQEvent::ChildInserted ) {
TQChildEvent * ce = (TQChildEvent *) e;
- if ( radio_excl && ::qt_cast<TQRadioButton*>(ce->child()) ) {
+ if ( radio_excl && ::tqt_cast<TQRadioButton*>(ce->child()) ) {
TQButton * button = (TQButton *) ce->child();
if ( button->isToggleButton() && !button->isOn() &&
selected() && (selected()->focusPolicy() & TabFocus) != 0 )
diff --git a/src/widgets/qdatetimeedit.cpp b/src/widgets/qdatetimeedit.cpp
index e226d671..892c1e61 100644
--- a/src/widgets/qdatetimeedit.cpp
+++ b/src/widgets/qdatetimeedit.cpp
@@ -423,7 +423,7 @@ public:
void enabledChange(bool notenabled)
{
- TQDateEdit *de = ::qt_cast<TQDateEdit*>(parentWidget());
+ TQDateEdit *de = ::tqt_cast<TQDateEdit*>(parentWidget());
if (de && !notenabled) {
setUpEnabled(de->date() < de->maxValue());
setDownEnabled(de->date() > de->minValue());
@@ -437,7 +437,7 @@ protected:
#ifndef QT_NO_WHEELEVENT
void wheelEvent( TQWheelEvent *e )
{
- TQDateTimeEditor *editor = (TQDateTimeEditor*)editWidget()->qt_cast( "TQDateTimeEditor" );
+ TQDateTimeEditor *editor = (TQDateTimeEditor*)editWidget()->tqt_cast( "TQDateTimeEditor" );
Q_ASSERT( editor );
if ( !editor )
return;
@@ -608,9 +608,9 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
cw->stepDown();
return TRUE;
case Key_Backspace:
- if ( ::qt_cast<TQDateEdit*>(cw) )
+ if ( ::tqt_cast<TQDateEdit*>(cw) )
((TQDateEdit*)cw)->removeFirstNumber( d->focusSection() );
- else if ( ::qt_cast<TQTimeEdit*>(cw) )
+ else if ( ::tqt_cast<TQTimeEdit*>(cw) )
((TQTimeEdit*)cw)->removeFirstNumber( d->focusSection() );
return TRUE;
case Key_Delete:
@@ -624,15 +624,15 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
TQWidget *w = this;
bool hadDateEdit = FALSE;
while ( w ) {
- if ( ::qt_cast<TQDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 ||
- ::qt_cast<TQDateTimeEdit*>(w) )
+ if ( ::tqt_cast<TQDateTimeSpinWidget*>(w) && qstrcmp( w->name(), "qt_spin_widget" ) != 0 ||
+ ::tqt_cast<TQDateTimeEdit*>(w) )
break;
- hadDateEdit = hadDateEdit || ::qt_cast<TQDateEdit*>(w);
+ hadDateEdit = hadDateEdit || ::tqt_cast<TQDateEdit*>(w);
w = w->parentWidget();
}
if ( w ) {
- if ( !::qt_cast<TQDateTimeEdit*>(w) ) {
+ if ( !::tqt_cast<TQDateTimeEdit*>(w) ) {
w = w->parentWidget();
} else {
TQDateTimeEdit *ed = (TQDateTimeEdit*)w;
@@ -643,7 +643,7 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
ed->dateEdit()->setFocus();
return TRUE;
} else {
- while ( w && !::qt_cast<TQDateTimeEdit*>(w) )
+ while ( w && !::tqt_cast<TQDateTimeEdit*>(w) )
w = w->parentWidget();
}
}
@@ -661,7 +661,7 @@ bool TQDateTimeEditor::eventFilter( TQObject *o, TQEvent *e )
repaint( rect(), FALSE );
}
return TRUE;
- } else if ( !txt.isEmpty() && ::qt_cast<TQTimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) {
+ } else if ( !txt.isEmpty() && ::tqt_cast<TQTimeEdit*>(cw) && focusSection() == (int) d->sectionCount()-1 ) {
// the first character of the AM/PM indicator toggles if the section has focus
TQTimeEdit *te = (TQTimeEdit*)cw;
TQTime time = te->time();
diff --git a/src/widgets/qdockarea.cpp b/src/widgets/qdockarea.cpp
index 0e2555bd..760db538 100644
--- a/src/widgets/qdockarea.cpp
+++ b/src/widgets/qdockarea.cpp
@@ -235,7 +235,7 @@ static int point_pos( const TQPoint &p, TQt::Orientation o, bool swap = FALSE )
static void shrink_extend( TQDockWindow *dw, int &dockExtend, int /*spaceLeft*/, TQt::Orientation o )
{
- TQToolBar *tb = ::qt_cast<TQToolBar*>(dw);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(dw);
if ( o == TQt::Horizontal ) {
int mw = 0;
if ( !tb )
@@ -258,7 +258,7 @@ static void place_line( TQValueList<DockData> &lastLine, TQt::Orientation o, int
TQDockWindow *last = 0;
TQRect lastRect;
for ( TQValueList<DockData>::Iterator it = lastLine.begin(); it != lastLine.end(); ++it ) {
- if ( tbstrut != -1 && ::qt_cast<TQToolBar*>((*it).w) )
+ if ( tbstrut != -1 && ::tqt_cast<TQToolBar*>((*it).w) )
(*it).rect.setHeight( tbstrut );
if ( !last ) {
last = (*it).w;
@@ -391,7 +391,7 @@ int TQDockAreaLayout::layoutItems( const TQRect &rect, bool testonly )
// do some calculations and add the remember the rect which the docking widget requires for the placing
TQRect dwRect(pos, sectionpos, dockExtend, dock_strut( dw, orientation() ) );
lastLine.append( DockData( dw, dwRect ) );
- if ( ::qt_cast<TQToolBar*>(dw) )
+ if ( ::tqt_cast<TQToolBar*>(dw) )
tbstrut = TQMAX( tbstrut, dock_strut( dw, orientation() ) );
linestrut = TQMAX( dock_strut( dw, orientation() ), linestrut );
add_size( dockExtend, pos, orientation() );
@@ -926,7 +926,7 @@ void TQDockArea::updateLayout()
bool TQDockArea::eventFilter( TQObject *o, TQEvent *e )
{
if ( e->type() == TQEvent::Close ) {
- if ( ::qt_cast<TQDockWindow*>(o) ) {
+ if ( ::tqt_cast<TQDockWindow*>(o) ) {
o->removeEventFilter( this );
TQApplication::sendEvent( o, e );
if ( ( (TQCloseEvent*)e )->isAccepted() )
@@ -1087,7 +1087,7 @@ bool TQDockArea::isDockWindowAccepted( TQDockWindow *dw )
if ( forbiddenWidgets.findRef( dw ) != -1 )
return FALSE;
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parentWidget());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parentWidget());
if ( !mw )
return TRUE;
if ( !mw->hasDockWindow( dw ) )
@@ -1145,7 +1145,7 @@ int TQDockArea::maxSpace( int hint, TQDockWindow *dw )
return dw->height();
}
int min = 0;
- TQToolBar *tb = ::qt_cast<TQToolBar*>(w);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(w);
if ( orientation() == Horizontal ) {
w->setFixedExtentWidth( -1 );
if ( !tb )
diff --git a/src/widgets/qdockwindow.cpp b/src/widgets/qdockwindow.cpp
index a0f4163c..8e699633 100644
--- a/src/widgets/qdockwindow.cpp
+++ b/src/widgets/qdockwindow.cpp
@@ -493,7 +493,7 @@ void TQDockWindowHandle::minimize()
if ( !dockWindow->area() )
return;
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(dockWindow->area()->parentWidget());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(dockWindow->area()->parentWidget());
if ( mw && mw->isDockEnabled( dockWindow, TQt::DockMinimized ) )
mw->moveDockWindow( dockWindow, TQt::DockMinimized );
}
@@ -1031,13 +1031,13 @@ void TQDockWindow::init()
if ( parentWidget() )
parentWidget()->installEventFilter( this );
TQWidget *mw = parentWidget();
- TQDockArea *da = ::qt_cast<TQDockArea*>(parentWidget());
+ TQDockArea *da = ::tqt_cast<TQDockArea*>(parentWidget());
if ( da ) {
if ( curPlace == InDock )
da->moveDockWindow( this );
mw = da->parentWidget();
}
- if ( ::qt_cast<TQMainWindow*>(mw) ) {
+ if ( ::tqt_cast<TQMainWindow*>(mw) ) {
if ( place() == InDock ) {
Dock myDock = TQt::DockTop;
// make sure we put the window in the correct dock.
@@ -1123,7 +1123,7 @@ TQDockWindow::~TQDockWindow()
TQDockArea *a = area();
if ( !a && dockWindowData )
a = ( (TQDockArea::DockWindowData*)dockWindowData )->area;
- TQMainWindow *mw = a ? ::qt_cast<TQMainWindow*>(a->parentWidget()) : 0;
+ TQMainWindow *mw = a ? ::tqt_cast<TQMainWindow*>(a->parentWidget()) : 0;
if ( mw )
mw->removeDockWindow( this );
@@ -1164,12 +1164,12 @@ TQWidget *TQDockWindow::areaAt( const TQPoint &gp )
w = parentWidget()->childAt( parentWidget()->mapFromGlobal( gp ) );
while ( w ) {
- if ( ::qt_cast<TQDockArea*>(w) ) {
+ if ( ::tqt_cast<TQDockArea*>(w) ) {
TQDockArea *a = (TQDockArea*)w;
if ( a->isDockWindowAccepted( this ) )
return w;
}
- if ( ::qt_cast<TQMainWindow*>(w) ) {
+ if ( ::tqt_cast<TQMainWindow*>(w) ) {
TQMainWindow *mw = (TQMainWindow*)w;
TQDockArea *a = mw->dockingArea( mw->mapFromGlobal( gp ) );
if ( a && a->isDockWindowAccepted( this ) )
@@ -1197,8 +1197,8 @@ void TQDockWindow::handleMove( const TQPoint &pos, const TQPoint &gp, bool drawR
if ( titleBar->ctrlDown || horHandle->ctrlDown || verHandle->ctrlDown )
w = 0;
currRect.moveBy( pos.x(), pos.y() );
- if ( !::qt_cast<TQDockArea*>(w) ) {
- if ( startOrientation != Horizontal && ::qt_cast<TQToolBar*>(this) )
+ if ( !::tqt_cast<TQDockArea*>(w) ) {
+ if ( startOrientation != Horizontal && ::tqt_cast<TQToolBar*>(this) )
swapRect( currRect, Horizontal, startOffset, (TQDockArea*)w );
if ( drawRect ) {
unclippedPainter->setPen( TQPen( gray, 3 ) );
@@ -1396,14 +1396,14 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
} else {
if ( dockArea ) {
TQMainWindow *mw = (TQMainWindow*)dockArea->parentWidget();
- if ( ::qt_cast<TQMainWindow*>(mw) &&
+ if ( ::tqt_cast<TQMainWindow*>(mw) &&
( !mw->isDockEnabled( TQMainWindow::DockTornOff ) ||
!mw->isDockEnabled( this, TQMainWindow::DockTornOff ) ) )
return;
delete (TQDockArea::DockWindowData*)dockWindowData;
dockWindowData = dockArea->dockWindowData( this );
dockArea->removeDockWindow( this, TRUE,
- startOrientation != Horizontal && ::qt_cast<TQToolBar*>(this) );
+ startOrientation != Horizontal && ::tqt_cast<TQToolBar*>(this) );
}
dockArea = 0;
TQPoint topLeft = currRect.topLeft();
@@ -1417,7 +1417,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
move( topLeft );
}
- if ( curPlace == InDock && state == OutsideDock && !::qt_cast<TQToolBar*>(this) ) {
+ if ( curPlace == InDock && state == OutsideDock && !::tqt_cast<TQToolBar*>(this) ) {
if ( lastSize != TQSize( -1, -1 ) )
resize( lastSize );
}
@@ -1431,7 +1431,7 @@ void TQDockWindow::updatePosition( const TQPoint &globalPos )
tmpDockArea = 0;
if ( doAdjustSize ) {
TQApplication::sendPostedEvents( this, TQEvent::LayoutHint );
- if ( ::qt_cast<TQToolBar*>(this) )
+ if ( ::tqt_cast<TQToolBar*>(this) )
adjustSize();
if (lastSize == TQSize(-1, -1))
clearWState(WState_Resized); // Ensures size is recalculated (non-opaque).
@@ -1706,7 +1706,7 @@ TQt::Orientation TQDockWindow::orientation() const
{
if ( dockArea )
return dockArea->orientation();
- if ( ::qt_cast<TQToolBar*>(this) )
+ if ( ::tqt_cast<TQToolBar*>(this) )
return Horizontal;
return ( ((TQDockWindow*)this)->boxLayout()->direction() == TQBoxLayout::LeftToRight ||
((TQDockWindow*)this)->boxLayout()->direction() == TQBoxLayout::RightToLeft ?
@@ -1861,7 +1861,7 @@ void TQDockWindow::undock( TQWidget *w )
{
TQMainWindow *mw = 0;
if ( area() )
- mw = ::qt_cast<TQMainWindow*>(area()->parentWidget());
+ mw = ::tqt_cast<TQMainWindow*>(area()->parentWidget());
if ( mw && !mw->isDockEnabled( this, DockTornOff ) )
return;
if ( (place() == OutsideDock && !w) )
@@ -1873,7 +1873,7 @@ void TQDockWindow::undock( TQWidget *w )
if ( dockArea ) {
delete (TQDockArea::DockWindowData*)dockWindowData;
dockWindowData = dockArea->dockWindowData( this );
- dockArea->removeDockWindow( this, TRUE, orientation() != Horizontal && ::qt_cast<TQToolBar*>(this) );
+ dockArea->removeDockWindow( this, TRUE, orientation() != Horizontal && ::tqt_cast<TQToolBar*>(this) );
}
dockArea = 0;
if ( lastPos != TQPoint( -1, -1 ) && lastPos.x() > 0 && lastPos.y() > 0 )
@@ -1886,7 +1886,7 @@ void TQDockWindow::undock( TQWidget *w )
updateGui();
emit orientationChanged( orientation() );
TQApplication::sendPostedEvents( this, TQEvent::LayoutHint );
- if ( ::qt_cast<TQToolBar*>(this) )
+ if ( ::tqt_cast<TQToolBar*>(this) )
adjustSize();
if ( !w ) {
if ( !parentWidget() || parentWidget()->isVisible() ) {
@@ -2110,7 +2110,7 @@ void TQDockWindow::contextMenuEvent( TQContextMenuEvent *e )
{
TQObject *o = this;
while ( o ) {
- if ( ::qt_cast<TQMainWindow*>(o) )
+ if ( ::tqt_cast<TQMainWindow*>(o) )
break;
o = o->parent();
}
diff --git a/src/widgets/qeffects.cpp b/src/widgets/qeffects.cpp
index 7377eba7..d2f20791 100644
--- a/src/widgets/qeffects.cpp
+++ b/src/widgets/qeffects.cpp
@@ -192,7 +192,7 @@ bool TQAlphaWidget::eventFilter( TQObject* o, TQEvent* e )
break;
case TQEvent::MouseButtonPress:
#ifndef QT_NO_SCROLLVIEW
- if ( ::qt_cast<TQScrollView*>(o) )
+ if ( ::tqt_cast<TQScrollView*>(o) )
break;
#endif
case TQEvent::MouseButtonDblClick:
@@ -444,7 +444,7 @@ bool TQRollEffect::eventFilter( TQObject* o, TQEvent* e )
break;
case TQEvent::MouseButtonPress:
#ifndef QT_NO_SCROLLVIEW
- if ( ::qt_cast<TQScrollView*>(o) )
+ if ( ::tqt_cast<TQScrollView*>(o) )
break;
#endif
case TQEvent::MouseButtonDblClick:
diff --git a/src/widgets/qgroupbox.cpp b/src/widgets/qgroupbox.cpp
index e6d2ad58..d78ae735 100644
--- a/src/widgets/qgroupbox.cpp
+++ b/src/widgets/qgroupbox.cpp
@@ -677,7 +677,7 @@ void TQGroupBox::fixFocus()
&& w->isVisibleTo(this) ) {
if ( w->hasFocus()
#ifndef QT_NO_RADIOBUTTON
- || ( !best && ::qt_cast<TQRadioButton*>(w)
+ || ( !best && ::tqt_cast<TQRadioButton*>(w)
&& ((TQRadioButton*)w)->isChecked() )
#endif
)
@@ -841,7 +841,7 @@ void TQGroupBox::setCheckable( bool b )
if ( b ) {
if ( !d->checkbox ) {
d->checkbox = new TQCheckBox( title(), this, "qt_groupbox_checkbox" );
- if (TQButtonGroup *meAsButtonGroup = ::qt_cast<TQButtonGroup*>(this))
+ if (TQButtonGroup *meAsButtonGroup = ::tqt_cast<TQButtonGroup*>(this))
meAsButtonGroup->remove(d->checkbox);
setChecked( TRUE );
setChildrenEnabled( TRUE );
diff --git a/src/widgets/qlistview.cpp b/src/widgets/qlistview.cpp
index 06830bdd..faffe09b 100644
--- a/src/widgets/qlistview.cpp
+++ b/src/widgets/qlistview.cpp
@@ -3839,7 +3839,7 @@ bool TQListView::eventFilter( TQObject * o, TQEvent * e )
// nothing
break;
}
- } else if ( ::qt_cast<TQLineEdit*>(o) ) {
+ } else if ( ::tqt_cast<TQLineEdit*>(o) ) {
if ( currentItem() && currentItem()->renameBox ) {
if ( e->type() == TQEvent::KeyPress ) {
TQKeyEvent *ke = (TQKeyEvent*)e;
diff --git a/src/widgets/qmainwindow.cpp b/src/widgets/qmainwindow.cpp
index 72491a25..830e3f0d 100644
--- a/src/widgets/qmainwindow.cpp
+++ b/src/widgets/qmainwindow.cpp
@@ -335,7 +335,7 @@ protected:
while ( ( o = it.current() ) ) {
++it;
++i;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw || !dw->isVisible() )
continue;
@@ -377,7 +377,7 @@ protected:
while ( ( o = it.current() ) ) {
++it;
++i;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw || !dw->isVisible() )
continue;
@@ -406,7 +406,7 @@ protected:
if ( e->button() == LeftButton ) {
if ( e->y() >= 0 && e->y() <= height() ) {
TQObject *o = ( (TQObjectList*)children() )->at( pressedHandle );
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( dw ) {
dw->show();
dw->dock();
@@ -436,7 +436,7 @@ protected:
TQObject *o;
while ( ( o = it.current() ) ) {
++it;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw )
continue;
if ( dw->isHidden() ) {
@@ -491,7 +491,7 @@ void TQHideToolTip::maybeTip( const TQPoint &pos )
int x = 0;
while ( ( o = it.current() ) ) {
++it;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw || !dw->isVisible() )
continue;
@@ -1276,7 +1276,7 @@ void TQMainWindow::addDockWindow( TQDockWindow * dockWindow, const TQString &lab
{
addDockWindow( dockWindow, edge, newLine );
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(dockWindow);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(dockWindow);
if ( tb )
tb->setLabel( label );
#endif
@@ -1608,7 +1608,7 @@ bool TQMainWindow::dockMainWindow( TQObject *dock )
while ( dock ) {
if ( dock->parent() && dock->parent() == this )
return TRUE;
- if ( ::qt_cast<TQMainWindow*>(dock->parent()) )
+ if ( ::tqt_cast<TQMainWindow*>(dock->parent()) )
return FALSE;
dock = dock->parent();
}
@@ -1626,7 +1626,7 @@ bool TQMainWindow::eventFilter( TQObject* o, TQEvent *e )
setUpLayout();
d->tll->activate();
} else if ( e->type() == TQEvent::ContextMenu && d->dockMenu &&
- ( ::qt_cast<TQDockArea*>(o) && dockMainWindow( o ) || o == d->hideDock || o == d->mb ) ) {
+ ( ::tqt_cast<TQDockArea*>(o) && dockMainWindow( o ) || o == d->hideDock || o == d->mb ) ) {
if ( showDockMenu( ( (TQMouseEvent*)e )->globalPos() ) ) {
( (TQContextMenuEvent*)e )->accept();
return TRUE;
@@ -1657,13 +1657,13 @@ void TQMainWindow::childEvent( TQChildEvent* e)
d->mc = 0;
d->mwl->setCentralWidget( 0 );
triggerLayout();
- } else if ( ::qt_cast<TQDockWindow*>(e->child()) ) {
+ } else if ( ::tqt_cast<TQDockWindow*>(e->child()) ) {
removeDockWindow( (TQDockWindow *)(e->child()) );
d->appropriate.remove( (TQDockWindow*)e->child() );
triggerLayout();
}
} else if ( e->type() == TQEvent::ChildInserted && !d->sb ) {
- d->sb = ::qt_cast<TQStatusBar*>(e->child());
+ d->sb = ::tqt_cast<TQStatusBar*>(e->child());
if ( d->sb ) {
if ( d->tll ) {
if ( !d->tll->findWidget( d->sb ) )
@@ -1923,7 +1923,7 @@ TQPtrList<TQToolBar> TQMainWindow::toolBars( Dock dock ) const
TQPtrList<TQDockWindow> lst = dockWindows( dock );
TQPtrList<TQToolBar> tbl;
for ( TQDockWindow *w = lst.first(); w; w = lst.next() ) {
- TQToolBar *tb = ::qt_cast<TQToolBar*>(w);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(w);
if ( tb )
tbl.append( tb );
}
@@ -1965,7 +1965,7 @@ TQPtrList<TQDockWindow> TQMainWindow::dockWindows( Dock dock ) const
TQObject *o;
while ( ( o = it.current() ) ) {
++it;
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(o);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(o);
if ( !dw )
continue;
lst.append( dw );
@@ -2199,7 +2199,7 @@ void TQMainWindow::menuAboutToShow()
if ( dockWindows == AllDockWindows || dockWindows == NoToolBars ) {
for ( o = l->first(); o; o = l->next() ) {
TQDockWindow *dw = (TQDockWindow*)o;
- if ( !appropriate( dw ) || ::qt_cast<TQToolBar*>(dw) || !dockMainWindow( dw ) )
+ if ( !appropriate( dw ) || ::tqt_cast<TQToolBar*>(dw) || !dockMainWindow( dw ) )
continue;
TQString label = dw->caption();
if ( !label.isEmpty() ) {
@@ -2217,7 +2217,7 @@ void TQMainWindow::menuAboutToShow()
#ifndef QT_NO_TOOLBAR
if ( dockWindows == AllDockWindows || dockWindows == OnlyToolBars ) {
for ( o = l->first(); o; o = l->next() ) {
- TQToolBar *tb = ::qt_cast<TQToolBar*>(o);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(o);
if ( !tb || !appropriate(tb) || !dockMainWindow(tb) )
continue;
TQString label = tb->label();
@@ -2277,11 +2277,11 @@ bool TQMainWindow::showDockMenu( const TQPoint &globalPos )
void TQMainWindow::slotPlaceChanged()
{
TQObject* obj = (TQObject*)sender();
- TQDockWindow *dw = ::qt_cast<TQDockWindow*>(obj);
+ TQDockWindow *dw = ::tqt_cast<TQDockWindow*>(obj);
if ( dw )
emit dockWindowPositionChanged( dw );
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(obj);
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(obj);
if ( tb )
emit toolBarPositionChanged( tb );
#endif
@@ -2532,7 +2532,7 @@ static void loadDockArea( const TQStringList &names, TQDockArea *a, TQt::Dock d,
if ( state == Visible && c == ']' ) {
for ( TQDockWindow *dw = l.first(); dw; dw = l.next() ) {
if ( TQString( dw->caption() ) == name ) {
- if ( !::qt_cast<TQToolBar*>(dw) )
+ if ( !::tqt_cast<TQToolBar*>(dw) )
dw->setGeometry( x.toInt(), y.toInt(), w.toInt(), h.toInt() );
else
dw->setGeometry( x.toInt(), y.toInt(), dw->width(), dw->height() );
diff --git a/src/widgets/qmenubar.cpp b/src/widgets/qmenubar.cpp
index ed592df6..02ee71b2 100644
--- a/src/widgets/qmenubar.cpp
+++ b/src/widgets/qmenubar.cpp
@@ -392,7 +392,7 @@ void TQMenuBar::performDelayedContentsChanged()
if ( isVisible() ) {
update();
#ifndef QT_NO_MAINWINDOW
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parent());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parent());
if ( mw ) {
mw->triggerLayout();
mw->update();
@@ -515,7 +515,7 @@ bool TQMenuBar::eventFilter( TQObject *object, TQEvent *event )
{
if ( object == parent() && object
#ifndef QT_NO_TOOLBAR
- && !::qt_cast<TQToolBar*>(object)
+ && !::tqt_cast<TQToolBar*>(object)
#endif
&& event->type() == TQEvent::Resize ) {
TQResizeEvent *e = (TQResizeEvent *)event;
@@ -843,7 +843,7 @@ void TQMenuBar::show()
#endif
#ifndef QT_NO_MAINWINDOW
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parent());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parent());
if ( mw ) //### ugly workaround
mw->triggerLayout();
#endif
@@ -861,7 +861,7 @@ void TQMenuBar::hide()
setAltMode( FALSE );
hidePopups();
#ifndef QT_NO_MAINWINDOW
- TQMainWindow *mw = ::qt_cast<TQMainWindow*>(parent());
+ TQMainWindow *mw = ::tqt_cast<TQMainWindow*>(parent());
if ( mw ) //### ugly workaround
mw->triggerLayout();
#endif
@@ -1630,7 +1630,7 @@ TQSize TQMenuBar::sizeHint() const
TQSize TQMenuBar::minimumSize() const
{
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(parent());
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(parent());
if ( tb )
return sizeHint();
#endif
diff --git a/src/widgets/qmenudata.cpp b/src/widgets/qmenudata.cpp
index 437234dc..ef385ab1 100644
--- a/src/widgets/qmenudata.cpp
+++ b/src/widgets/qmenudata.cpp
@@ -293,7 +293,7 @@ int TQMenuData::insertAny( const TQString *text, const TQPixmap *pixmap,
}
mitems->insert( index, mi );
- TQPopupMenu* p = ::qt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
+ TQPopupMenu* p = ::tqt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
if (p && p->isVisible() && p->mitems) {
p->mitems->clear();
for ( TQMenuItemListIt it( *mitems ); it.current(); ++it ) {
@@ -821,7 +821,7 @@ void TQMenuData::removeItemAt( int index )
if ( mi->popup_menu )
menuDelPopup( mi->popup_menu );
mitems->remove();
- TQPopupMenu* p = ::qt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
+ TQPopupMenu* p = ::tqt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
if (p && p->isVisible() && p->mitems) {
p->mitems->clear();
for ( TQMenuItemListIt it( *mitems ); it.current(); ++it ) {
@@ -849,7 +849,7 @@ void TQMenuData::clear()
mitems->remove();
mi = mitems->current();
}
- TQPopupMenu* p = ::qt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
+ TQPopupMenu* p = ::tqt_cast<TQPopupMenu*>(TQMenuData::d->aWidget);
if (p && p->isVisible() && p->mitems) {
p->mitems->clear();
}
diff --git a/src/widgets/qpushbutton.cpp b/src/widgets/qpushbutton.cpp
index 09e57b11..3e3925ab 100644
--- a/src/widgets/qpushbutton.cpp
+++ b/src/widgets/qpushbutton.cpp
@@ -335,7 +335,7 @@ void TQPushButton::init()
hasMenuArrow = FALSE;
flt = FALSE;
#ifndef QT_NO_DIALOG
- autoDefButton = ::qt_cast<TQDialog*>(topLevelWidget()) != 0;
+ autoDefButton = ::tqt_cast<TQDialog*>(topLevelWidget()) != 0;
#else
autoDefButton = FALSE;
#endif
@@ -389,7 +389,7 @@ void TQPushButton::setDefault( bool enable )
return; // no change
defButton = enable;
#ifndef QT_NO_DIALOG
- if ( defButton && ::qt_cast<TQDialog*>(topLevelWidget()) )
+ if ( defButton && ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setMainDefault( this );
#endif
update();
@@ -613,7 +613,7 @@ void TQPushButton::focusInEvent( TQFocusEvent *e )
if (autoDefButton && !defButton) {
defButton = TRUE;
#ifndef QT_NO_DIALOG
- if ( defButton && ::qt_cast<TQDialog*>(topLevelWidget()) )
+ if ( defButton && ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setDefault( this );
#endif
}
@@ -627,7 +627,7 @@ void TQPushButton::focusOutEvent( TQFocusEvent *e )
{
#ifndef QT_NO_DIALOG
if ( defButton && autoDefButton ) {
- if ( ::qt_cast<TQDialog*>(topLevelWidget()) )
+ if ( ::tqt_cast<TQDialog*>(topLevelWidget()) )
((TQDialog*)topLevelWidget())->setDefault( 0 );
}
#endif
@@ -706,7 +706,7 @@ void TQPushButton::popupPressed()
bool horizontal = TRUE;
bool topLeft = TRUE; // ### always TRUE
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(parentWidget());
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(parentWidget());
if ( tb && tb->orientation() == Vertical )
horizontal = FALSE;
#endif
diff --git a/src/widgets/qradiobutton.cpp b/src/widgets/qradiobutton.cpp
index d04c0ff1..10bbc8be 100644
--- a/src/widgets/qradiobutton.cpp
+++ b/src/widgets/qradiobutton.cpp
@@ -139,7 +139,7 @@ void TQRadioButton::init()
setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
setToggleButton( TRUE );
#ifndef QT_NO_BUTTONGROUP
- TQButtonGroup *bgrp = ::qt_cast<TQButtonGroup*>(parentWidget());
+ TQButtonGroup *bgrp = ::tqt_cast<TQButtonGroup*>(parentWidget());
if ( bgrp )
bgrp->setRadioButtonExclusive( TRUE );
#endif
diff --git a/src/widgets/qscrollview.cpp b/src/widgets/qscrollview.cpp
index 20d0adeb..1938ff23 100644
--- a/src/widgets/qscrollview.cpp
+++ b/src/widgets/qscrollview.cpp
@@ -2385,7 +2385,7 @@ void TQScrollView::frameChanged()
{
// slight ugle-hack - the listview header needs readjusting when
// changing the frame
- if (TQListView *lv = ::qt_cast<TQListView *>(this))
+ if (TQListView *lv = ::tqt_cast<TQListView *>(this))
lv->triggerUpdate();
TQFrame::frameChanged();
updateScrollBars();
diff --git a/src/widgets/qsplashscreen.cpp b/src/widgets/qsplashscreen.cpp
index 1896269b..3aec8a23 100644
--- a/src/widgets/qsplashscreen.cpp
+++ b/src/widgets/qsplashscreen.cpp
@@ -214,8 +214,8 @@ void TQSplashScreen::finish( TQWidget *mainWin )
{
if ( mainWin ) {
#if defined(Q_WS_X11)
- extern void qt_wait_for_window_manager( TQWidget *mainWin );
- qt_wait_for_window_manager( mainWin );
+ extern void tqt_wait_for_window_manager( TQWidget *mainWin );
+ tqt_wait_for_window_manager( mainWin );
#endif
}
close();
diff --git a/src/widgets/qsplitter.cpp b/src/widgets/qsplitter.cpp
index 95ec5d5a..cedb498b 100644
--- a/src/widgets/qsplitter.cpp
+++ b/src/widgets/qsplitter.cpp
@@ -901,7 +901,7 @@ void TQSplitter::recalc( bool update )
}
}
if ( empty ) {
- if ( ::qt_cast<TQSplitter*>(parentWidget()) ) {
+ if ( ::tqt_cast<TQSplitter*>(parentWidget()) ) {
// nested splitters; be nice
maxl = maxt = 0;
} else {
diff --git a/src/widgets/qtabbar.cpp b/src/widgets/qtabbar.cpp
index dcee1508..697b28f5 100644
--- a/src/widgets/qtabbar.cpp
+++ b/src/widgets/qtabbar.cpp
@@ -614,7 +614,7 @@ void TQTabBar::paint( TQPainter * p, TQTab * t, bool selected ) const
int h = TQMAX(fm.height() + 4, ih );
int offset = 3;
#ifdef Q_WS_MAC
- if (::qt_cast<TQMacStyle *>(&style()))
+ if (::tqt_cast<TQMacStyle *>(&style()))
offset = 0;
#endif
paintLabel( p, TQRect( r.left() + (r.width()-w)/2 - offset,
diff --git a/src/widgets/qtabwidget.cpp b/src/widgets/qtabwidget.cpp
index bb2eccf8..43c9c76d 100644
--- a/src/widgets/qtabwidget.cpp
+++ b/src/widgets/qtabwidget.cpp
@@ -243,7 +243,7 @@ TQTabWidget::TQTabWidget( TQWidget *parent, const char *name, WFlags f )
installEventFilter( this );
#ifdef Q_OS_MACX
- if (::qt_cast<TQMacStyle*>(&style()))
+ if (::tqt_cast<TQMacStyle*>(&style()))
setMargin(10); // According to HIGuidelines at least.
#endif
}
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp
index 9a5502c1..df41d2d0 100644
--- a/src/widgets/qtextedit.cpp
+++ b/src/widgets/qtextedit.cpp
@@ -2503,7 +2503,7 @@ void TQTextEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
TQUrl u( doc->context(), onLink, TRUE );
emitLinkClicked( u.toString( FALSE, FALSE ) );
}
- if (::qt_cast<TQTextBrowser*>(this)) { // change for 4.0
+ if (::tqt_cast<TQTextBrowser*>(this)) { // change for 4.0
TQConnectionList *clist = receivers(
"anchorClicked(const TQString&,const TQString&)");
if (!signalsBlocked() && clist) {
@@ -4907,7 +4907,7 @@ bool TQTextEdit::handleReadOnlyKeyEvent( TQKeyEvent *e )
emitLinkClicked( u.toString( FALSE, FALSE ) );
}
if (!doc->focusIndicator.name.isEmpty()) {
- if (::qt_cast<TQTextBrowser*>(this)) { // change for 4.0
+ if (::tqt_cast<TQTextBrowser*>(this)) { // change for 4.0
TQConnectionList *clist = receivers(
"anchorClicked(const TQString&,const TQString&)");
if (!signalsBlocked() && clist) {
diff --git a/src/widgets/qtitlebar.cpp b/src/widgets/qtitlebar.cpp
index 1bf94d6d..8fc3ca46 100644
--- a/src/widgets/qtitlebar.cpp
+++ b/src/widgets/qtitlebar.cpp
@@ -70,7 +70,7 @@ public:
void maybeTip( const TQPoint &pos )
{
- if ( !::qt_cast<TQTitleBar*>(parentWidget()) )
+ if ( !::tqt_cast<TQTitleBar*>(parentWidget()) )
return;
TQTitleBar *t = (TQTitleBar *)parentWidget();
@@ -404,7 +404,7 @@ void TQTitleBar::mouseMoveEvent( TQMouseEvent * e)
TQPoint p = mapFromGlobal(e->globalPos());
#ifndef QT_NO_WORKSPACE
if(d->window && d->window->parentWidget()->inherits("TQWorkspaceChild")) {
- TQWorkspace *workspace = ::qt_cast<TQWorkspace*>(d->window->parentWidget()->parentWidget());
+ TQWorkspace *workspace = ::tqt_cast<TQWorkspace*>(d->window->parentWidget()->parentWidget());
if(workspace) {
p = workspace->mapFromGlobal( e->globalPos() );
if ( !workspace->rect().contains(p) ) {
diff --git a/src/widgets/qtoolbar.cpp b/src/widgets/qtoolbar.cpp
index 2a48bf62..b465faff 100644
--- a/src/widgets/qtoolbar.cpp
+++ b/src/widgets/qtoolbar.cpp
@@ -435,7 +435,7 @@ void TQToolBar::styleChange( TQStyle& )
TQObject *ob = 0;
for ( ob = childs->first(); ob; ob = childs->next() ) {
TQWidget *w = (TQWidget*)ob;
- if ( ::qt_cast<TQToolButton*>(w) || ::qt_cast<TQToolBarSeparator*>(w) )
+ if ( ::tqt_cast<TQToolButton*>(w) || ::tqt_cast<TQToolBarSeparator*>(w) )
w->setStyle( &style() );
}
}
@@ -632,7 +632,7 @@ void TQToolBar::createPopup()
}
TQWidget *w = (TQWidget*)it.current();
#ifndef QT_NO_COMBOBOX
- if ( ::qt_cast<TQComboBox*>(w) )
+ if ( ::tqt_cast<TQComboBox*>(w) )
j = 1;
#endif
hide = FALSE;
@@ -646,7 +646,7 @@ void TQToolBar::createPopup()
}
if ( hide && w->isVisible() ) {
doHide = TRUE;
- if ( ::qt_cast<TQToolButton*>(w) ) {
+ if ( ::tqt_cast<TQToolButton*>(w) ) {
TQToolButton *b = (TQToolButton*)w;
TQString s = b->textLabel();
if ( s.isEmpty() )
@@ -659,7 +659,7 @@ void TQToolBar::createPopup()
d->extensionPopup->setItemChecked( id, b->isOn() );
if ( !b->isEnabled() )
d->extensionPopup->setItemEnabled( id, FALSE );
- } else if ( ::qt_cast<TQButton*>(w) ) {
+ } else if ( ::tqt_cast<TQButton*>(w) ) {
TQButton *b = (TQButton*)w;
TQString s = b->text();
if ( s.isEmpty() )
@@ -673,7 +673,7 @@ void TQToolBar::createPopup()
if ( !b->isEnabled() )
d->extensionPopup->setItemEnabled( id, FALSE );
#ifndef QT_NO_COMBOBOX
- } else if ( ::qt_cast<TQComboBox*>(w) ) {
+ } else if ( ::tqt_cast<TQComboBox*>(w) ) {
TQComboBox *c = (TQComboBox*)w;
if ( c->count() != 0 ) {
#ifndef QT_NO_WIDGET_TOPEXTRA
diff --git a/src/widgets/qtoolbox.cpp b/src/widgets/qtoolbox.cpp
index 05793a7d..74f1e604 100644
--- a/src/widgets/qtoolbox.cpp
+++ b/src/widgets/qtoolbox.cpp
@@ -393,7 +393,7 @@ int TQToolBox::insertItem( int index, TQWidget *item, const TQIconSet &iconSet,
void TQToolBox::buttonClicked()
{
- TQToolBoxButton *tb = ::qt_cast<TQToolBoxButton*>(sender());
+ TQToolBoxButton *tb = ::tqt_cast<TQToolBoxButton*>(sender());
TQWidget* item = 0;
for ( TQToolBoxPrivate::PageList::ConstIterator i = d->pageList.constBegin(); i != d->pageList.constEnd(); ++i )
if ( (*i).button == tb ) {
diff --git a/src/widgets/qtoolbutton.cpp b/src/widgets/qtoolbutton.cpp
index 26f5607f..e7f7e6db 100644
--- a/src/widgets/qtoolbutton.cpp
+++ b/src/widgets/qtoolbutton.cpp
@@ -144,7 +144,7 @@ TQToolButton::TQToolButton( TQWidget * parent, const char *name )
{
init();
#ifndef QT_NO_TOOLBAR
- TQToolBar* tb = ::qt_cast<TQToolBar*>(parent);
+ TQToolBar* tb = ::tqt_cast<TQToolBar*>(parent);
if ( tb ) {
setAutoRaise( TRUE );
if ( tb->mainWindow() ) {
@@ -910,7 +910,7 @@ void TQToolButton::popupTimerDone()
setAutoRepeat( FALSE );
bool horizontal = TRUE;
#ifndef QT_NO_TOOLBAR
- TQToolBar *tb = ::qt_cast<TQToolBar*>(parentWidget());
+ TQToolBar *tb = ::tqt_cast<TQToolBar*>(parentWidget());
if ( tb && tb->orientation() == Vertical )
horizontal = FALSE;
#endif
diff --git a/src/widgets/qwidgetplugin.cpp b/src/widgets/qwidgetplugin.cpp
index 37b5156b..58c1e2c0 100644
--- a/src/widgets/qwidgetplugin.cpp
+++ b/src/widgets/qwidgetplugin.cpp
@@ -237,7 +237,7 @@ bool TQWidgetPluginPrivate::canUnload() const
#ifdef QT_CONTAINER_CUSTOM_WIDGETS
TQWidget* TQWidgetPluginPrivate::containerOfWidget( const TQString &key, TQWidget *widget ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->containerOfWidget( key, widget );
return widget;
@@ -245,7 +245,7 @@ TQWidget* TQWidgetPluginPrivate::containerOfWidget( const TQString &key, TQWidge
int TQWidgetPluginPrivate::count( const TQString &key, TQWidget *container ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->count( key, container );
return 0;
@@ -253,7 +253,7 @@ int TQWidgetPluginPrivate::count( const TQString &key, TQWidget *container ) con
int TQWidgetPluginPrivate::currentIndex( const TQString &key, TQWidget *container ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->currentIndex( key, container );
return -1;
@@ -261,7 +261,7 @@ int TQWidgetPluginPrivate::currentIndex( const TQString &key, TQWidget *containe
TQString TQWidgetPluginPrivate::pageLabel( const TQString &key, TQWidget *container, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->pageLabel( key, container, index );
return TQString::null;
@@ -269,7 +269,7 @@ TQString TQWidgetPluginPrivate::pageLabel( const TQString &key, TQWidget *contai
TQWidget *TQWidgetPluginPrivate::page( const TQString &key, TQWidget *container, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->page( key, container, index );
return 0;
@@ -277,7 +277,7 @@ TQWidget *TQWidgetPluginPrivate::page( const TQString &key, TQWidget *container,
bool TQWidgetPluginPrivate::isPassiveInteractor( const TQString &key, TQWidget *widget ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->isPassiveInteractor( key, widget );
return FALSE;
@@ -285,7 +285,7 @@ bool TQWidgetPluginPrivate::isPassiveInteractor( const TQString &key, TQWidget *
bool TQWidgetPluginPrivate::supportsPages( const TQString &key ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->supportsPages( key );
return 0;
@@ -294,7 +294,7 @@ bool TQWidgetPluginPrivate::supportsPages( const TQString &key ) const
TQWidget *TQWidgetPluginPrivate::addPage( const TQString &key, TQWidget *container,
const TQString &name, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->addPage( key, container, name, index );
return 0;
@@ -303,14 +303,14 @@ TQWidget *TQWidgetPluginPrivate::addPage( const TQString &key, TQWidget *contain
void TQWidgetPluginPrivate::insertPage( const TQString &key, TQWidget *container,
const TQString &name, int index, TQWidget *page ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->insertPage( key, container, name, index, page );
}
void TQWidgetPluginPrivate::removePage( const TQString &key, TQWidget *container, int index ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->removePage( key, container, index );
}
@@ -318,7 +318,7 @@ void TQWidgetPluginPrivate::removePage( const TQString &key, TQWidget *container
void TQWidgetPluginPrivate::movePage( const TQString &key, TQWidget *container,
int fromIndex, int toIndex ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->movePage( key, container, fromIndex, toIndex );
}
@@ -326,14 +326,14 @@ void TQWidgetPluginPrivate::movePage( const TQString &key, TQWidget *container,
void TQWidgetPluginPrivate::renamePage( const TQString &key, TQWidget *container,
int index, const TQString &newName ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
p->renamePage( key, container, index, newName );
}
TQWidgetList TQWidgetPluginPrivate::pages( const TQString &key, TQWidget *container ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->pages( key, container );
return TQWidgetList();
@@ -342,7 +342,7 @@ TQWidgetList TQWidgetPluginPrivate::pages( const TQString &key, TQWidget *contai
TQString TQWidgetPluginPrivate::createCode( const TQString &key, const TQString &container,
const TQString &page, const TQString &pageName ) const
{
- TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->qt_cast( "TQWidgetContainerPlugin" );
+ TQWidgetContainerPlugin *p = (TQWidgetContainerPlugin*)plugin->tqt_cast( "TQWidgetContainerPlugin" );
if ( p )
return p->createCode( key, container, page, pageName );
return TQString::null;
diff --git a/src/widgets/qwidgetresizehandler.cpp b/src/widgets/qwidgetresizehandler.cpp
index f0d21a60..80339a4f 100644
--- a/src/widgets/qwidgetresizehandler.cpp
+++ b/src/widgets/qwidgetresizehandler.cpp
@@ -60,7 +60,7 @@ TQWidgetResizeHandler::TQWidgetResizeHandler( TQWidget *parent, TQWidget *cw, co
{
mode = Nowhere;
widget->setMouseTracking( TRUE );
- TQFrame *frame = ::qt_cast<TQFrame*>(widget);
+ TQFrame *frame = ::tqt_cast<TQFrame*>(widget);
range = frame ? frame->frameWidth() : RANGE;
range = TQMAX( RANGE, range );
activeForMove = activeForResize = TRUE;
@@ -114,7 +114,7 @@ bool TQWidgetResizeHandler::eventFilter( TQObject *o, TQEvent *ee )
TQWidget *w = childOf( widget, (TQWidget*)o );
if ( !w
#ifndef QT_NO_SIZEGRIP
- || ::qt_cast<TQSizeGrip*>(o)
+ || ::tqt_cast<TQSizeGrip*>(o)
#endif
|| tqApp->activePopupWidget() ) {
if ( buttonDown && ee->type() == TQEvent::MouseButtonRelease )
@@ -234,7 +234,7 @@ void TQWidgetResizeHandler::mouseMoveEvent( TQMouseEvent *e )
int mh = TQMAX( childWidget->minimumSizeHint().height(),
childWidget->minimumHeight() );
if ( childWidget != widget ) {
- TQFrame *frame = ::qt_cast<TQFrame*>(widget);
+ TQFrame *frame = ::tqt_cast<TQFrame*>(widget);
if ( frame )
fw = frame->frameWidth();
mw += 2 * fw;
diff --git a/src/workspace/qworkspace.cpp b/src/workspace/qworkspace.cpp
index ef8dbed3..acf1fcb8 100644
--- a/src/workspace/qworkspace.cpp
+++ b/src/workspace/qworkspace.cpp
@@ -804,7 +804,7 @@ void TQWorkspace::handleUndock(TQDockWindow *w)
TQRect maxRect = dw->availableGeometry(dw->screenNumber(d->mainwindow));
TQPoint wpos(maxRect.left(), maxRect.top());
int possible = 0;
- if(!::qt_cast<TQToolBar*>(w)) {
+ if(!::tqt_cast<TQToolBar*>(w)) {
struct place_score { int o, x, y; } score = {0, 0, 0};
int left = 1, x = wpos.x(), y = wpos.y();
TQPtrListIterator<TQDockWindow> it( d->dockwindows );
@@ -937,15 +937,15 @@ void TQWorkspace::showEvent( TQShowEvent *e )
if(d->wmode == AutoDetect) {
d->wmode = MDI;
TQWidget *o = topLevelWidget();
- if(::qt_cast<TQMainWindow*>(o)) {
+ if(::tqt_cast<TQMainWindow*>(o)) {
d->wmode = TopLevel;
const TQObjectList *c = o->children();
for(TQObjectListIt it(*c); it; ++it) {
if((*it)->isWidgetType() && !((TQWidget *)(*it))->isTopLevel() &&
- !::qt_cast<TQHBox*>(*it) && !::qt_cast<TQVBox*>(*it) &&
- !::qt_cast<TQWorkspaceChild*>(*it) && !(*it)->inherits("TQHideDock") &&
- !::qt_cast<TQDockArea*>(*it) && !::qt_cast<TQWorkspace*>(*it) &&
- !::qt_cast<TQMenuBar*>(*it) && !::qt_cast<TQStatusBar*>(*it)) {
+ !::tqt_cast<TQHBox*>(*it) && !::tqt_cast<TQVBox*>(*it) &&
+ !::tqt_cast<TQWorkspaceChild*>(*it) && !(*it)->inherits("TQHideDock") &&
+ !::tqt_cast<TQDockArea*>(*it) && !::tqt_cast<TQWorkspace*>(*it) &&
+ !::tqt_cast<TQMenuBar*>(*it) && !::tqt_cast<TQStatusBar*>(*it)) {
d->wmode = MDI;
break;
}
@@ -954,7 +954,7 @@ void TQWorkspace::showEvent( TQShowEvent *e )
}
if(d->wmode == TopLevel) {
TQWidget *o = topLevelWidget();
- d->mainwindow = ::qt_cast<TQMainWindow*>(o);
+ d->mainwindow = ::tqt_cast<TQMainWindow*>(o);
const TQObjectList children = *o->children();
for(TQObjectListIt it(children); it; ++it) {
if(!(*it)->isWidgetType())
@@ -962,16 +962,16 @@ void TQWorkspace::showEvent( TQShowEvent *e )
TQWidget *w = (TQWidget *)(*it);
if(w->isTopLevel())
continue;
- if(::qt_cast<TQDockArea*>(w)) {
+ if(::tqt_cast<TQDockArea*>(w)) {
const TQObjectList *dock_c = w->children();
if(dock_c) {
TQPtrList<TQToolBar> tb_list;
for(TQObjectListIt dock_it(*dock_c); dock_it; ++dock_it) {
if(!(*dock_it)->isWidgetType())
continue;
- if(::qt_cast<TQToolBar*>(*dock_it)) {
+ if(::tqt_cast<TQToolBar*>(*dock_it)) {
tb_list.append((TQToolBar *)(*dock_it));
- } else if (::qt_cast<TQDockWindow*>(*dock_it)) {
+ } else if (::tqt_cast<TQDockWindow*>(*dock_it)) {
TQDockWindow *dw = (TQDockWindow*)(*dock_it);
dw->move(dw->mapToGlobal(TQPoint(0, 0)));
d->newdocks.append(dw);
@@ -1012,13 +1012,13 @@ void TQWorkspace::showEvent( TQShowEvent *e )
}
}
w->installEventFilter(this);
- } else if(::qt_cast<TQStatusBar*>(w)) {
+ } else if(::tqt_cast<TQStatusBar*>(w)) {
if(activeWindow()) {
TQWorkspaceChild *c;
if ( ( c = findChild(activeWindow()) ) )
c->setStatusBar((TQStatusBar*)w);
}
- } else if(::qt_cast<TQWorkspaceChild*>(w)) {
+ } else if(::tqt_cast<TQWorkspaceChild*>(w)) {
w->reparent(this, w->testWFlags(~(0)) | WType_TopLevel, w->pos());
}
}
@@ -1033,7 +1033,7 @@ void TQWorkspace::showEvent( TQShowEvent *e )
o->reparent(w, TQPoint(0, 0), TRUE);
{
TQMenuBar *mb = 0;
- if(::qt_cast<TQMainWindow*>(o))
+ if(::tqt_cast<TQMainWindow*>(o))
mb = ((TQMainWindow *)o)->menuBar();
if(!mb)
mb = (TQMenuBar*)o->child(NULL, "TQMenuBar");
@@ -1291,7 +1291,7 @@ TQWidgetList TQWorkspace::windowList( WindowOrder order ) const
while (it.current()) {
TQObject *o = it.current();
++it;
- TQWorkspaceChild *c = ::qt_cast<TQWorkspaceChild*>(o);
+ TQWorkspaceChild *c = ::tqt_cast<TQWorkspaceChild*>(o);
if (c && c->windowWidget())
windows.append(c->windowWidget());
}
@@ -1313,15 +1313,15 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
{
if(d->wmode == TopLevel && d->mainwindow && o->parent() == d->mainwindow) {
if((e->type() == TQEvent::ChildInserted || e->type() == TQEvent::Reparent) &&
- ::qt_cast<TQDockArea*>(o) && !((TQWidget*)o)->isVisible()) {
+ ::tqt_cast<TQDockArea*>(o) && !((TQWidget*)o)->isVisible()) {
TQChildEvent *ce = (TQChildEvent*)e;
- if(!::qt_cast<TQDockWindow*>(ce->child())) {
+ if(!::tqt_cast<TQDockWindow*>(ce->child())) {
tqDebug("No idea what to do..");
return FALSE;
}
TQDockWindow *w = (TQDockWindow*)ce->child();
if(d->newdocks.find(w) == -1 && d->dockwindows.find(w) == -1) {
- if(::qt_cast<TQToolBar*>(w))
+ if(::tqt_cast<TQToolBar*>(w))
d->newdocks.prepend(w);
else
d->newdocks.append(w);
@@ -1451,7 +1451,7 @@ bool TQWorkspace::eventFilter( TQObject *o, TQEvent * e)
if ( c->shademode )
c->showShaded();
}
- } else if ( ::qt_cast<TQWorkspaceChild*>(o) ) {
+ } else if ( ::tqt_cast<TQWorkspaceChild*>(o) ) {
d->popup->hide();
}
updateWorkspace();
@@ -2148,7 +2148,7 @@ TQWorkspaceChild::~TQWorkspaceChild()
{
if ( iconw )
delete iconw->parentWidget();
- TQWorkspace *workspace = ::qt_cast<TQWorkspace*>(parentWidget());
+ TQWorkspace *workspace = ::tqt_cast<TQWorkspace*>(parentWidget());
if ( workspace ) {
workspace->d->focus.removeRef(this);
if ( workspace->d->active == this ) {
@@ -2536,7 +2536,7 @@ void TQWorkspaceChild::styleChange( TQStyle & )
{
resizeEvent( 0 );
if ( iconw ) {
- TQVBox *vbox = (TQVBox*)iconw->parentWidget()->qt_cast( "TQVBox" );
+ TQVBox *vbox = (TQVBox*)iconw->parentWidget()->tqt_cast( "TQVBox" );
Q_ASSERT(vbox);
if ( !style().styleHint( TQStyle::SH_TitleBar_NoBorder ) ) {
vbox->setFrameStyle( TQFrame::WinPanel | TQFrame::Raised );