diff options
author | Jan Holesovsky <kendy@collabora.com> | 2013-10-25 19:12:43 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2013-11-15 16:51:52 +0100 |
commit | c94b0281c3fafa51bab30396524eabbf4beb90f7 (patch) | |
tree | 8aca750071abd78c56e62e11d57830b13fa3a7ec /sw/qa | |
parent | ee7f141fb68c4404bdc31c389538d1ee72f2484e (diff) |
Tiled rendering: Better way to get the values in the test app.
Change-Id: I8c4b1cc1d6db3b6572bcf6d80e07567f667e975e
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/tiledrendering/tiledrendering.cxx | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx index 389e997bf970..3adbf83515b9 100644 --- a/sw/qa/tiledrendering/tiledrendering.cxx +++ b/sw/qa/tiledrendering/tiledrendering.cxx @@ -97,22 +97,16 @@ public: DECL_LINK ( RenderHdl, Button * ); DECL_LINK ( ChooseDocumentHdl, Button * ); - - int extractInt(const NumericField *pField) - { - OUString aString(pField->GetText()); - return aString.toInt32(); - } }; IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG ) { - int contextWidth = extractInt(mpContextWidth); - int contextHeight = extractInt(mpContextHeight); - int tilePosX = extractInt(mpTilePosX); - int tilePosY = extractInt(mpTilePosY); - int tileWidth = extractInt(mpTileWidth); - int tileHeight = extractInt(mpTileHeight); + int contextWidth = mpContextWidth->GetValue(); + int contextHeight = mpContextHeight->GetValue(); + int tilePosX = mpTilePosX->GetValue(); + int tilePosY = mpTilePosY->GetValue(); + int tileWidth = mpTileWidth->GetValue(); + int tileHeight = mpTileHeight->GetValue(); // do the same thing we are doing in touch_lo_draw_tile() SwWrtShell *pViewShell = GetActiveWrtShell(); |