diff options
| author | Peter Penz <[email protected]> | 2007-03-06 05:33:38 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-03-06 05:33:38 +0000 |
| commit | ad01ddac1a104b8f372a98db84f123fbba65e2da (patch) | |
| tree | ee41967d81b50e8c95394429fae2c8475b74a550 | |
| parent | a5ad4ac7e0a71e3e4f33ae31c9f36b616f3d767d (diff) | |
use QToolButton instead of QPushButton (patch submitted by Dominik Haumann)
svn path=/trunk/KDE/kdebase/apps/; revision=639795
| -rw-r--r-- | src/urlnavigator.cpp | 6 | ||||
| -rw-r--r-- | src/urlnavigator.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/urlnavigator.cpp b/src/urlnavigator.cpp index e273e76cb..52e229922 100644 --- a/src/urlnavigator.cpp +++ b/src/urlnavigator.cpp @@ -43,7 +43,7 @@ #include <QLabel> #include <QLineEdit> #include <QMouseEvent> -#include <QPushButton> +#include <QToolButton> UrlNavigator::HistoryElem::HistoryElem() : m_url(), @@ -88,9 +88,9 @@ UrlNavigator::UrlNavigator(const KUrl& url, // intialize toggle button which switches between the breadcrumb view // and the traditional view - m_toggleButton = new QPushButton(); + m_toggleButton = new QToolButton(); m_toggleButton->setCheckable(true); - m_toggleButton->setFlat(true); + m_toggleButton->setAutoRaise(true); m_toggleButton->setIcon(KIcon("locationbar_erase")); // TODO: is just a placeholder icon m_toggleButton->setFocusPolicy(Qt::NoFocus); m_toggleButton->setMinimumHeight(minimumHeight()); diff --git a/src/urlnavigator.h b/src/urlnavigator.h index e3e22632c..01be439f7 100644 --- a/src/urlnavigator.h +++ b/src/urlnavigator.h @@ -30,7 +30,7 @@ class QHBoxLayout; class QLabel; class QLineEdit; class QMouseEvent; -class QPushButton; +class QToolButton; class KUrl; class KFileItem; @@ -305,7 +305,7 @@ private: QHBoxLayout* m_layout; QLinkedList<HistoryElem> m_history; - QPushButton* m_toggleButton; + QToolButton* m_toggleButton; BookmarkSelector* m_bookmarkSelector; KUrlComboBox* m_pathBox; ProtocolCombo* m_protocols; |
