From 4ff8dbf5e9628c4ccc24ab1215ae30d2e68ed83d Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 24 Nov 2006 18:34:52 +0000 Subject: 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 --- src/urlnavigatorbutton.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/urlnavigatorbutton.h') 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); -- cgit v1.3