summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-10-23 17:02:06 +0200
committerJan Holesovsky <kendy@collabora.com>2013-11-15 16:51:50 +0100
commit9c253aeea11bdce01d96c52623ea04697ed9840f (patch)
treed7330dcac1304b8b607d6e4ca789eae490052161 /sw/qa
parentde13fe7249e086474fce756852de406f2795af51 (diff)
Tiled rendering: The tile shows now when we request for it.
But so far it is just a white rectangle ;-) - next step is to check if it is something real. Change-Id: I06c5ffe0479970d0ca7531a0d037312dc195865f
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/tiledrendering/tiledrendering.cxx5
-rw-r--r--sw/qa/tiledrendering/tiledrendering.ui2
2 files changed, 5 insertions, 2 deletions
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx
index cb9f46f3dc6b..6f6e6e150c63 100644
--- a/sw/qa/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/tiledrendering/tiledrendering.cxx
@@ -105,7 +105,7 @@ public:
}
};
-IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
+IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
{
int contextWidth = extractInt(mpContextWidth);
int contextHeight = extractInt(mpContextHeight);
@@ -133,6 +133,9 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
// copy the aDevice content to mpImage
BitmapEx aBitmap(aDevice.GetBitmapEx(Point(0,0), aDevice.GetOutputSizePixel()));
mpImage->SetImage(Image(aBitmap));
+
+ // update the dialog size
+ setOptimalLayoutSize();
}
return 1;
diff --git a/sw/qa/tiledrendering/tiledrendering.ui b/sw/qa/tiledrendering/tiledrendering.ui
index 59dc1e6fe200..e5e6d8ff420c 100644
--- a/sw/qa/tiledrendering/tiledrendering.ui
+++ b/sw/qa/tiledrendering/tiledrendering.ui
@@ -15,11 +15,11 @@
</object>
<object class="GtkWindow" id="TiledRendering">
<property name="can_focus">False</property>
+ <property name="border_width">12</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<object class="GtkBox" id="box7">