Bug 129280 - Board editor shows black screen when started first
Summary: Board editor shows black screen when started first
Status: RESOLVED FIXED
Alias: None
Product: kmahjongg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-17 03:55 UTC by Frederik Schwarzer
Modified: 2006-06-17 13:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();