Fixed the brush initialization.

The brushes are now initialized as solid colored, in order to fix drawing
problems.
This commit is contained in:
Rüdiger Ranft
2014-12-19 16:54:37 +01:00
parent 2fa7892542
commit 17df759e59
2 changed files with 5 additions and 3 deletions

View File

@@ -847,7 +847,9 @@ void trackContentObjectView::setAutoResizeEnabled( bool _e )
*/
trackContentWidget::trackContentWidget( trackView * _parent ) :
QWidget( _parent ),
m_trackView( _parent )
m_trackView( _parent ),
m_darkerColor( Qt::SolidPattern ),
m_lighterColor( Qt::SolidPattern )
{
setAcceptDrops( true );

View File

@@ -98,9 +98,9 @@ AutomationEditor::AutomationEditor() :
m_editMode( DRAW ),
m_scrollBack( FALSE ),
m_gridColor( 0,0,0 ),
m_graphColor(),
m_graphColor( Qt::SolidPattern ),
m_vertexColor( 0,0,0 ),
m_scaleColor()
m_scaleColor( Qt::SolidPattern )
{
connect( this, SIGNAL( currentPatternChanged() ),
this, SLOT( updateAfterPatternChange() ),