diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-04-27 00:40:29 +0000 |
commit | 7a741e43ff09e70396a918956219b8316c48e522 (patch) | |
tree | 3d0f60eccd59786cea7236db2d5c4c1f25874515 /src/bookmarkssidebarpage.h | |
parent | a48487ef0c329434b58b6f920111bb0999f1109e (diff) | |
download | dolphin-7a741e43ff09e70396a918956219b8316c48e522.tar.gz dolphin-7a741e43ff09e70396a918956219b8316c48e522.zip |
TQt4 port Dolphin
This enables compilation under Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/dolphin@1229359 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/bookmarkssidebarpage.h')
-rw-r--r-- | src/bookmarkssidebarpage.h | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/src/bookmarkssidebarpage.h b/src/bookmarkssidebarpage.h index 7941fd6..20ef4c9 100644 --- a/src/bookmarkssidebarpage.h +++ b/src/bookmarkssidebarpage.h @@ -20,7 +20,7 @@ #define _BOOKMARKSSIDEBARPAGE_H_ #include <sidebarpage.h> -#include <qlistbox.h> +#include <tqlistbox.h> #include <kurl.h> #include <kbookmark.h> #include <kiconloader.h> @@ -38,9 +38,10 @@ class BookmarksListBox; class BookmarksSidebarPage : public SidebarPage { Q_OBJECT + TQ_OBJECT public: - BookmarksSidebarPage(QWidget* parent); + BookmarksSidebarPage(TQWidget* tqparent); virtual ~BookmarksSidebarPage(); protected: @@ -55,10 +56,10 @@ private slots: * Checks whether the left mouse button has been clicked above a bookmark. * If this is the case, the URL for the currently active view is adjusted. */ - void slotMouseButtonClicked(int button, QListBoxItem* item); + void slotMouseButtonClicked(int button, TQListBoxItem* item); - /** @see QListBox::slotContextMenuRequested */ - void slotContextMenuRequested(QListBoxItem* item, const QPoint& pos); + /** @see TQListBox::slotContextMenuRequested */ + void slotContextMenuRequested(TQListBoxItem* item, const TQPoint& pos); /** * Is invoked whenever the URL of the active view has been changed. Adjusts @@ -70,8 +71,8 @@ private: /** * Updates the selection dependent from the given URL \a url. The * URL must not match exactly to one of the available bookmarks: - * The bookmark which is equal to the URL or at least is a parent URL - * is selected. If there are more than one possible parent URL candidates, + * The bookmark which is equal to the URL or at least is a tqparent URL + * is selected. If there are more than one possible tqparent URL candidates, * the bookmark which covers the bigger range of the URL is selected. */ void adjustSelection(const KURL& url); @@ -88,30 +89,31 @@ private: /** * @brief Listbox which contains a list of bookmarks. * - * Only QListBox::paintEvent() has been overwritten to prevent + * Only TQListBox::paintEvent() has been overwritten to prevent * that a (not wanted) frameborder is drawn. */ -class BookmarksListBox : public QListBox +class BookmarksListBox : public TQListBox { Q_OBJECT + TQ_OBJECT public: - BookmarksListBox(QWidget* parent); + BookmarksListBox(TQWidget* tqparent); virtual ~BookmarksListBox(); protected: //drag - void contentsMousePressEvent(QMouseEvent *event); - void contentsMouseMoveEvent(QMouseEvent *event); + void contentsMousePressEvent(TQMouseEvent *event); + void contentsMouseMoveEvent(TQMouseEvent *event); //drop - void dragEnterEvent( QDragEnterEvent *evt ); - void dropEvent( QDropEvent *evt ); -// void mousePressEvent( QMouseEvent *evt ); -// void mouseMoveEvent( QMouseEvent * ); - /** @see QWidget::paintEvent() */ - virtual void paintEvent(QPaintEvent* event); + void dragEnterEvent( TQDragEnterEvent *evt ); + void dropEvent( TQDropEvent *evt ); +// void mousePressEvent( TQMouseEvent *evt ); +// void mouseMoveEvent( TQMouseEvent * ); + /** @see TQWidget::paintEvent() */ + virtual void paintEvent(TQPaintEvent* event); private: - QPoint dragPos; + TQPoint dragPos; void startDrag(); }; @@ -119,15 +121,15 @@ private: /** * @brief Item which can be added to a BookmarksListBox. * - * Only QListBoxPixmap::height() has been overwritten to get + * Only TQListBoxPixmap::height() has been overwritten to get * a spacing between the items. */ -class BookmarkItem : public QListBoxPixmap +class BookmarkItem : public TQListBoxPixmap { public: - BookmarkItem(const QPixmap& pixmap, const QString& text, const KURL& url); + BookmarkItem(const TQPixmap& pixmap, const TQString& text, const KURL& url); virtual ~BookmarkItem(); - virtual int height(const QListBox* listBox) const; + virtual int height(const TQListBox* listBox) const; const KURL& url() const; static BookmarkItem* fromKbookmark(const KBookmark& bookmark, const KIconLoader& iconLoader); |