┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/urlnavigatorbutton.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2006-11-24 18:34:52 +0000
committerPeter Penz <[email protected]>2006-11-24 18:34:52 +0000
commit4ff8dbf5e9628c4ccc24ab1215ae30d2e68ed83d (patch)
tree841425ce2bee05341d7d6381e54fb40b463dd96d /src/urlnavigatorbutton.h
parent47fa21aff1e1b1226767c956953bc0517d52d42e (diff)
Get rid of using deprecated Q3Button::drawButton() interface. Now the URL navigator looks nearly as nice as within the Qt3version again :-)
svn path=/trunk/playground/utils/dolphin/; revision=607457
Diffstat (limited to 'src/urlnavigatorbutton.h')
-rw-r--r--src/urlnavigatorbutton.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/urlnavigatorbutton.h b/src/urlnavigatorbutton.h
index 44671fe2d..5ce54b31d 100644
--- a/src/urlnavigatorbutton.h
+++ b/src/urlnavigatorbutton.h
@@ -41,11 +41,11 @@ namespace KIO
}
/**
- * @brief Button of the Url navigator which contains one part of an Url.
+ * @brief Button of the URL navigator which contains one part of an URL.
*
- * It is possible to drop a various number of items to an Url button. In this case
+ * It is possible to drop a various number of items to an UrlNavigatorButton. In this case
* a context menu is opened where the user must select whether he wants
- * to copy, move or link the dropped items to the Url part indicated by
+ * to copy, move or link the dropped items to the URL part indicated by
* the button.
*/
class UrlNavigatorButton : public UrlButton
@@ -56,10 +56,13 @@ public:
UrlNavigatorButton(int index, UrlNavigator* parent = 0);
virtual ~UrlNavigatorButton();
void setIndex(int index);
- int index() const;
+ int index() const { return m_index; }
+
+ /** @see QWidget::sizeHint() */
+ virtual QSize sizeHint() const;
protected:
- virtual void drawButton(QPainter* painter);
+ virtual void paintEvent(QPaintEvent* event);
virtual void enterEvent(QEvent* event);
virtual void leaveEvent(QEvent* event);
virtual void dropEvent(QDropEvent* event);