From 51be3f5c1384b5467264cbab334244e00a4b9263 Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Fri, 20 Feb 2009 18:00:33 +0000 Subject: [PATCH] Fix clipping issues in classic theme git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@2062 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 3 +++ src/gui/classic_style.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7cce2905e..e29118619 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,9 @@ * src/gui/cusis_style.cpp: Add per-TCO coloring and non-linear motion when dragging + * src/gui/classic_style.cpp: + Fix text clipping + 2009-02-19 Paul Giblock * include/track.h: diff --git a/src/gui/classic_style.cpp b/src/gui/classic_style.cpp index 43809a6de..ab019859a 100644 --- a/src/gui/classic_style.cpp +++ b/src/gui/classic_style.cpp @@ -449,10 +449,10 @@ void ClassicStyle::drawTrackContentObject( QPainter * _painter, rc.height() - 2 * TCO_BORDER_WIDTH ); } + p->setClipRect( rc.adjusted( 1, 1, -1, -1 ) ); if( pat->type() == pattern::MelodyPattern ) { int central_key = 0; - p->setClipRect( rc.adjusted( 1, 1, -1, -1 ) ); if( pat->notes().size() > 0 ) { // first determine the central tone so that we can @@ -516,7 +516,6 @@ void ClassicStyle::drawTrackContentObject( QPainter * _painter, p->setRenderHint( QPainter::Antialiasing, true ); } } - p->setClipping( false ); } /* else if( pat->type() == pattern::BeatPattern && @@ -613,6 +612,7 @@ void ClassicStyle::drawTrackContentObject( QPainter * _painter, */ } + p->setClipping( false ); } } }