diff options
Diffstat (limited to 'kexi/plugins/forms/kexiformmanager.h')
-rw-r--r-- | kexi/plugins/forms/kexiformmanager.h | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/kexi/plugins/forms/kexiformmanager.h b/kexi/plugins/forms/kexiformmanager.h index 1cc5f0c6..d25cf78e 100644 --- a/kexi/plugins/forms/kexiformmanager.h +++ b/kexi/plugins/forms/kexiformmanager.h @@ -31,9 +31,10 @@ class KexiFormView; class KEXIFORMUTILS_EXPORT KexiFormManager : public KFormDesigner::FormManager { Q_OBJECT + TQ_OBJECT public: - KexiFormManager(KexiPart::Part *parent, const char* name = 0); + KexiFormManager(KexiPart::Part *tqparent, const char* name = 0); virtual ~KexiFormManager(); virtual KAction* action( const char* name ); @@ -41,7 +42,7 @@ class KEXIFORMUTILS_EXPORT KexiFormManager : public KFormDesigner::FormManager public slots: //! Receives signal from KexiDataSourcePage about changed form's data source - void setFormDataSource(const QCString& mime, const QCString& name); + void setFormDataSource(const TQCString& mime, const TQCString& name); /*! Receives signal from KexiDataSourcePage about changed widget's data source. This is because we couldn't pass objects like KexiDB::QueryColumnInfo. @@ -49,34 +50,34 @@ class KEXIFORMUTILS_EXPORT KexiFormManager : public KFormDesigner::FormManager Also sets following things in KexiDBAutoField: - caption related to the data source - data type related to the data source */ - void setDataSourceFieldOrExpression(const QString& string, const QString& caption, + void setDataSourceFieldOrExpression(const TQString& string, const TQString& caption, KexiDB::Field::Type type); /*! Receives signal from KexiDataSourcePage and inserts autofields onto the current form. */ - void insertAutoFields(const QString& sourceMimeType, const QString& sourceName, - const QStringList& fields); + void insertAutoFields(const TQString& sourceMimeType, const TQString& sourceName, + const TQStringList& fields); protected slots: void slotHistoryCommandExecuted(); protected: - inline QString translateName( const char* name ) const; + inline TQString translateName( const char* name ) const; private: //! Helper: return active form's view widget or 0 if there's no active form having such widget KexiFormView* activeFormViewWidget() const; -// virtual bool loadFormFromDomInternal(Form *form, QWidget *container, QDomDocument &inBuf); -// virtual bool saveFormToStringInternal(Form *form, QString &dest, int indent = 0); +// virtual bool loadFormFromDomInternal(Form *form, TQWidget *container, TQDomDocument &inBuf); +// virtual bool saveFormToStringInternal(Form *form, TQString &dest, int indent = 0); KexiPart::Part* m_part; }; -QString KexiFormManager::translateName( const char* name ) const +TQString KexiFormManager::translateName( const char* name ) const { - QString n( name ); + TQString n( name ); //translate to our name space: - if (n.startsWith("align_") || n.startsWith("adjust_") || n.startsWith("layout_") + if (n.startsWith("align_") || n.startsWith("adjust_") || n.startsWith("tqlayout_") || n=="format_raise" || n=="format_raise" || n=="taborder" | n=="break_layout") { n.prepend("formpart_"); |