From f32bab77331bea6c75f4674119a6d74cb99ee4da Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 16 Sep 2011 11:18:14 +0200 Subject: [PATCH] * Fix ToggleButton some more. --- src/libtomahawk/widgets/ToggleButton.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/libtomahawk/widgets/ToggleButton.cpp b/src/libtomahawk/widgets/ToggleButton.cpp index 30a4cc00f..401a34a19 100644 --- a/src/libtomahawk/widgets/ToggleButton.cpp +++ b/src/libtomahawk/widgets/ToggleButton.cpp @@ -31,7 +31,7 @@ ToggleButton::ToggleButton( QWidget* parent ) { QFont f( font() ); f.setBold( true ); - f.setPixelSize( 10 ); + f.setPixelSize( 12 ); setFont( f ); setFixedHeight( sizeHint().height() + 8 ); @@ -81,11 +81,7 @@ ToggleButton::paintEvent( QPaintEvent* event ) { QRect highlightRect( r ); - QSize shrink( 2, 4 ); - QSize hS( highlightRect.size() ); - hS -= shrink; - highlightRect.setSize( hS ); - highlightRect.translate( 0, 2 ); + highlightRect.adjust( 0, 2, 0, -3 ); if ( isChecked() ) {