diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/kofficecore/KoOpenPane.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
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
Diffstat (limited to 'lib/kofficecore/KoOpenPane.h')
-rw-r--r-- | lib/kofficecore/KoOpenPane.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/lib/kofficecore/KoOpenPane.h b/lib/kofficecore/KoOpenPane.h index 20bd425d..818c6e81 100644 --- a/lib/kofficecore/KoOpenPane.h +++ b/lib/kofficecore/KoOpenPane.h @@ -26,7 +26,7 @@ class KConfig; class KoTemplateGroup; class KoOpenPanePrivate; class KInstance; -class QPixmap; +class TQPixmap; class KListViewItem; class KoTemplatesPane; class KoDetailsPaneBase; @@ -34,19 +34,20 @@ class KoDetailsPaneBase; class KoOpenPane : public KoOpenPaneBase { Q_OBJECT + TQ_OBJECT public: /** * Constructor - * @param parent the parent widget + * @param tqparent the tqparent widget * @param instance the KInstance to be used for KConfig data * @param templateType the template-type (group) that should be selected on creation. */ - KoOpenPane(QWidget *parent, KInstance* instance, const QString& templateType = QString::null); + KoOpenPane(TQWidget *tqparent, KInstance* instance, const TQString& templateType = TQString()); virtual ~KoOpenPane(); - QListViewItem* addPane(const QString& title, const QString& icon, QWidget* widget, int sortWeight); - QListViewItem* addPane(const QString& title, const QPixmap& icon, QWidget* widget, int sortWeight); + TQListViewItem* addPane(const TQString& title, const TQString& icon, TQWidget* widget, int sortWeight); + TQListViewItem* addPane(const TQString& title, const TQPixmap& icon, TQWidget* widget, int sortWeight); /** * If the application has a way to create a document not based on a template, but on user @@ -54,26 +55,26 @@ class KoOpenPane : public KoOpenPaneBase * @see KoDocument::createCustomDocumentWidget() * @param widget the widget. */ - void setCustomDocumentWidget(QWidget *widget); + void setCustomDocumentWidget(TQWidget *widget); protected slots: void showOpenFileDialog(); - void selectionChanged(QListViewItem* item); - void itemClicked(QListViewItem* item); + void selectionChanged(TQListViewItem* item); + void itemClicked(TQListViewItem* item); /// Saves the splitter sizes for KoDetailsPaneBase based panes - void saveSplitterSizes(KoDetailsPaneBase* sender, const QValueList<int>& sizes); + void saveSplitterSizes(KoDetailsPaneBase* sender, const TQValueList<int>& sizes); signals: - void openExistingFile(const QString&); - void openTemplate(const QString&); + void openExistingFile(const TQString&); + void openTemplate(const TQString&); /// Emitted when the always use template has changed - void alwaysUseChanged(KoTemplatesPane* sender, const QString& alwaysUse); + void alwaysUseChanged(KoTemplatesPane* sender, const TQString& alwaysUse); /// Emitted when one of the detail panes have changed it's splitter - void splitterResized(KoDetailsPaneBase* sender, const QValueList<int>& sizes); + void splitterResized(KoDetailsPaneBase* sender, const TQValueList<int>& sizes); protected: void initRecentDocs(); @@ -81,7 +82,7 @@ class KoOpenPane : public KoOpenPaneBase * Populate the list with all templates the user can choose. * @param templateType the template-type (group) that should be selected on creation. */ - void initTemplates(const QString& templateType); + void initTemplates(const TQString& templateType); private: KoOpenPanePrivate* d; |