diff options
author | Johannes Tröscher <fritz_van_tom@hotmail.com> | 2011-09-09 21:22:51 +0200 |
---|---|---|
committer | Johannes Tröscher <fritz_van_tom@hotmail.com> | 2011-09-09 21:22:51 +0200 |
commit | 61419a97cd3677dcf16cc18063bfbcab6c6c0b06 (patch) | |
tree | 0655394ca7242e0d244feb8974701757fc5c42e2 /src/urlbar/favoritewidget.cpp | |
parent | fix alignment of title in bookmarkWidget (diff) | |
download | rekonq-61419a97cd3677dcf16cc18063bfbcab6c6c0b06.tar.xz |
fix layout of favouriteWidget
REVIEWED-BY: trustMe
Diffstat (limited to 'src/urlbar/favoritewidget.cpp')
-rw-r--r-- | src/urlbar/favoritewidget.cpp | 19 |
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); |