From 48b8f931db00a7fdb7b4ec5cc8abc42e3c88fa65 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 11 Jul 2008 22:41:54 +0000 Subject: [PATCH] better position for text-drawing git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1301 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/gui/widgets/combobox.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/widgets/combobox.cpp b/src/gui/widgets/combobox.cpp index 455fe524b..c243cd2b7 100644 --- a/src/gui/widgets/combobox.cpp +++ b/src/gui/widgets/combobox.cpp @@ -205,7 +205,7 @@ void comboBox::paintEvent( QPaintEvent * _pe ) height() - 2 ) ); QPixmap pm = model()->currentData() ? model()->currentData()->pixmap() : QPixmap(); - int tx = 4; + int tx = 5; if( !pm.isNull() ) { if( pm.height() > 16 ) @@ -214,13 +214,13 @@ void comboBox::paintEvent( QPaintEvent * _pe ) Qt::SmoothTransformation ); } p.drawPixmap( tx, 3, pm ); - tx += pm.width() + 2; + tx += pm.width() + 3; } const int y = ( height()+p.fontMetrics().height() ) /2; p.setPen( QColor( 64, 64, 64 ) ); - p.drawText( tx+1, y-2, model()->currentText() ); + p.drawText( tx+1, y-3, model()->currentText() ); p.setPen( QColor( 224, 224, 224 ) ); - p.drawText( tx, y-3, model()->currentText() ); + p.drawText( tx, y-4, model()->currentText() ); } }