summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2011-11-02 12:48:33 +0100
committerEike Ziller <eike.ziller@nokia.com>2011-11-03 08:05:40 +0100
commit4dcd4e579699b15e99e0aa01ca19867b324a4bd0 (patch)
tree989c30dce335205bbe72f38f2b83f9f231550e4d
parenta1cf3a264d1ac599c157ca34485674a3dd89fa3b (diff)
downloadqt-creator-4dcd4e579699b15e99e0aa01ca19867b324a4bd0.tar.gz
Avoid huge minimum size of search result panel.
The minimum size was to fully fit in the search term label, which could get very long in case of long namespace + method names (or just long text search terms). Also guarantee usability of the replace line edit. Change-Id: I8664e20739ceb06251ffedf426cccdc4bacacedc Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
-rw-r--r--src/plugins/find/searchresultwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/find/searchresultwidget.cpp b/src/plugins/find/searchresultwidget.cpp
index 13d9d59282..dd211941d3 100644
--- a/src/plugins/find/searchresultwidget.cpp
+++ b/src/plugins/find/searchresultwidget.cpp
@@ -244,6 +244,8 @@ SearchResultWidget::SearchResultWidget(QWidget *parent) :
QHBoxLayout *descriptionLayout = new QHBoxLayout(m_descriptionContainer);
m_descriptionContainer->setLayout(descriptionLayout);
descriptionLayout->setMargin(0);
+ m_descriptionContainer->setMinimumWidth(200);
+ m_descriptionContainer->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
m_label = new QLabel(m_descriptionContainer);
m_label->setVisible(false);
m_searchTerm = new QLabel(m_descriptionContainer);
@@ -257,6 +259,7 @@ SearchResultWidget::SearchResultWidget(QWidget *parent) :
m_replaceLabel = new QLabel(tr("Replace with:"), topWidget);
m_replaceTextEdit = new WideEnoughLineEdit(topWidget);
+ m_replaceTextEdit->setMinimumWidth(120);
m_replaceButton = new QToolButton(topWidget);
m_replaceButton->setToolTip(tr("Replace all occurrences"));
m_replaceButton->setText(tr("Replace"));