Improve some song-editor UI

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1036 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Paul Giblock
2008-06-01 15:00:11 +00:00
parent 04975bef9a
commit b772da01fe
3 changed files with 20 additions and 2 deletions

View File

@@ -474,7 +474,7 @@ void trackContentObjectView::mouseMoveEvent( QMouseEvent * _me )
arg( m_tco->startPosition().getTact() + 1 ).
arg( m_tco->startPosition().getTicks() %
midiTime::ticksPerTact() ) );
s_textFloat->moveGlobal( this, QPoint( width() + 2, 8 ) );
s_textFloat->moveGlobal( this, QPoint( width() + 2, height() + 2 ) );
}
else if( m_action == MoveSelection )
{
@@ -531,7 +531,8 @@ void trackContentObjectView::mouseMoveEvent( QMouseEvent * _me )
arg( m_tco->endPosition().getTact() + 1 ).
arg( m_tco->endPosition().getTicks() %
midiTime::ticksPerTact() ) );
s_textFloat->moveGlobal( this, QPoint( width() + 2, 8 ) );
s_textFloat->moveGlobal( this, QPoint( width() + 2,
height() + 2) );
}
else
{

View File

@@ -1145,6 +1145,14 @@ void patternView::paintEvent( QPaintEvent * )
x_base + static_cast<int>(
ppt * tact_num ) - 1,
TCO_BORDER_WIDTH,
x_base + static_cast<int>(
ppt * tact_num ) - 1,
5 );
p.drawLine(
x_base + static_cast<int>(
ppt * tact_num ) - 1,
height() - ( 5 + 2 *
TCO_BORDER_WIDTH ),
x_base + static_cast<int>(
ppt * tact_num ) - 1,
height() - 2 *