Commit 00ee682e authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: telexFrame: change buttons gradient

And then make them smaller as it is not really nice.
QRadialGradient currently crashes on WIN32/SSE2.

refs #11146, See QTBUG-38139
parent 05ff7154
......@@ -623,15 +623,14 @@ QFrame *AbstractController::telexFrame()
QPixmap iconPixmap( i_iconminsize, i_iconminsize );
iconPixmap.fill( Qt::transparent );
QPainter iconPixmapPainter( &iconPixmap );
QRadialGradient iconPixmapPainterGradient( iconPixmap.rect().center(),
iconPixmap.rect().width() / 2,
iconPixmap.rect().center() / 2 );
QLinearGradient iconPixmapPainterGradient( iconPixmap.rect().center() / 2,
iconPixmap.rect().center() );
#define CREATE_CONTEXT_BUTTON(color, key) \
iconPixmapPainterGradient.setColorAt( 0, QColor( color ).lighter(150) );\
iconPixmapPainterGradient.setColorAt( 1.0, QColor( color ) );\
iconPixmapPainter.setBrush( iconPixmapPainterGradient );\
iconPixmapPainter.drawEllipse( iconPixmap.rect().adjusted( 0, 0, -1, -1 ) );\
iconPixmapPainter.drawEllipse( iconPixmap.rect().adjusted( 4, 4, -5, -5 ) );\
contextButton = new QToolButton();\
setupButton( contextButton );\
contextButton->setIcon( iconPixmap );\
......
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