From 40a13302af46792cb139d59d7f66e12b46644392 Mon Sep 17 00:00:00 2001 From: matgic78 Date: Sun, 31 Jan 2010 11:28:31 +0100 Subject: Last bugs : layout fixes and empty urlbar when going back to homepage --- src/rekonqpage/previewselectorbar.cpp | 4 +++- src/urlbar/urlbar.cpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rekonqpage/previewselectorbar.cpp b/src/rekonqpage/previewselectorbar.cpp index 00950526..e7800f09 100644 --- a/src/rekonqpage/previewselectorbar.cpp +++ b/src/rekonqpage/previewselectorbar.cpp @@ -59,15 +59,17 @@ void PreviewSelectorBar::setup() connect(closeButton, SIGNAL(clicked(bool)), SLOT(hide())); m_button = new QPushButton(KIcon("insert-image"), i18n("Set to this page"), this); + m_button->setMaximumWidth(250); connect(m_button, SIGNAL(clicked(bool)), SLOT(clicked())); // layout QHBoxLayout *layout = new QHBoxLayout(this); layout->addWidget(closeButton); - layout->addStretch(); layout->addWidget(m_label); layout->addWidget(m_button); + layout->setContentsMargins(2, 0, 2, 0); + setLayout(layout); } diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index adeba6ae..4d9765a2 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -148,7 +148,6 @@ void UrlBar::setUrl(const QUrl& url) m_currentUrl = KUrl(url); updateUrl(); } - } -- cgit v1.2.1