summaryrefslogtreecommitdiffstats
path: root/src/bookmarkssidebarpage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarkssidebarpage.h')
-rw-r--r--src/bookmarkssidebarpage.h48
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);