Commit 22d0f70c authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: telexFrame: enforce non zero widget pixmap size

guess for #11146
parent bbacf6f9
...@@ -619,7 +619,8 @@ QFrame *AbstractController::telexFrame() ...@@ -619,7 +619,8 @@ QFrame *AbstractController::telexFrame()
/* Contextual & Index Buttons */ /* Contextual & Index Buttons */
QSignalMapper *contextButtonMapper = new QSignalMapper( this ); QSignalMapper *contextButtonMapper = new QSignalMapper( this );
QToolButton *contextButton = NULL; QToolButton *contextButton = NULL;
QPixmap iconPixmap( telexOn->minimumHeight(), telexOn->minimumHeight() ); int i_iconminsize = __MAX( 16, telexOn->minimumHeight() );
QPixmap iconPixmap( i_iconminsize, i_iconminsize );
iconPixmap.fill( Qt::transparent ); iconPixmap.fill( Qt::transparent );
QPainter iconPixmapPainter( &iconPixmap ); QPainter iconPixmapPainter( &iconPixmap );
QRadialGradient iconPixmapPainterGradient( iconPixmap.rect().center(), QRadialGradient iconPixmapPainterGradient( iconPixmap.rect().center(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment