summaryrefslogtreecommitdiff
path: root/src/urlbar/favoritewidget.cpp
diff options
context:
space:
mode:
authorJohannes Tröscher <fritz_van_tom@hotmail.com>2011-09-09 21:22:51 +0200
committerJohannes Tröscher <fritz_van_tom@hotmail.com>2011-09-09 21:22:51 +0200
commit61419a97cd3677dcf16cc18063bfbcab6c6c0b06 (patch)
tree0655394ca7242e0d244feb8974701757fc5c42e2 /src/urlbar/favoritewidget.cpp
parentfix alignment of title in bookmarkWidget (diff)
downloadrekonq-61419a97cd3677dcf16cc18063bfbcab6c6c0b06.tar.xz
fix layout of favouriteWidget
REVIEWED-BY: trustMe
Diffstat (limited to 'src/urlbar/favoritewidget.cpp')
-rw-r--r--src/urlbar/favoritewidget.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/urlbar/favoritewidget.cpp b/src/urlbar/favoritewidget.cpp
index da97ef65..c3370db9 100644
--- a/src/urlbar/favoritewidget.cpp
+++ b/src/urlbar/favoritewidget.cpp
@@ -55,21 +55,17 @@ FavoriteWidget::FavoriteWidget(WebTab *tab, QWidget *parent)
setAttribute(Qt::WA_DeleteOnClose);
setFixedWidth(350);
- QVBoxLayout *layout = new QVBoxLayout(this);
-
- // Title
- QLabel *favoriteInfo = new QLabel(this);
- favoriteInfo->setText(i18n("<h4>Remove this favorite?</h4>"));
- layout->addWidget(favoriteInfo, 0, Qt::AlignCenter);
-
- QHBoxLayout *hLay = new QHBoxLayout(this);
+ QFormLayout *layout = new QFormLayout(this);
+ QVBoxLayout *vLay = new QVBoxLayout(this);
// Favorite icon
QLabel *bookmarkIcon = new QLabel(this);
bookmarkIcon->setPixmap(KIcon("emblem-favorite").pixmap(32, 32));
- hLay->addWidget(bookmarkIcon);
- QVBoxLayout *vLay = new QVBoxLayout(this);
+ // Title
+ QLabel *favoriteInfo = new QLabel(this);
+ favoriteInfo->setText(i18n("<h4>Remove this favorite?</h4>"));
+ vLay->addWidget(favoriteInfo);
// Favorite name
QLabel *nameLabel = new QLabel(this);
@@ -81,8 +77,7 @@ FavoriteWidget::FavoriteWidget(WebTab *tab, QWidget *parent)
urlLabel->setText(i18n("URL: %1", m_tab->url().url()));
vLay->addWidget(urlLabel);
- hLay->addLayout(vLay);
- layout->addLayout(hLay);
+ layout->addRow(bookmarkIcon, vLay);
// Ok & Cancel buttons
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this);