summaryrefslogtreecommitdiff
path: root/src/urlbar/bookmarkwidget.cpp
diff options
context:
space:
mode:
authorJon Ander Peñalba <jonan88@gmail.com>2010-09-10 11:50:38 +0200
committerJon Ander Peñalba <jonan88@gmail.com>2010-09-10 11:50:38 +0200
commitf24af9b9aea23cac811e11014b38e435b7c1a818 (patch)
tree65385eee0ca3a8b0c0374a4419e7e09250af1989 /src/urlbar/bookmarkwidget.cpp
parentBookmarkWidget now inherits from QMenu (much nicer). (diff)
downloadrekonq-f24af9b9aea23cac811e11014b38e435b7c1a818.tar.xz
The RSS widget and the bookmark widget are now more consistent (they have the same look and behavior)
Diffstat (limited to 'src/urlbar/bookmarkwidget.cpp')
-rw-r--r--src/urlbar/bookmarkwidget.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/urlbar/bookmarkwidget.cpp b/src/urlbar/bookmarkwidget.cpp
index ca04cd4f..59df85a1 100644
--- a/src/urlbar/bookmarkwidget.cpp
+++ b/src/urlbar/bookmarkwidget.cpp
@@ -64,10 +64,7 @@ BookmarkWidget::BookmarkWidget(const KBookmark &bookmark, QWidget *parent)
// Title
QVBoxLayout *vLayout = new QVBoxLayout(this);
QLabel *bookmarkInfo = new QLabel(this);
- bookmarkInfo->setText(i18n("Edit this Bookmark"));
- QFont font;
- font.setPointSize(font.pointSize() + 2);
- bookmarkInfo->setFont(font);
+ bookmarkInfo->setText(i18n("<h4>Edit this Bookmark</h4>"));
bookmarkInfo->setAlignment(Qt::AlignCenter);
vLayout->addWidget(bookmarkInfo);
@@ -113,7 +110,9 @@ BookmarkWidget::~BookmarkWidget()
void BookmarkWidget::showAt(const QPoint &pos)
{
- QPoint p(pos.x()-350, pos.y()+12);
+ adjustSize();
+
+ QPoint p(pos.x()-width(), pos.y()+10);
move(p);
show();
}
@@ -126,12 +125,6 @@ void BookmarkWidget::accept()
m_bookmark->setFullText(m_name->text());
Application::bookmarkProvider()->bookmarkManager()->emitChanged();
}
- reject();
-}
-
-
-void BookmarkWidget::reject()
-{
close();
}
@@ -139,5 +132,5 @@ void BookmarkWidget::reject()
void BookmarkWidget::removeBookmark()
{
Application::bookmarkProvider()->bookmarkOwner()->deleteBookmark(*m_bookmark);
- reject();
+ close();
}