From d0dd2ac93bb003ccdc7f8ffa4264c27d9845e157 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Thu, 22 Feb 2024 09:37:17 +0100 Subject: [PATCH] the emphasis might also have an impact on the sizeHints --- src/controls/QskPushButton.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controls/QskPushButton.cpp b/src/controls/QskPushButton.cpp index c74c2714..3825458d 100644 --- a/src/controls/QskPushButton.cpp +++ b/src/controls/QskPushButton.cpp @@ -87,7 +87,10 @@ void QskPushButton::setEmphasis( Emphasis emphasis ) if ( emphasis != m_data->emphasis ) { m_data->emphasis = emphasis; + + resetImplicitSize(); update(); + Q_EMIT emphasisChanged( emphasis ); } }