summaryrefslogtreecommitdiffstats
path: root/kword/tests/KWPageManagerTester.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-21 14:05:41 -0600
commit2d6954f69caf63ed5057bd8e1405a65d7d970292 (patch)
tree88e6436b2e81d4e68313f02a9021054252e14cc4 /kword/tests/KWPageManagerTester.cpp
parentf0de9e167e289ab7dc33e57f077c1f04ec7c68c8 (diff)
downloadkoffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.tar.gz
koffice-2d6954f69caf63ed5057bd8e1405a65d7d970292.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'kword/tests/KWPageManagerTester.cpp')
-rw-r--r--kword/tests/KWPageManagerTester.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kword/tests/KWPageManagerTester.cpp b/kword/tests/KWPageManagerTester.cpp
index 641e6534..9b261d90 100644
--- a/kword/tests/KWPageManagerTester.cpp
+++ b/kword/tests/KWPageManagerTester.cpp
@@ -200,11 +200,11 @@ void KWPageManagerTester::removePages() {
void KWPageManagerTester::pageInfo() {
KWPageManager *pageManager = new KWPageManager();
- KoPageLayout tqlayout;
- tqlayout.ptWidth = 300;
- tqlayout.ptHeight = 600;
- tqlayout.format = PG_DIN_A4;
- pageManager->setDefaultPage(tqlayout);
+ KoPageLayout layout;
+ layout.ptWidth = 300;
+ layout.ptHeight = 600;
+ layout.format = PG_DIN_A4;
+ pageManager->setDefaultPage(layout);
pageManager->setStartPage(1);
KWPage *page1 = pageManager->appendPage();
page1->setWidth(100);
@@ -216,19 +216,19 @@ void KWPageManagerTester::pageInfo() {
CHECK(pageManager->topOfPage(3), 300.0);
CHECK(pageManager->bottomOfPage(3), 900.0);
- tqlayout.ptHeight = 500;
- pageManager->setDefaultPage(tqlayout);
+ layout.ptHeight = 500;
+ pageManager->setDefaultPage(layout);
CHECK(pageManager->bottomOfPage(3), 800.0);
page2->setHeight(-1);
CHECK(pageManager->bottomOfPage(3), 1200.0);
- tqlayout.ptTop = 5;
- tqlayout.ptLeft = 6;
- tqlayout.ptBottom = 7;
- tqlayout.ptRight = 8;
- tqlayout.ptBindingSide = -1;
- tqlayout.ptPageEdge = -1;
- pageManager->setDefaultPage(tqlayout);
+ layout.ptTop = 5;
+ layout.ptLeft = 6;
+ layout.ptBottom = 7;
+ layout.ptRight = 8;
+ layout.ptBindingSide = -1;
+ layout.ptPageEdge = -1;
+ pageManager->setDefaultPage(layout);
page2->setTopMargin(9);
page2->setLeftMargin(10);
page2->setBottomMargin(11);