diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/libgui/project_manager.h | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip |
TQt4 port piklab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/libgui/project_manager.h')
-rw-r--r-- | src/libgui/project_manager.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/libgui/project_manager.h b/src/libgui/project_manager.h index 2939f33..6151713 100644 --- a/src/libgui/project_manager.h +++ b/src/libgui/project_manager.h @@ -24,8 +24,9 @@ namespace ProjectManager class View : public ListView { Q_OBJECT + TQ_OBJECT public: - View(QWidget *parent); + View(TQWidget *tqparent); virtual ~View(); bool editProject(); @@ -43,7 +44,7 @@ public: void removeFile(const PURL::Url &url); void select(const Editor *e); void insertFile(const PURL::Url &url); - bool contains(const PURL::Url &url) const { return findFileItem(url); } + bool tqcontains(const PURL::Url &url) const { return findFileItem(url); } void addExternalFile(const PURL::Url &url, FileOrigin fileOrigin); bool isExternalFile(const PURL::Url &url) const; void removeExternalFiles(); @@ -60,9 +61,9 @@ public slots: private slots: void init(); - void contextMenu(QListViewItem *item, const QPoint &pos, int column); - void clicked(int button, QListViewItem *item, const QPoint &pos, int column); - void renamed(QListViewItem *item, int column, const QString &text); + void contextMenu(TQListViewItem *item, const TQPoint &pos, int column); + void clicked(int button, TQListViewItem *item, const TQPoint &pos, int column); + void renamed(TQListViewItem *item, int column, const TQString &text); void modified(const PURL::Url &url); void filesReordered(); @@ -77,9 +78,9 @@ private: class ProjectData { public: PURL::FileType type; - QMap<PURL::Url, FileOrigin> externals; + TQMap<PURL::Url, FileOrigin> externals; }; - QMap<PURL::Url, ProjectData> _standaloneData; + TQMap<PURL::Url, ProjectData> _standaloneData; ProjectData _projectData; bool _modified; @@ -87,13 +88,13 @@ private: HeaderItem *headerItem(Group group); FileItem *findFileItem(const PURL::Url &url) const; FileItem *findFileItem(PURL::FileType type) const; - QListViewItem *findItem(const QString &name) const; - virtual QDragObject *dragObject(); - virtual bool acceptDrag(QDropEvent* e) const; - virtual QString tooltip(QListViewItem *item, int col) const; + TQListViewItem *findItem(const TQString &name) const; + virtual TQDragObject *dragObject(); + virtual bool acceptDrag(TQDropEvent* e) const; + virtual TQString tooltip(TQListViewItem *item, int col) const; void addExternalFiles(); - void rightClicked(QListViewItem *item, const QPoint &pos); - void leftClicked(QListViewItem *item); + void rightClicked(TQListViewItem *item, const TQPoint &pos); + void leftClicked(TQListViewItem *item); void addFile(const PURL::Url &url, PURL::FileType type, FileOrigin origin); void setProject(Project *project); void initListView(); |