#22 Fix for background drawing of the automation editor

Unstable (example)
closed-out-of-date
5
2015-02-17
2011-12-16
Anonymous
No

At least for me (Debian Squeeze + Xorg from backports on Intel GM965/GL960 gfx) the background of the automation editor is not redrawn properly. It appears transparent with all drawing from the x-hair cursor etc left as artifacts...

This tiny patch fixes the issue for me:

diff --git a/src/gui/AutomationEditor.cpp b/src/gui/AutomationEditor.cpp
index 3a597e7..21d704b 100644
--- a/src/gui/AutomationEditor.cpp
+++ b/src/gui/AutomationEditor.cpp
@@ -1256,7 +1256,7 @@ void AutomationEditor::paintEvent( QPaintEvent * _pe )
// start drawing at the bottom
int grid_bottom = height() - SCROLLBAR_SIZE - 1;

- p.fillRect( 0, TOP_MARGIN, VALUES_WIDTH, height() - TOP_MARGIN,
+ p.fillRect( 0, TOP_MARGIN, width(), height() - TOP_MARGIN,
QColor( 0x33, 0x33, 0x33 ) );

// print value numbers

Discussion

  • Tobias Doerffel

    Tobias Doerffel - 2012-01-29
    • assigned_to: nobody --> tobydox
     
  • Tobias Doerffel

    Tobias Doerffel - 2012-01-29

    Which version of Qt is this? Just asking because in AutomationEditor::paintEvent() there's a call

    style()->drawPrimitive( QStyle::PE_Widget, &opt, &p, this );

    which (re)draws the whole background. I never experienced problems with it. Does this always happen? Do you have compositing enabled?

     
  • Tobias Doerffel

    Tobias Doerffel - 2015-02-17
    • status: open --> closed-out-of-date
    • Group: --> Unstable (example)
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks