summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-09-10 10:28:15 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-09-10 10:28:29 +0200
commit1d341f01de25b734fbc52fd14394b7f4cdcd4214 (patch)
tree70dc86a783b345c43ed82941d66688454be28f6d /src/urlbar
parentNo need to show the url in the bookmark widget (specially if it's not editable). (diff)
downloadrekonq-1d341f01de25b734fbc52fd14394b7f4cdcd4214.tar.xz
BookmarkWidget now inherits from QMenu (much nicer).
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/bookmarkwidget.cpp3
-rw-r--r--src/urlbar/bookmarkwidget.h4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/urlbar/bookmarkwidget.cpp b/src/urlbar/bookmarkwidget.cpp
index 6b507490..ca04cd4f 100644
--- a/src/urlbar/bookmarkwidget.cpp
+++ b/src/urlbar/bookmarkwidget.cpp
@@ -46,12 +46,11 @@
BookmarkWidget::BookmarkWidget(const KBookmark &bookmark, QWidget *parent)
- : QFrame(parent, Qt::Popup)
+ : QMenu(parent)
, m_bookmark(new KBookmark(bookmark))
{
setAttribute(Qt::WA_DeleteOnClose);
setFixedWidth(350);
- setFrameStyle(QFrame::Panel);
QFormLayout *layout = new QFormLayout(this);
diff --git a/src/urlbar/bookmarkwidget.h b/src/urlbar/bookmarkwidget.h
index b95e55db..e97c1859 100644
--- a/src/urlbar/bookmarkwidget.h
+++ b/src/urlbar/bookmarkwidget.h
@@ -31,14 +31,14 @@
#include "rekonq_defines.h"
// Qt Includes
-#include <QtGui/QFrame>
+#include <QtGui/QMenu>
// Forward Declarations
class KBookmark;
class KLineEdit;
-class BookmarkWidget : public QFrame
+class BookmarkWidget : public QMenu
{
Q_OBJECT