Skip to content
Snippets Groups Projects
Commit 4dcd4e57 authored by Eike Ziller's avatar Eike Ziller
Browse files

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: default avatarLeandro Melo <leandro.melo@nokia.com>
parent a1cf3a26
No related branches found
No related tags found
No related merge requests found
......@@ -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"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment