diff options
author | Jon Ander Peñalba <jonan88@gmail.com> | 2010-09-10 10:28:15 +0200 |
---|---|---|
committer | Jon Ander Peñalba <jonan88@gmail.com> | 2010-09-10 10:28:29 +0200 |
commit | 1d341f01de25b734fbc52fd14394b7f4cdcd4214 (patch) | |
tree | 70dc86a783b345c43ed82941d66688454be28f6d /src | |
parent | No need to show the url in the bookmark widget (specially if it's not editable). (diff) | |
download | rekonq-1d341f01de25b734fbc52fd14394b7f4cdcd4214.tar.xz |
BookmarkWidget now inherits from QMenu (much nicer).
Diffstat (limited to 'src')
-rw-r--r-- | src/urlbar/bookmarkwidget.cpp | 3 | ||||
-rw-r--r-- | src/urlbar/bookmarkwidget.h | 4 |
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 |