From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/kofficeui/KoInsertLink.h | 101 +++++++++++++++++++++++-------------------- 1 file changed, 53 insertions(+), 48 deletions(-) (limited to 'lib/kofficeui/KoInsertLink.h') diff --git a/lib/kofficeui/KoInsertLink.h b/lib/kofficeui/KoInsertLink.h index 79d5eeca..cb10a7f0 100644 --- a/lib/kofficeui/KoInsertLink.h +++ b/lib/kofficeui/KoInsertLink.h @@ -22,27 +22,28 @@ #include #include -class QLineEdit; +class TQLineEdit; class KURLRequester; namespace KOfficePrivate { /** * @internal */ -class internetLinkPage : public QWidget +class internetLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - internetLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); + internetLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); private: - QString createInternetLink(); - QLineEdit* m_linkName, *m_hrefName; + TQString createInternetLink(); + TQLineEdit* m_linkName, *m_hrefName; private slots: - void textChanged ( const QString & ); + void textChanged ( const TQString & ); signals: void textChanged(); }; @@ -50,22 +51,23 @@ signals: /** * @internal */ -class bookmarkLinkPage : public QWidget +class bookmarkLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - bookmarkLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); - void setBookmarkList(const QStringList &bkmlist); + bookmarkLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); + void setBookmarkList(const TQStringList &bkmlist); private: - QString createBookmarkLink(); - QLineEdit* m_linkName; - QComboBox *m_hrefName; + TQString createBookmarkLink(); + TQLineEdit* m_linkName; + TQComboBox *m_hrefName; private slots: - void textChanged ( const QString & ); + void textChanged ( const TQString & ); signals: void textChanged(); }; @@ -73,21 +75,22 @@ signals: /** * @internal */ -class mailLinkPage : public QWidget +class mailLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - mailLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); + mailLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); private slots: - void textChanged ( const QString & ); + void textChanged ( const TQString & ); private: - QString createMailLink(); - QLineEdit* m_linkName, *m_hrefName; + TQString createMailLink(); + TQLineEdit* m_linkName, *m_hrefName; signals: void textChanged(); }; @@ -95,22 +98,23 @@ signals: /** * @internal */ -class fileLinkPage : public QWidget +class fileLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - fileLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); + fileLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); private slots: - void textChanged ( const QString & ); - void slotSelectRecentFile( const QString & ); + void textChanged ( const TQString & ); + void slotSelectRecentFile( const TQString & ); private: - QString createFileLink(); - QLineEdit* m_linkName; + TQString createFileLink(); + TQLineEdit* m_linkName; KURLRequester* m_hrefName; signals: void textChanged(); @@ -123,26 +127,27 @@ signals: class KOFFICEUI_EXPORT KoInsertLinkDia : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - KoInsertLinkDia( QWidget *parent, const char *name = 0,bool displayBookmarkLink=true ); - static bool createLinkDia(QString & linkName, QString & hrefName, const QStringList& bkmlist, bool displayBookmarkLink = true, - QWidget* parent = 0, const char* name = 0); + KoInsertLinkDia( TQWidget *tqparent, const char *name = 0,bool displayBookmarkLink=true ); + static bool createLinkDia(TQString & linkName, TQString & hrefName, const TQStringList& bkmlist, bool displayBookmarkLink = true, + TQWidget* tqparent = 0, const char* name = 0); //internal - QString linkName() const; - QString hrefName() const; - void setHrefLinkName(const QString &_href, const QString &_link, const QStringList & bkmlist); + TQString linkName() const; + TQString hrefName() const; + void setHrefLinkName(const TQString &_href, const TQString &_link, const TQStringList & bkmlist); protected slots: virtual void slotOk(); void slotTextChanged ( ); - void tabChanged(QWidget *); + void tabChanged(TQWidget *); private: KOfficePrivate::fileLinkPage *fileLink; KOfficePrivate::mailLinkPage *mailLink; KOfficePrivate::internetLinkPage *internetLink; KOfficePrivate::bookmarkLinkPage *bookmarkLink; - QString currentText; + TQString currentText; }; #endif -- cgit v1.2.1