diff options
Diffstat (limited to 'tools/designer')
83 files changed, 160 insertions, 160 deletions
diff --git a/tools/designer/designer/actiondnd.cpp b/tools/designer/designer/actiondnd.cpp index 1f9e8328a..def64548a 100644 --- a/tools/designer/designer/actiondnd.cpp +++ b/tools/designer/designer/actiondnd.cpp @@ -138,7 +138,7 @@ void TQDesignerAction::remove() class TQDesignerIndicatorWidget : public TQWidget { - Q_OBJECT + TQ_OBJECT public: TQDesignerIndicatorWidget( TQWidget *p ) diff --git a/tools/designer/designer/actiondnd.h b/tools/designer/designer/actiondnd.h index ba21ff5ae..415784248 100644 --- a/tools/designer/designer/actiondnd.h +++ b/tools/designer/designer/actiondnd.h @@ -52,7 +52,7 @@ class TQPopupMenu; class ActionDrag : public TQStoredDrag { - Q_OBJECT + TQ_OBJECT public: ActionDrag(const TQString &type, TQAction *action, TQWidget *source); @@ -74,7 +74,7 @@ private: class TQDesignerActionGroup : public TQActionGroup { - Q_OBJECT + TQ_OBJECT public: TQDesignerActionGroup( TQObject *parent ) @@ -109,7 +109,7 @@ private: class TQDesignerAction : public TQAction { - Q_OBJECT + TQ_OBJECT public: TQDesignerAction( TQObject *parent ) @@ -145,7 +145,7 @@ private: class TQDesignerToolBarSeparator : public TQWidget { - Q_OBJECT + TQ_OBJECT public: TQDesignerToolBarSeparator( Orientation, TQToolBar *parent, const char* name=0 ); @@ -164,7 +164,7 @@ private: class TQSeparatorAction : public TQAction { - Q_OBJECT + TQ_OBJECT public: TQSeparatorAction( TQObject *parent ); @@ -183,7 +183,7 @@ private: class TQDesignerToolBar : public TQToolBar { - Q_OBJECT + TQ_OBJECT public: TQDesignerToolBar( TQMainWindow *mw ); diff --git a/tools/designer/designer/actioneditorimpl.h b/tools/designer/designer/actioneditorimpl.h index a04b2e480..d12792719 100644 --- a/tools/designer/designer/actioneditorimpl.h +++ b/tools/designer/designer/actioneditorimpl.h @@ -42,7 +42,7 @@ class ActionItem; class ActionEditor : public ActionEditorBase { - Q_OBJECT + TQ_OBJECT public: ActionEditor( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); diff --git a/tools/designer/designer/actionlistview.h b/tools/designer/designer/actionlistview.h index d96633688..59f769ab4 100644 --- a/tools/designer/designer/actionlistview.h +++ b/tools/designer/designer/actionlistview.h @@ -65,7 +65,7 @@ private: class ActionListView : public TQListView { - Q_OBJECT + TQ_OBJECT public: ActionListView( TQWidget *parent = 0, const char *name = 0 ); diff --git a/tools/designer/designer/asciivalidator.h b/tools/designer/designer/asciivalidator.h index d3afdfd26..ee6aca398 100644 --- a/tools/designer/designer/asciivalidator.h +++ b/tools/designer/designer/asciivalidator.h @@ -40,7 +40,7 @@ class AsciiValidator: public TQValidator { - Q_OBJECT + TQ_OBJECT public: AsciiValidator( TQObject * parent, const char *name = 0 ); AsciiValidator( bool funcName, TQObject * parent, const char *name = 0 ); diff --git a/tools/designer/designer/command.h b/tools/designer/designer/command.h index d6eef4fe5..6fc0aa5cd 100644 --- a/tools/designer/designer/command.h +++ b/tools/designer/designer/command.h @@ -156,7 +156,7 @@ private: class CommandHistory : public TQObject { - Q_OBJECT + TQ_OBJECT public: CommandHistory( int s ); diff --git a/tools/designer/designer/connectionitems.h b/tools/designer/designer/connectionitems.h index 60407ae55..40878c442 100644 --- a/tools/designer/designer/connectionitems.h +++ b/tools/designer/designer/connectionitems.h @@ -48,7 +48,7 @@ class ConnectionContainer; class ConnectionItem : public TQObject, public TQComboTableItem { - Q_OBJECT + TQ_OBJECT public: ConnectionItem( TQTable *table, FormWindow *fw ); @@ -83,7 +83,7 @@ private: class SenderItem : public ConnectionItem { - Q_OBJECT + TQ_OBJECT public: SenderItem( TQTable *table, FormWindow *fw ); @@ -102,7 +102,7 @@ private slots: class ReceiverItem : public ConnectionItem { - Q_OBJECT + TQ_OBJECT public: ReceiverItem( TQTable *table, FormWindow *fw ); @@ -121,7 +121,7 @@ private slots: class SignalItem : public ConnectionItem { - Q_OBJECT + TQ_OBJECT public: SignalItem( TQTable *table, FormWindow *fw ); @@ -138,7 +138,7 @@ signals: class SlotItem : public ConnectionItem { - Q_OBJECT + TQ_OBJECT public: SlotItem( TQTable *table, FormWindow *fw ); @@ -166,7 +166,7 @@ private: class ConnectionContainer : public TQObject { - Q_OBJECT + TQ_OBJECT public: ConnectionContainer( TQObject *parent, SenderItem *i1, SignalItem *i2, diff --git a/tools/designer/designer/connectiontable.h b/tools/designer/designer/connectiontable.h index 6a11ce9f4..9e5564475 100644 --- a/tools/designer/designer/connectiontable.h +++ b/tools/designer/designer/connectiontable.h @@ -38,7 +38,7 @@ class ConnectionTable : public TQTable { - Q_OBJECT + TQ_OBJECT public: ConnectionTable( TQWidget *parent, const char *name ); diff --git a/tools/designer/designer/customwidgeteditorimpl.h b/tools/designer/designer/customwidgeteditorimpl.h index fd645976b..49f28027c 100644 --- a/tools/designer/designer/customwidgeteditorimpl.h +++ b/tools/designer/designer/customwidgeteditorimpl.h @@ -46,7 +46,7 @@ class MainWindow; class CustomWidgetEditor : public CustomWidgetEditorBase { - Q_OBJECT + TQ_OBJECT public: CustomWidgetEditor( TQWidget *parent , MainWindow *mw); diff --git a/tools/designer/designer/database.h b/tools/designer/designer/database.h index 3008f7835..0af7a92f9 100644 --- a/tools/designer/designer/database.h +++ b/tools/designer/designer/database.h @@ -65,7 +65,7 @@ protected: class TQDesignerDataBrowser : public TQDataBrowser, public DatabaseSupport { - Q_OBJECT + TQ_OBJECT public: TQDesignerDataBrowser( TQWidget *parent, const char *name ); @@ -76,7 +76,7 @@ protected: class TQDesignerDataView : public TQDataView, public DatabaseSupport { - Q_OBJECT + TQ_OBJECT public: TQDesignerDataView( TQWidget *parent, const char *name ); diff --git a/tools/designer/designer/database2.h b/tools/designer/designer/database2.h index fade3b8e9..df7c294b1 100644 --- a/tools/designer/designer/database2.h +++ b/tools/designer/designer/database2.h @@ -65,7 +65,7 @@ protected: class TQDesignerDataBrowser2 : public TQDataBrowser, public DatabaseSupport2 { - Q_OBJECT + TQ_OBJECT public: TQDesignerDataBrowser2( TQWidget *parent, const char *name ); @@ -76,7 +76,7 @@ protected: class TQDesignerDataView2 : public TQDataView, public DatabaseSupport2 { - Q_OBJECT + TQ_OBJECT public: TQDesignerDataView2( TQWidget *parent, const char *name ); diff --git a/tools/designer/designer/dbconnectionimpl.h b/tools/designer/designer/dbconnectionimpl.h index c3c7b7f98..fbf379d3b 100644 --- a/tools/designer/designer/dbconnectionimpl.h +++ b/tools/designer/designer/dbconnectionimpl.h @@ -42,7 +42,7 @@ class TQGridLayout; class DatabaseConnectionEditor : public DatabaseConnectionEditorBase { - Q_OBJECT + TQ_OBJECT public: DatabaseConnectionEditor( DatabaseConnection* connection, TQWidget* parent = 0, diff --git a/tools/designer/designer/dbconnectionsimpl.h b/tools/designer/designer/dbconnectionsimpl.h index ef3e50bd1..3b65ed60a 100644 --- a/tools/designer/designer/dbconnectionsimpl.h +++ b/tools/designer/designer/dbconnectionsimpl.h @@ -41,7 +41,7 @@ class Project; class DatabaseConnectionsEditor : public DatabaseConnectionBase { - Q_OBJECT + TQ_OBJECT public: DatabaseConnectionsEditor( Project *pro, TQWidget* parent = 0, diff --git a/tools/designer/designer/designerapp.cpp b/tools/designer/designer/designerapp.cpp index 06e8edab9..f3347446b 100644 --- a/tools/designer/designer/designerapp.cpp +++ b/tools/designer/designer/designerapp.cpp @@ -105,16 +105,16 @@ TQString DesignerApplication::settingsKey() { if ( !settings_key ) settings_key = new TQString( "/TQt Designer/" + - TQString::number( (QT_VERSION >> 16) & 0xff ) + - "." + TQString::number( (QT_VERSION >> 8) & 0xff ) + "/" ); + TQString::number( (TQT_VERSION >> 16) & 0xff ) + + "." + TQString::number( (TQT_VERSION >> 8) & 0xff ) + "/" ); return *settings_key; } TQString DesignerApplication::oldSettingsKey() { if ( !old_settings_key ) { - int majorVer = (QT_VERSION >> 16) & 0xff; - int minorVer = (QT_VERSION >> 8) & 0xff; + int majorVer = (TQT_VERSION >> 16) & 0xff; + int minorVer = (TQT_VERSION >> 8) & 0xff; // If minorVer is 0 (e.g. 4.0) then we don't want to read the // old settings, too much might have changed. diff --git a/tools/designer/designer/editfunctionsimpl.h b/tools/designer/designer/editfunctionsimpl.h index d852afcfb..e661dedd8 100644 --- a/tools/designer/designer/editfunctionsimpl.h +++ b/tools/designer/designer/editfunctionsimpl.h @@ -44,7 +44,7 @@ class TQListViewItem; class EditFunctions : public EditFunctionsBase { - Q_OBJECT + TQ_OBJECT public: EditFunctions( TQWidget *parent, FormWindow *fw, bool showOnlySlots = FALSE ); diff --git a/tools/designer/designer/formfile.h b/tools/designer/designer/formfile.h index 8cc493c3b..d0dbe5374 100644 --- a/tools/designer/designer/formfile.h +++ b/tools/designer/designer/formfile.h @@ -44,7 +44,7 @@ class SourceEditor; class FormFile : public TQObject { - Q_OBJECT + TQ_OBJECT friend class SourceEditor; public: diff --git a/tools/designer/designer/formsettingsimpl.h b/tools/designer/designer/formsettingsimpl.h index 950b2f213..4b7973904 100644 --- a/tools/designer/designer/formsettingsimpl.h +++ b/tools/designer/designer/formsettingsimpl.h @@ -40,7 +40,7 @@ class FormWindow; class FormSettings : public FormSettingsBase { - Q_OBJECT + TQ_OBJECT public: FormSettings( TQWidget *parent, FormWindow *fw ); diff --git a/tools/designer/designer/formwindow.h b/tools/designer/designer/formwindow.h index b294d6794..130d719a3 100644 --- a/tools/designer/designer/formwindow.h +++ b/tools/designer/designer/formwindow.h @@ -71,7 +71,7 @@ class OrderIndicator; class FormWindow : public TQWidget { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( TQString fileName READ fileName WRITE setFileName ) public: diff --git a/tools/designer/designer/hierarchyview.h b/tools/designer/designer/hierarchyview.h index 29c200556..faa097e08 100644 --- a/tools/designer/designer/hierarchyview.h +++ b/tools/designer/designer/hierarchyview.h @@ -104,7 +104,7 @@ private: class HierarchyList : public TQListView { - Q_OBJECT + TQ_OBJECT public: HierarchyList( TQWidget *parent, FormWindow *fw, bool doConnects = TRUE ); @@ -156,7 +156,7 @@ protected: class FormDefinitionView : public HierarchyList { - Q_OBJECT + TQ_OBJECT public: FormDefinitionView( TQWidget *parent, FormWindow *fw ); @@ -189,7 +189,7 @@ private: class HierarchyView : public TQTabWidget { - Q_OBJECT + TQ_OBJECT public: HierarchyView( TQWidget *parent ); diff --git a/tools/designer/designer/iconvieweditorimpl.h b/tools/designer/designer/iconvieweditorimpl.h index dc995147c..d9e04a9ad 100644 --- a/tools/designer/designer/iconvieweditorimpl.h +++ b/tools/designer/designer/iconvieweditorimpl.h @@ -40,7 +40,7 @@ class FormWindow; class IconViewEditor : public IconViewEditorBase { - Q_OBJECT + TQ_OBJECT public: IconViewEditor( TQWidget *parent, TQWidget *editWidget, FormWindow *fw ); diff --git a/tools/designer/designer/layout.h b/tools/designer/designer/layout.h index 97bd997bf..85b5b6af8 100644 --- a/tools/designer/designer/layout.h +++ b/tools/designer/designer/layout.h @@ -47,7 +47,7 @@ class TQPaintEvent; class Layout : public TQObject { - Q_OBJECT + TQ_OBJECT public: Layout( const TQWidgetList &wl, TQWidget *p, FormWindow *fw, TQWidget *lb, bool doSetup = TRUE, bool splitter = FALSE ); @@ -124,7 +124,7 @@ protected: class Spacer : public TQWidget { - Q_OBJECT + TQ_OBJECT Q_OVERRIDE( TQCString name ) Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation ) @@ -168,7 +168,7 @@ protected: class TQDesignerGridLayout : public TQGridLayout { - Q_OBJECT + TQ_OBJECT public: TQDesignerGridLayout( TQWidget *parent ) : TQGridLayout( parent ){}; TQDesignerGridLayout( TQLayout *parentLayout ) : TQGridLayout( parentLayout ){}; diff --git a/tools/designer/designer/listboxdnd.h b/tools/designer/designer/listboxdnd.h index 50e8db899..546f6a2a3 100644 --- a/tools/designer/designer/listboxdnd.h +++ b/tools/designer/designer/listboxdnd.h @@ -42,7 +42,7 @@ typedef TQPtrList<TQListBoxItem> ListBoxItemList; class ListBoxDnd : public ListDnd { - Q_OBJECT + TQ_OBJECT public: // dragModes are enumerated in ListDnd ListBoxDnd( TQListBox * eventSource, const char * name = 0 ); diff --git a/tools/designer/designer/listboxeditorimpl.h b/tools/designer/designer/listboxeditorimpl.h index d4375fb80..2f84eaf95 100644 --- a/tools/designer/designer/listboxeditorimpl.h +++ b/tools/designer/designer/listboxeditorimpl.h @@ -41,7 +41,7 @@ class FormWindow; class ListBoxEditor : public ListBoxEditorBase { - Q_OBJECT + TQ_OBJECT public: ListBoxEditor( TQWidget *parent, TQWidget *editWidget, FormWindow *fw ); diff --git a/tools/designer/designer/listboxrename.h b/tools/designer/designer/listboxrename.h index e857fcfe1..8606dea42 100644 --- a/tools/designer/designer/listboxrename.h +++ b/tools/designer/designer/listboxrename.h @@ -41,7 +41,7 @@ class TQLineEdit; class ListBoxRename : public TQObject { - Q_OBJECT + TQ_OBJECT public: ListBoxRename( TQListBox * eventSource, const char * name = 0 ); bool eventFilter( TQObject *, TQEvent * event ); diff --git a/tools/designer/designer/listdnd.h b/tools/designer/designer/listdnd.h index 08820f707..df93f5cce 100644 --- a/tools/designer/designer/listdnd.h +++ b/tools/designer/designer/listdnd.h @@ -39,7 +39,7 @@ class ListDnd : public TQObject { - Q_OBJECT + TQ_OBJECT public: enum DragMode { None = 0, External = 1, Internal = 2, Both = 3, Move = 4, NullDrop = 8 }; ListDnd( TQScrollView * eventSource, const char * name = 0 ); diff --git a/tools/designer/designer/listviewdnd.h b/tools/designer/designer/listviewdnd.h index dee4ce43f..a58773d72 100644 --- a/tools/designer/designer/listviewdnd.h +++ b/tools/designer/designer/listviewdnd.h @@ -44,7 +44,7 @@ typedef TQPtrList<TQListViewItem> ListViewItemList; class ListViewDnd : public ListDnd { - Q_OBJECT + TQ_OBJECT public: enum DragMode { Flat = 16 }; // see ListDnd::DragMode diff --git a/tools/designer/designer/listvieweditorimpl.h b/tools/designer/designer/listvieweditorimpl.h index f3258fb60..194e1f81f 100644 --- a/tools/designer/designer/listvieweditorimpl.h +++ b/tools/designer/designer/listvieweditorimpl.h @@ -44,7 +44,7 @@ class FormWindow; class ListViewEditor : public ListViewEditorBase { - Q_OBJECT + TQ_OBJECT public: ListViewEditor( TQWidget *parent, TQListView *lv, FormWindow *fw ); diff --git a/tools/designer/designer/mainwindow.cpp b/tools/designer/designer/mainwindow.cpp index 822f35eba..4f22fb8b5 100644 --- a/tools/designer/designer/mainwindow.cpp +++ b/tools/designer/designer/mainwindow.cpp @@ -820,7 +820,7 @@ void MainWindow::helpAbout() LanguageInterface *iface = MetaDataBase::languageInterface( eProject->language() ); dlg.aboutLicense->setText( iface->aboutText() ); } - dlg.aboutVersion->setText(TQString("Version ") + TQString(QT_VERSION_STR)); + dlg.aboutVersion->setText(TQString("Version ") + TQString(TQT_VERSION_STR)); dlg.resize( dlg.width(), dlg.layout()->heightForWidth(dlg.width()) ); dlg.exec(); } @@ -1306,7 +1306,7 @@ void MainWindow::insertFormWindow( FormWindow *fw ) } fw->show(); fw->currentToolChanged(); - if ( fw->caption().isEmpty() && qstrlen( fw->name() ) ) + if ( fw->caption().isEmpty() && tqstrlen( fw->name() ) ) fw->setCaption( fw->name() ); fw->mainContainer()->setCaption( fw->caption() ); WidgetFactory::saveDefaultProperties( fw->mainContainer(), diff --git a/tools/designer/designer/mainwindow.h b/tools/designer/designer/mainwindow.h index 602f8a563..b18618a98 100644 --- a/tools/designer/designer/mainwindow.h +++ b/tools/designer/designer/mainwindow.h @@ -83,7 +83,7 @@ class Preferences; class MainWindow : public TQMainWindow { - Q_OBJECT + TQ_OBJECT public: enum LineMode { Error, Step, StackFrame }; @@ -481,7 +481,7 @@ public: class SenderObject : public TQObject { - Q_OBJECT + TQ_OBJECT public: SenderObject( TQUnknownInterface *i ) : iface( i ) { iface->addRef(); } diff --git a/tools/designer/designer/menubareditor.h b/tools/designer/designer/menubareditor.h index 495d4112a..f1d87f206 100644 --- a/tools/designer/designer/menubareditor.h +++ b/tools/designer/designer/menubareditor.h @@ -43,7 +43,7 @@ class TQActionGroup; class MenuBarEditorItem : public TQObject { - Q_OBJECT + TQ_OBJECT friend class MenuBarEditor; @@ -87,7 +87,7 @@ class FormWindow; class MenuBarEditor : public TQMenuBar { - Q_OBJECT + TQ_OBJECT public: MenuBarEditor( FormWindow * fw, TQWidget * parent = 0, const char * name = 0 ); diff --git a/tools/designer/designer/multilineeditorimpl.h b/tools/designer/designer/multilineeditorimpl.h index 603578dbf..11c7233c7 100644 --- a/tools/designer/designer/multilineeditorimpl.h +++ b/tools/designer/designer/multilineeditorimpl.h @@ -45,7 +45,7 @@ class TQTextDocument; class TextEdit : public TQTextEdit { - Q_OBJECT + TQ_OBJECT public: TextEdit( TQWidget *parent = 0, const char *name = 0 ); @@ -56,7 +56,7 @@ public: class ToolBarItem : public TQAction { - Q_OBJECT + TQ_OBJECT public: ToolBarItem( TQWidget *parent, TQWidget *toolBar, @@ -75,7 +75,7 @@ private: class MultiLineEditor : public MultiLineEditorBase { - Q_OBJECT + TQ_OBJECT public: MultiLineEditor( bool call_static, bool richtextMode, TQWidget *parent, TQWidget *editWidget, diff --git a/tools/designer/designer/newformimpl.h b/tools/designer/designer/newformimpl.h index ba9a21c83..3b9413387 100644 --- a/tools/designer/designer/newformimpl.h +++ b/tools/designer/designer/newformimpl.h @@ -149,7 +149,7 @@ private: class NewForm : public NewFormBase { - Q_OBJECT + TQ_OBJECT public: NewForm( TQIconView *templateView, const TQString &templatePath ); diff --git a/tools/designer/designer/orderindicator.h b/tools/designer/designer/orderindicator.h index 49b144f64..1e7c88829 100644 --- a/tools/designer/designer/orderindicator.h +++ b/tools/designer/designer/orderindicator.h @@ -40,7 +40,7 @@ class FormWindow; class OrderIndicator : public TQWidget { - Q_OBJECT + TQ_OBJECT public: OrderIndicator( int i, TQWidget* w, FormWindow* fw ); diff --git a/tools/designer/designer/outputwindow.h b/tools/designer/designer/outputwindow.h index 991e75723..a523793b2 100644 --- a/tools/designer/designer/outputwindow.h +++ b/tools/designer/designer/outputwindow.h @@ -68,7 +68,7 @@ private: class OutputWindow : public TQTabWidget { - Q_OBJECT + TQ_OBJECT public: OutputWindow( TQWidget *parent ); diff --git a/tools/designer/designer/paletteeditoradvancedimpl.h b/tools/designer/designer/paletteeditoradvancedimpl.h index 3abd0fc12..ab61b33e2 100644 --- a/tools/designer/designer/paletteeditoradvancedimpl.h +++ b/tools/designer/designer/paletteeditoradvancedimpl.h @@ -40,7 +40,7 @@ class FormWindow; class PaletteEditorAdvanced : public PaletteEditorAdvancedBase { - Q_OBJECT + TQ_OBJECT public: PaletteEditorAdvanced( FormWindow *fw, TQWidget * parent=0, const char * name=0, bool modal=FALSE, WFlags f=0 ); diff --git a/tools/designer/designer/paletteeditorimpl.h b/tools/designer/designer/paletteeditorimpl.h index a4cd675a3..8ae59843d 100644 --- a/tools/designer/designer/paletteeditorimpl.h +++ b/tools/designer/designer/paletteeditorimpl.h @@ -40,7 +40,7 @@ class FormWindow; class PaletteEditor : public PaletteEditorBase { - Q_OBJECT + TQ_OBJECT public: PaletteEditor( FormWindow *fw, TQWidget * parent=0, const char * name=0, bool modal=FALSE, WFlags f=0 ); diff --git a/tools/designer/designer/pixmapchooser.h b/tools/designer/designer/pixmapchooser.h index 4ac0cba50..220502162 100644 --- a/tools/designer/designer/pixmapchooser.h +++ b/tools/designer/designer/pixmapchooser.h @@ -44,7 +44,7 @@ class FormWindow; class PixmapView : public TQScrollView, public TQFilePreview { - Q_OBJECT + TQ_OBJECT public: PixmapView( TQWidget *parent ); @@ -59,7 +59,7 @@ private: class ImageIconProvider : public TQFileIconProvider { - Q_OBJECT + TQ_OBJECT public: ImageIconProvider( TQWidget *parent = 0, const char *name = 0 ); diff --git a/tools/designer/designer/popupmenueditor.h b/tools/designer/designer/popupmenueditor.h index b4335905f..8143b9fa7 100644 --- a/tools/designer/designer/popupmenueditor.h +++ b/tools/designer/designer/popupmenueditor.h @@ -43,7 +43,7 @@ class TQMenuItem; class PopupMenuEditorItem : public TQObject { - Q_OBJECT + TQ_OBJECT friend class PopupMenuEditor; @@ -106,7 +106,7 @@ class TQLineEdit; class PopupMenuEditor : public TQWidget { - Q_OBJECT + TQ_OBJECT friend class PopupMenuEditorItem; friend class MenuBarEditor; diff --git a/tools/designer/designer/previewframe.h b/tools/designer/designer/previewframe.h index 679f20813..67fabbf52 100644 --- a/tools/designer/designer/previewframe.h +++ b/tools/designer/designer/previewframe.h @@ -41,7 +41,7 @@ class PreviewWorkspace : public TQWorkspace { - Q_OBJECT + TQ_OBJECT public: PreviewWorkspace( TQWidget* parent = 0, const char* name = 0 ) : TQWorkspace( parent, name ) {} @@ -53,7 +53,7 @@ protected: class PreviewFrame : public TQVBox { - Q_OBJECT + TQ_OBJECT public: PreviewFrame( TQWidget *parent = 0, const char *name = 0 ); diff --git a/tools/designer/designer/previewwidgetimpl.h b/tools/designer/designer/previewwidgetimpl.h index 0fff9d15d..aaf511546 100644 --- a/tools/designer/designer/previewwidgetimpl.h +++ b/tools/designer/designer/previewwidgetimpl.h @@ -38,7 +38,7 @@ class PreviewWidget : public PreviewWidgetBase { - Q_OBJECT + TQ_OBJECT public: PreviewWidget( TQWidget *parent = 0, const char *name = 0 ); diff --git a/tools/designer/designer/project.h b/tools/designer/designer/project.h index 066712c12..810e5b005 100644 --- a/tools/designer/designer/project.h +++ b/tools/designer/designer/project.h @@ -117,7 +117,7 @@ private: class Project : public TQObject { - Q_OBJECT + TQ_OBJECT friend class DatabaseConnection; public: diff --git a/tools/designer/designer/projectsettingsimpl.h b/tools/designer/designer/projectsettingsimpl.h index cff46e91b..639dab147 100644 --- a/tools/designer/designer/projectsettingsimpl.h +++ b/tools/designer/designer/projectsettingsimpl.h @@ -43,7 +43,7 @@ class SourceFile; class ProjectSettings : public ProjectSettingsBase { - Q_OBJECT + TQ_OBJECT public: ProjectSettings( Project *pro, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); diff --git a/tools/designer/designer/propertyeditor.h b/tools/designer/designer/propertyeditor.h index ca7228ac2..45f22481c 100644 --- a/tools/designer/designer/propertyeditor.h +++ b/tools/designer/designer/propertyeditor.h @@ -145,7 +145,7 @@ private: class PropertyTextItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyTextItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -181,7 +181,7 @@ private: class PropertyBoolItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyBoolItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -205,7 +205,7 @@ private: class PropertyIntItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyIntItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -230,7 +230,7 @@ private: class PropertyLayoutItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyLayoutItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -254,7 +254,7 @@ private: class PropertyDoubleItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyDoubleItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -277,7 +277,7 @@ private: class PropertyListItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyListItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -312,7 +312,7 @@ private: class PropertyFontItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyFontItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -341,7 +341,7 @@ private: class PropertyCoordItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: enum Type { Rect, Size, Point }; @@ -370,7 +370,7 @@ private: class PropertyColorItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyColorItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -404,7 +404,7 @@ private: class PropertyPixmapItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: enum Type { Pixmap, IconSet, Image }; @@ -436,7 +436,7 @@ private: class PropertySizePolicyItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertySizePolicyItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -462,7 +462,7 @@ private: class PropertyPaletteItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyPaletteItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -490,7 +490,7 @@ private: class PropertyCursorItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyCursorItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -514,7 +514,7 @@ private: class PropertyKeysequenceItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyKeysequenceItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -544,7 +544,7 @@ private: class PropertyDatabaseItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyDatabaseItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName, bool wField ); @@ -581,7 +581,7 @@ struct EnumItem { class EnumPopup : public TQFrame { - Q_OBJECT + TQ_OBJECT public: EnumPopup( TQWidget *parent, const char *name, WFlags f=0 ); @@ -605,7 +605,7 @@ private: class EnumBox : public TQComboBox { - Q_OBJECT + TQ_OBJECT public: EnumBox( TQWidget *parent, const char *name = 0 ); @@ -639,7 +639,7 @@ private: class PropertyEnumItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyEnumItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -665,7 +665,7 @@ private: class PropertyList : public TQListView { - Q_OBJECT + TQ_OBJECT public: PropertyList( PropertyEditor *e ); @@ -727,7 +727,7 @@ private: class EventList : public HierarchyList { - Q_OBJECT + TQ_OBJECT public: EventList( TQWidget *parent, FormWindow *fw, PropertyEditor *e ); @@ -754,7 +754,7 @@ private: class PropertyEditor : public TQTabWidget { - Q_OBJECT + TQ_OBJECT public: PropertyEditor( TQWidget *parent ); @@ -805,7 +805,7 @@ private: class PropertyDateItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyDateItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -828,7 +828,7 @@ private: class PropertyTimeItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyTimeItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -851,7 +851,7 @@ private: class PropertyDateTimeItem : public TQObject, public PropertyItem { - Q_OBJECT + TQ_OBJECT public: PropertyDateTimeItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); diff --git a/tools/designer/designer/qcompletionedit.h b/tools/designer/designer/qcompletionedit.h index 7bae93b8e..fcc8b4aec 100644 --- a/tools/designer/designer/qcompletionedit.h +++ b/tools/designer/designer/qcompletionedit.h @@ -42,7 +42,7 @@ class TQVBox; class TQCompletionEdit : public TQLineEdit { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( bool autoAdd READ autoAdd WRITE setAutoAdd ) Q_PROPERTY( bool caseSensitive READ isCaseSensitive WRITE setCaseSensitive ) diff --git a/tools/designer/designer/resource.cpp b/tools/designer/designer/resource.cpp index 0e4a5206a..4f6c997dc 100644 --- a/tools/designer/designer/resource.cpp +++ b/tools/designer/designer/resource.cpp @@ -2429,13 +2429,13 @@ static TQImage loadImageData( TQDomElement &n2 ) ulong len = n2.attribute( "length" ).toULong(); if ( len < data.length() * 5 ) len = data.length() * 5; - // qUncompress() expects the first 4 bytes to be the expected length of + // tqUncompress() expects the first 4 bytes to be the expected length of // the uncompressed data ba[0] = ( len & 0xff000000 ) >> 24; ba[1] = ( len & 0x00ff0000 ) >> 16; ba[2] = ( len & 0x0000ff00 ) >> 8; ba[3] = ( len & 0x000000ff ); - TQByteArray baunzip = qUncompress( ba, baSize ); + TQByteArray baunzip = tqUncompress( ba, baSize ); img.loadFromData( (const uchar*)baunzip.data(), baunzip.size(), format.left(format.find('.')) ); } else { img.loadFromData( (const uchar*)ba+lengthOffset, baSize-lengthOffset, format ); diff --git a/tools/designer/designer/sizehandle.h b/tools/designer/designer/sizehandle.h index d391ec9a2..adc1d7810 100644 --- a/tools/designer/designer/sizehandle.h +++ b/tools/designer/designer/sizehandle.h @@ -45,7 +45,7 @@ class TQPaintEvent; class SizeHandle : public TQWidget { - Q_OBJECT + TQ_OBJECT public: enum Direction { LeftTop, Top, RightTop, Right, RightBottom, Bottom, LeftBottom, Left }; diff --git a/tools/designer/designer/sourceeditor.h b/tools/designer/designer/sourceeditor.h index a41fd86c2..613fb549c 100644 --- a/tools/designer/designer/sourceeditor.h +++ b/tools/designer/designer/sourceeditor.h @@ -46,7 +46,7 @@ class SourceFile; class SourceEditor : public TQVBox { - Q_OBJECT + TQ_OBJECT public: SourceEditor( TQWidget *parent, EditorInterface *iface, LanguageInterface *liface ); diff --git a/tools/designer/designer/sourcefile.h b/tools/designer/designer/sourcefile.h index 47663c8e4..b659efaa9 100644 --- a/tools/designer/designer/sourcefile.h +++ b/tools/designer/designer/sourcefile.h @@ -43,7 +43,7 @@ class Project; class SourceFile : public TQObject { - Q_OBJECT + TQ_OBJECT public: SourceFile( const TQString &fn, bool temp, Project *p ); diff --git a/tools/designer/designer/startdialogimpl.h b/tools/designer/designer/startdialogimpl.h index c9406dc18..21d0b1dfa 100644 --- a/tools/designer/designer/startdialogimpl.h +++ b/tools/designer/designer/startdialogimpl.h @@ -46,7 +46,7 @@ class FileDialog : public TQFileDialog { - Q_OBJECT + TQ_OBJECT public: FileDialog( const TQString &dir, TQWidget *parent ); @@ -61,7 +61,7 @@ signals: class StartDialog : public StartDialogBase { - Q_OBJECT + TQ_OBJECT public: StartDialog( TQWidget *parent, const TQString &templatePath ); diff --git a/tools/designer/designer/styledbutton.h b/tools/designer/designer/styledbutton.h index 4574bf424..e9639d03b 100644 --- a/tools/designer/designer/styledbutton.h +++ b/tools/designer/designer/styledbutton.h @@ -43,7 +43,7 @@ class FormWindow; class StyledButton : public TQButton { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( TQColor color READ color WRITE setColor ) Q_PROPERTY( TQPixmap pixmap READ pixmap WRITE setPixmap ) diff --git a/tools/designer/designer/tableeditorimpl.h b/tools/designer/designer/tableeditorimpl.h index bb688433e..f566f2643 100644 --- a/tools/designer/designer/tableeditorimpl.h +++ b/tools/designer/designer/tableeditorimpl.h @@ -43,7 +43,7 @@ class FormWindow; class TableEditor : public TableEditorBase { - Q_OBJECT + TQ_OBJECT public: TableEditor( TQWidget* parent = 0, TQWidget *editWidget = 0, FormWindow *fw = 0, diff --git a/tools/designer/designer/timestamp.h b/tools/designer/designer/timestamp.h index b37d57f12..bdb88d801 100644 --- a/tools/designer/designer/timestamp.h +++ b/tools/designer/designer/timestamp.h @@ -40,7 +40,7 @@ class TimeStamp : public TQObject { - Q_OBJECT + TQ_OBJECT public: TimeStamp( TQObject *parent, const TQString &f ); diff --git a/tools/designer/designer/variabledialogimpl.h b/tools/designer/designer/variabledialogimpl.h index af4564b26..adc6f9643 100644 --- a/tools/designer/designer/variabledialogimpl.h +++ b/tools/designer/designer/variabledialogimpl.h @@ -41,7 +41,7 @@ class TQListView; class VariableDialog : public VariableDialogBase { - Q_OBJECT + TQ_OBJECT public: VariableDialog( FormWindow *fw, TQWidget* parent = 0 ); ~VariableDialog(); diff --git a/tools/designer/designer/widgetaction.h b/tools/designer/designer/widgetaction.h index da500176e..40017de8e 100644 --- a/tools/designer/designer/widgetaction.h +++ b/tools/designer/designer/widgetaction.h @@ -38,7 +38,7 @@ class WidgetAction : public TQAction { - Q_OBJECT + TQ_OBJECT public: WidgetAction( const TQString &grp, TQObject* parent, diff --git a/tools/designer/designer/widgetfactory.h b/tools/designer/designer/widgetfactory.h index 59e05a992..55d229077 100644 --- a/tools/designer/designer/widgetfactory.h +++ b/tools/designer/designer/widgetfactory.h @@ -128,7 +128,7 @@ private: class TQDesignerTabWidget : public TQTabWidget { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( int currentPage READ currentPage WRITE setCurrentPage STORED false DESIGNABLE true ) Q_PROPERTY( TQString pageTitle READ pageTitle WRITE setPageTitle STORED false DESIGNABLE true ) Q_PROPERTY( TQCString pageName READ pageName WRITE setPageName STORED false DESIGNABLE true ) @@ -157,7 +157,7 @@ private: class TQDesignerWidgetStack : public TQWidgetStack { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( int currentPage READ currentPage WRITE setCurrentPage STORED false DESIGNABLE true ) Q_PROPERTY( TQCString pageName READ pageName WRITE setPageName STORED false DESIGNABLE true ) public: @@ -200,7 +200,7 @@ private: class TQDesignerWizard : public TQWizard { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( int currentPage READ currentPageNum WRITE setCurrentPage STORED false DESIGNABLE true ) Q_PROPERTY( TQString pageTitle READ pageTitle WRITE setPageTitle STORED false DESIGNABLE true ) Q_PROPERTY( TQCString pageName READ pageName WRITE setPageName STORED false DESIGNABLE true ) @@ -242,7 +242,7 @@ private: class TQLayoutWidget : public TQWidget { - Q_OBJECT + TQ_OBJECT public: TQLayoutWidget( TQWidget *parent, const char *name ) : TQWidget( parent, name ), sp( TQWidget::sizePolicy() ) {} @@ -260,7 +260,7 @@ protected: class CustomWidget : public TQWidget { - Q_OBJECT + TQ_OBJECT public: CustomWidget( TQWidget *parent, const char *name, MetaDataBase::CustomWidget *cw ) @@ -292,7 +292,7 @@ protected: class Line : public TQFrame { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( Orientation orientation READ orientation WRITE setOrientation ) Q_OVERRIDE( int frameWidth DESIGNABLE false ) @@ -318,7 +318,7 @@ public: class TQDesignerLabel : public TQLabel { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( TQCString buddy READ buddyWidget WRITE setBuddyWidget ) @@ -350,7 +350,7 @@ private: class TQDesignerWidget : public TQWidget { - Q_OBJECT + TQ_OBJECT public: TQDesignerWidget( FormWindow *fw, TQWidget *parent, const char *name ) @@ -370,7 +370,7 @@ private: class TQDesignerDialog : public TQDialog { - Q_OBJECT + TQ_OBJECT Q_OVERRIDE( bool modal READ isModal WRITE setModal ) public: @@ -391,7 +391,7 @@ private: class TQDesignerToolButton : public TQToolButton { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( int buttonGroupId READ buttonGroupId WRITE setButtonGroupId ) public: @@ -414,7 +414,7 @@ public: class TQDesignerRadioButton : public TQRadioButton { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( int buttonGroupId READ buttonGroupId WRITE setButtonGroupId ) public: @@ -439,7 +439,7 @@ public: class TQDesignerPushButton : public TQPushButton { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( int buttonGroupId READ buttonGroupId WRITE setButtonGroupId ) public: @@ -463,7 +463,7 @@ public: class TQDesignerCheckBox : public TQCheckBox { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( int buttonGroupId READ buttonGroupId WRITE setButtonGroupId ) public: @@ -487,7 +487,7 @@ public: class TQDesignerToolBox : public TQToolBox { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( TQString itemLabel READ itemLabel WRITE setItemLabel STORED false DESIGNABLE true ) Q_PROPERTY( TQCString itemName READ itemName WRITE setItemName STORED false DESIGNABLE true ) Q_PROPERTY( BackgroundMode itemBackgroundMode READ itemBackgroundMode WRITE setItemBackgroundMode STORED false DESIGNABLE true ) diff --git a/tools/designer/designer/wizardeditorimpl.h b/tools/designer/designer/wizardeditorimpl.h index 983e26a86..c83268938 100644 --- a/tools/designer/designer/wizardeditorimpl.h +++ b/tools/designer/designer/wizardeditorimpl.h @@ -44,7 +44,7 @@ class FormWindow; class WizardEditor : public WizardEditorBase { - Q_OBJECT + TQ_OBJECT public: WizardEditor( TQWidget *parent, TQWizard *wizard, FormWindow *fw ); diff --git a/tools/designer/designer/workspace.h b/tools/designer/designer/workspace.h index e99c6f401..4f5bea132 100644 --- a/tools/designer/designer/workspace.h +++ b/tools/designer/designer/workspace.h @@ -93,7 +93,7 @@ private: class Workspace : public TQListView { - Q_OBJECT + TQ_OBJECT public: Workspace( TQWidget *parent , MainWindow *mw ); diff --git a/tools/designer/editor/arghintwidget.cpp b/tools/designer/editor/arghintwidget.cpp index e16708d0d..c49066c0c 100644 --- a/tools/designer/editor/arghintwidget.cpp +++ b/tools/designer/editor/arghintwidget.cpp @@ -128,7 +128,7 @@ static const char * right_disabled_xpm[] = { class ArrowButton : public TQButton { - Q_OBJECT + TQ_OBJECT public: enum Dir { Left, Right }; diff --git a/tools/designer/editor/arghintwidget.h b/tools/designer/editor/arghintwidget.h index 09937e3d2..5de4a129f 100644 --- a/tools/designer/editor/arghintwidget.h +++ b/tools/designer/editor/arghintwidget.h @@ -41,7 +41,7 @@ class ArrowButton; class ArgHintWidget : public TQFrame { - Q_OBJECT + TQ_OBJECT public: ArgHintWidget( TQWidget *parent, const char*name ); diff --git a/tools/designer/editor/browser.h b/tools/designer/editor/browser.h index a19e2bcca..ac8ada282 100644 --- a/tools/designer/editor/browser.h +++ b/tools/designer/editor/browser.h @@ -43,7 +43,7 @@ class TQTextFormat; class EditorBrowser : public TQObject { - Q_OBJECT + TQ_OBJECT public: EditorBrowser( Editor *e ); diff --git a/tools/designer/editor/completion.h b/tools/designer/editor/completion.h index 6328315c7..cb46fed8a 100644 --- a/tools/designer/editor/completion.h +++ b/tools/designer/editor/completion.h @@ -64,7 +64,7 @@ struct CompletionEntry class EditorCompletion : public TQObject { - Q_OBJECT + TQ_OBJECT public: EditorCompletion( Editor *e ); diff --git a/tools/designer/editor/editor.h b/tools/designer/editor/editor.h index 768c5f530..060394312 100644 --- a/tools/designer/editor/editor.h +++ b/tools/designer/editor/editor.h @@ -44,7 +44,7 @@ class TQAccel; class Editor : public TQTextEdit { - Q_OBJECT + TQ_OBJECT public: enum Selection { diff --git a/tools/designer/editor/markerwidget.h b/tools/designer/editor/markerwidget.h index 2ab70a420..67e4e3bc2 100644 --- a/tools/designer/editor/markerwidget.h +++ b/tools/designer/editor/markerwidget.h @@ -42,7 +42,7 @@ class TQTextParagraph; class MarkerWidget : public TQWidget { - Q_OBJECT + TQ_OBJECT public: MarkerWidget( ViewManager *parent, const char*name ); diff --git a/tools/designer/editor/viewmanager.h b/tools/designer/editor/viewmanager.h index 46e4839de..ea8addc53 100644 --- a/tools/designer/editor/viewmanager.h +++ b/tools/designer/editor/viewmanager.h @@ -47,7 +47,7 @@ class TQTimer; class ViewManager : public TQWidget { - Q_OBJECT + TQ_OBJECT public: ViewManager( TQWidget *parent, const char *name ); diff --git a/tools/designer/editor/yyindent.cpp b/tools/designer/editor/yyindent.cpp index f0014d37b..11adb7f94 100644 --- a/tools/designer/editor/yyindent.cpp +++ b/tools/designer/editor/yyindent.cpp @@ -72,7 +72,7 @@ #include <ntqregexp.h> -/* qmake ignore Q_OBJECT */ +/* qmake ignore TQ_OBJECT */ /* The indenter avoids getting stuck in almost infinite loops by @@ -629,9 +629,9 @@ static bool isUnfinishedLine() if ( TQString("{};").find(lastCh) == -1 && !yyLine->endsWith("...") ) { /* It doesn't end with ';' or similar. If it's neither - "Q_OBJECT" nor "if ( x )", it must be an unfinished line. + "TQ_OBJECT" nor "if ( x )", it must be an unfinished line. */ - unf = ( yyLine->contains("Q_OBJECT") == 0 && + unf = ( yyLine->contains("TQ_OBJECT") == 0 && !matchBracelessControlStatement() ); } else if ( lastCh == TQChar(';') ) { if ( lastParen(*yyLine) == TQChar('(') ) { diff --git a/tools/designer/examples/credit/creditform.h b/tools/designer/examples/credit/creditform.h index 5bd2778ed..f8beb3581 100644 --- a/tools/designer/examples/credit/creditform.h +++ b/tools/designer/examples/credit/creditform.h @@ -2,7 +2,7 @@ class CreditForm : public CreditFormBase { - Q_OBJECT + TQ_OBJECT public: CreditForm( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); diff --git a/tools/designer/examples/credit/creditformbase.h b/tools/designer/examples/credit/creditformbase.h index 428b3d1b8..8d8b97c69 100644 --- a/tools/designer/examples/credit/creditformbase.h +++ b/tools/designer/examples/credit/creditformbase.h @@ -21,7 +21,7 @@ class TQSpinBox; class CreditFormBase : public TQDialog { - Q_OBJECT + TQ_OBJECT public: CreditFormBase( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); diff --git a/tools/designer/examples/filechooser/widget/filechooser.h b/tools/designer/examples/filechooser/widget/filechooser.h index 4d303a94c..8a8232946 100644 --- a/tools/designer/examples/filechooser/widget/filechooser.h +++ b/tools/designer/examples/filechooser/widget/filechooser.h @@ -14,7 +14,7 @@ class TQPushButton; class QT_WIDGET_PLUGIN_EXPORT FileChooser : public TQWidget { - Q_OBJECT + TQ_OBJECT Q_ENUMS( Mode ) Q_PROPERTY( Mode mode READ mode WRITE setMode ) diff --git a/tools/designer/examples/opengl/glwidget.h b/tools/designer/examples/opengl/glwidget.h index 6cb998ee7..43d68783b 100644 --- a/tools/designer/examples/opengl/glwidget.h +++ b/tools/designer/examples/opengl/glwidget.h @@ -39,7 +39,7 @@ class GLWidget : public TQGLWidget { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( double xRot READ xRot WRITE setXRot ) Q_PROPERTY( double yRot READ yRot WRITE setYRot ) Q_PROPERTY( double zRot READ zRot WRITE setZRot ) diff --git a/tools/designer/examples/receiver2/receiver.h b/tools/designer/examples/receiver2/receiver.h index aadc6a9e9..773f47ec1 100644 --- a/tools/designer/examples/receiver2/receiver.h +++ b/tools/designer/examples/receiver2/receiver.h @@ -3,7 +3,7 @@ class Receiver : public TQObject { - Q_OBJECT + TQ_OBJECT public: void setParent( TQDialog *parent ); public slots: diff --git a/tools/designer/examples/sizeaware/sizeaware.h b/tools/designer/examples/sizeaware/sizeaware.h index d118ed3f7..8e1adaae1 100644 --- a/tools/designer/examples/sizeaware/sizeaware.h +++ b/tools/designer/examples/sizeaware/sizeaware.h @@ -4,7 +4,7 @@ class SizeAware : public TQDialog { - Q_OBJECT + TQ_OBJECT Q_PROPERTY( TQString company READ company WRITE setCompany ) Q_PROPERTY( TQString settingsFile READ settingsFile WRITE setSettingsFile ) public: diff --git a/tools/designer/examples/vcr/vcr.h b/tools/designer/examples/vcr/vcr.h index daff3d1d0..1c407d172 100644 --- a/tools/designer/examples/vcr/vcr.h +++ b/tools/designer/examples/vcr/vcr.h @@ -4,7 +4,7 @@ class Vcr : public TQWidget { - Q_OBJECT + TQ_OBJECT public: Vcr( TQWidget *parent = 0, const char *name = 0 ); ~Vcr() {} diff --git a/tools/designer/plugins/cppeditor/cppbrowser.h b/tools/designer/plugins/cppeditor/cppbrowser.h index 30d14cdca..c906eafcd 100644 --- a/tools/designer/plugins/cppeditor/cppbrowser.h +++ b/tools/designer/plugins/cppeditor/cppbrowser.h @@ -39,7 +39,7 @@ class CppEditorBrowser : public EditorBrowser { - Q_OBJECT + TQ_OBJECT public: CppEditorBrowser( Editor *e ); diff --git a/tools/designer/plugins/cppeditor/cppcompletion.h b/tools/designer/plugins/cppeditor/cppcompletion.h index 965fc8f38..f6d2134c9 100644 --- a/tools/designer/plugins/cppeditor/cppcompletion.h +++ b/tools/designer/plugins/cppeditor/cppcompletion.h @@ -40,7 +40,7 @@ class CppEditorCompletion : public EditorCompletion { - Q_OBJECT + TQ_OBJECT public: CppEditorCompletion( Editor *e ); diff --git a/tools/designer/plugins/cppeditor/cppeditor.h b/tools/designer/plugins/cppeditor/cppeditor.h index a8704b1b7..6df0d926c 100644 --- a/tools/designer/plugins/cppeditor/cppeditor.h +++ b/tools/designer/plugins/cppeditor/cppeditor.h @@ -44,7 +44,7 @@ class CIndent; class CppEditor : public Editor { - Q_OBJECT + TQ_OBJECT public: CppEditor( const TQString &fn, TQWidget *parent, const char *name, DesignerInterface *i ); diff --git a/tools/designer/plugins/cppeditor/editorinterfaceimpl.h b/tools/designer/plugins/cppeditor/editorinterfaceimpl.h index 238611c99..2a48277b3 100644 --- a/tools/designer/plugins/cppeditor/editorinterfaceimpl.h +++ b/tools/designer/plugins/cppeditor/editorinterfaceimpl.h @@ -45,7 +45,7 @@ struct DesignerInterface; class EditorInterfaceImpl : public TQObject, public EditorInterface { - Q_OBJECT + TQ_OBJECT public: EditorInterfaceImpl(); diff --git a/tools/designer/plugins/wizards/sqlformwizardimpl.h b/tools/designer/plugins/wizards/sqlformwizardimpl.h index be3602d79..1bce4780e 100644 --- a/tools/designer/plugins/wizards/sqlformwizardimpl.h +++ b/tools/designer/plugins/wizards/sqlformwizardimpl.h @@ -41,7 +41,7 @@ class SqlFormWizard : public SqlFormWizardBase { - Q_OBJECT + TQ_OBJECT public: SqlFormWizard( TQUnknownInterface *aIface, TQWidget *w, TQWidget* parent = 0, DesignerFormWindow *fw = 0, diff --git a/tools/designer/tools/conv2ui/main.cpp b/tools/designer/tools/conv2ui/main.cpp index df26872f2..67c584b94 100644 --- a/tools/designer/tools/conv2ui/main.cpp +++ b/tools/designer/tools/conv2ui/main.cpp @@ -149,7 +149,7 @@ void printHelpMessage( TQStringList & formats ) void printVersion() { - printf( "TQt user interface file converter for TQt version %s\n", QT_VERSION_STR ); + printf( "TQt user interface file converter for TQt version %s\n", TQT_VERSION_STR ); } int main( int argc, char ** argv ) diff --git a/tools/designer/uic/embed.cpp b/tools/designer/uic/embed.cpp index aa00988ea..63cbd9bc1 100644 --- a/tools/designer/uic/embed.cpp +++ b/tools/designer/uic/embed.cpp @@ -236,7 +236,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima " if ( TQString::fromUtf8(embed_image_vec[i].name) == name ) {\n" #ifndef QT_NO_IMAGE_COLLECTION_COMPRESSION " TQByteArray baunzip;\n" - " baunzip = qUncompress( embed_image_vec[i].data, \n" + " baunzip = tqUncompress( embed_image_vec[i].data, \n" " embed_image_vec[i].compressed );\n" " TQImage img((uchar*)baunzip.data(),\n" " embed_image_vec[i].width,\n" diff --git a/tools/designer/uic/form.cpp b/tools/designer/uic/form.cpp index e185af6c3..a2768de90 100644 --- a/tools/designer/uic/form.cpp +++ b/tools/designer/uic/form.cpp @@ -64,18 +64,18 @@ static TQByteArray unzipXPM( TQString data, ulong& length ) r += l - 'a' + 10; ba[ i ] = r; } - // qUncompress() expects the first 4 bytes to be the expected length of the + // tqUncompress() expects the first 4 bytes to be the expected length of the // uncompressed data ba[0] = ( length & 0xff000000 ) >> 24; ba[1] = ( length & 0x00ff0000 ) >> 16; ba[2] = ( length & 0x0000ff00 ) >> 8; ba[3] = ( length & 0x000000ff ); - TQByteArray baunzip = qUncompress( ba, baSize ); + TQByteArray baunzip = tqUncompress( ba, baSize ); delete[] ba; return baunzip; } -#if QT_VERSION >= 0x030900 +#if TQT_VERSION >= 0x030900 #error Add this functionality to TQDir (relativePathTo() maybe?) and \ remove it from here and from moc #endif @@ -373,8 +373,8 @@ void Uic::createFormDecl( const TQDomElement &e ) out << exportMacro << " "; out << bareNameOfClass << " : public " << objClass << endl << "{" << endl; - /* qmake ignore Q_OBJECT */ - out << " Q_OBJECT" << endl; + /* qmake ignore TQ_OBJECT */ + out << " TQ_OBJECT" << endl; out << endl; out << "public:" << endl; @@ -583,7 +583,7 @@ void Uic::createFormDecl( const TQDomElement &e ) registerLayouts( e ); out << endl; -#if QT_VERSION >= 0x030900 +#if TQT_VERSION >= 0x030900 #error Make languageChange() a virtual protected non-slot member of TQWidget #endif diff --git a/tools/designer/uic/main.cpp b/tools/designer/uic/main.cpp index 452aad978..dbb3962a4 100644 --- a/tools/designer/uic/main.cpp +++ b/tools/designer/uic/main.cpp @@ -74,7 +74,7 @@ int main( int argc, char * argv[] ) TQApplication app(argc, argv, FALSE); TQString keybase( "/TQt Designer/" + - TQString::number( (QT_VERSION >> 16) & 0xff ) +"." + TQString::number( (QT_VERSION >> 8) & 0xff ) + "/" ); + TQString::number( (TQT_VERSION >> 16) & 0xff ) +"." + TQString::number( (TQT_VERSION >> 8) & 0xff ) + "/" ); TQSettings config; config.insertSearchPath( TQSettings::Windows, "/Trolltech" ); TQStringList pluginPaths = config.readListEntry( keybase + "PluginPaths" ); @@ -169,7 +169,7 @@ int main( int argc, char * argv[] ) } else if ( opt == "version" ) { fprintf( stderr, "User Interface Compiler for TQt version %s\n", - QT_VERSION_STR ); + TQT_VERSION_STR ); return 1; } else if ( opt == "help" ) { break; @@ -298,7 +298,7 @@ int main( int argc, char * argv[] ) TQDomElement e = doc.firstChild().toElement(); if ( e.hasAttribute("version") && e.attribute("version").toDouble() > 3.3 ) { qWarning( TQString("uic: File generated with too recent version of TQt Designer (%s vs. %s)"), - e.attribute("version").latin1(), QT_VERSION_STR ); + e.attribute("version").latin1(), TQT_VERSION_STR ); return 1; } diff --git a/tools/designer/uic/subclassing.cpp b/tools/designer/uic/subclassing.cpp index f89b2ffb4..194bb6154 100644 --- a/tools/designer/uic/subclassing.cpp +++ b/tools/designer/uic/subclassing.cpp @@ -63,8 +63,8 @@ void Uic::createSubDecl( const TQDomElement &e, const TQString& subClass ) out << "class " << subClass << " : public " << nameOfClass << endl; out << "{" << endl; -/* tmake ignore Q_OBJECT */ - out << " Q_OBJECT" << endl; +/* tmake ignore TQ_OBJECT */ + out << " TQ_OBJECT" << endl; out << endl; out << "public:" << endl; diff --git a/tools/designer/uilib/qwidgetfactory.cpp b/tools/designer/uilib/qwidgetfactory.cpp index 269f6c355..cbf49cc47 100644 --- a/tools/designer/uilib/qwidgetfactory.cpp +++ b/tools/designer/uilib/qwidgetfactory.cpp @@ -174,7 +174,7 @@ static TQImage loadImageData( const TQString& format, ulong len, TQByteArray dat if ( format == "XPM.GZ" || format == "XBM.GZ" ) { if ( len < data.size() * 10 ) len = data.size() * 10; - // qUncompress() expects the first 4 bytes to be the expected length of + // tqUncompress() expects the first 4 bytes to be the expected length of // the uncompressed data TQByteArray dataTmp( data.size() + 4 ); memcpy( dataTmp.data()+4, data.data(), data.size() ); @@ -182,7 +182,7 @@ static TQImage loadImageData( const TQString& format, ulong len, TQByteArray dat dataTmp[1] = ( len & 0x00ff0000 ) >> 16; dataTmp[2] = ( len & 0x0000ff00 ) >> 8; dataTmp[3] = ( len & 0x000000ff ); - TQByteArray baunzip = qUncompress( dataTmp ); + TQByteArray baunzip = tqUncompress( dataTmp ); len = baunzip.size(); img.loadFromData( (const uchar*)baunzip.data(), len, format.left(format.find('.')) ); } else { @@ -491,7 +491,7 @@ TQWidget *TQWidgetFactory::createFromUiFile( TQDomDocument doc, TQObject *connec if ( !connections.isNull() ) loadConnections( connections, connector ); - if ( w && name && qstrlen( name ) > 0 ) + if ( w && name && tqstrlen( name ) > 0 ) w->setName( name ); if ( !tabOrder.isNull() ) |