mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
* Fix ToggleButton some more.
This commit is contained in:
@@ -31,7 +31,7 @@ ToggleButton::ToggleButton( QWidget* parent )
|
|||||||
{
|
{
|
||||||
QFont f( font() );
|
QFont f( font() );
|
||||||
f.setBold( true );
|
f.setBold( true );
|
||||||
f.setPixelSize( 10 );
|
f.setPixelSize( 12 );
|
||||||
|
|
||||||
setFont( f );
|
setFont( f );
|
||||||
setFixedHeight( sizeHint().height() + 8 );
|
setFixedHeight( sizeHint().height() + 8 );
|
||||||
@@ -81,11 +81,7 @@ ToggleButton::paintEvent( QPaintEvent* event )
|
|||||||
|
|
||||||
{
|
{
|
||||||
QRect highlightRect( r );
|
QRect highlightRect( r );
|
||||||
QSize shrink( 2, 4 );
|
highlightRect.adjust( 0, 2, 0, -3 );
|
||||||
QSize hS( highlightRect.size() );
|
|
||||||
hS -= shrink;
|
|
||||||
highlightRect.setSize( hS );
|
|
||||||
highlightRect.translate( 0, 2 );
|
|
||||||
|
|
||||||
if ( isChecked() )
|
if ( isChecked() )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user