Skip to content
Snippets Groups Projects
Commit 33703a46 authored by Kai Koehne's avatar Kai Koehne
Browse files

Utils::DetailsButton: Don't make button vertically expanding

Change default vertical size policy of the DetailsButton from
Expanding to Preferred: This way it won't be 'greedy' and enlarge
just because there is space left.
parent c7652667
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ void FadingPanel::fadeTo(float value) ...@@ -74,7 +74,7 @@ void FadingPanel::fadeTo(float value)
DetailsButton::DetailsButton(QWidget *parent) : QAbstractButton(parent), m_fader(0) DetailsButton::DetailsButton(QWidget *parent) : QAbstractButton(parent), m_fader(0)
{ {
setCheckable(true); setCheckable(true);
setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
setText(tr("Details")); setText(tr("Details"));
} }
......
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