add size policy for icon button
This commit is contained in:
parent
0a89ee5d0a
commit
f1882265dd
|
@ -11,6 +11,10 @@ IconButton::IconButton(const QIcon &icon, QWidget *parent)
|
||||||
_overlay(new RippleOverlay(parent))
|
_overlay(new RippleOverlay(parent))
|
||||||
{
|
{
|
||||||
setIcon(icon);
|
setIcon(icon);
|
||||||
|
|
||||||
|
QSizePolicy policy;
|
||||||
|
policy.setWidthForHeight(true);
|
||||||
|
setSizePolicy(policy);
|
||||||
}
|
}
|
||||||
|
|
||||||
IconButton::~IconButton()
|
IconButton::~IconButton()
|
||||||
|
|
Loading…
Reference in New Issue