Bug 129280

Summary: Board editor shows black screen when started first
Product: [Applications] kmahjongg Reporter: Frederik Schwarzer <schwarzer>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Frederik Schwarzer 2006-06-17 03:55:27 UTC
Version:           0.7.8 (using KDE KDE 3.5.3)
Installed from:    Debian testing/unstable Packages
OS:                Linux

1. start kmahjonhgg
2. edit -> board editor
The background does not show the grid, but a blank screen.
There are also leavongs of the tooltips from toolbar buttons left until I enter the black area with the mouse cursor.
3. set the first stone
Now the screen turns white with a black grid.

To repeat this, I have to restart kmahjongg.
Comment 1 Albert Astals Cid 2006-06-17 13:07:10 UTC
SVN commit 552293 by aacid:

Fix board editor has garbage when opening it.
Add a bit of margin so that Qt does not decide to omit calling Editor::paintEvent (bad Qt changing your behaviour!)
This is a bit of a dirty trick but it's the less intrusive patch i could find that fixed the issue
BUGS: 129280


 M  +1 -1      Editor.cpp  


--- branches/KDE/3.5/kdegames/kmahjongg/Editor.cpp #552292:552293
@@ -69,7 +69,7 @@
    // setup the tool bar
    setupToolbar();
 
-   QVBoxLayout *layout = new QVBoxLayout(this);
+   QVBoxLayout *layout = new QVBoxLayout(this, 1);
    layout->addWidget(topToolbar,0);
    layout->addWidget(drawFrame,1);
    layout->activate();