From 3ccba98ce385feb0daf095bf4a786a62a3b3dce9 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Thu, 23 Sep 2010 00:04:50 +0000 Subject: [PATCH] Adjust the test apps. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38791 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/libs/alm/Areas.cpp | 13 ++++++------- src/tests/libs/alm/Pinwheel.cpp | 3 ++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tests/libs/alm/Areas.cpp b/src/tests/libs/alm/Areas.cpp index 168a9ce790..6da4b85af1 100644 --- a/src/tests/libs/alm/Areas.cpp +++ b/src/tests/libs/alm/Areas.cpp @@ -38,19 +38,18 @@ public: a1->SetRightInset(10); layout->AddArea(layout->Left(), y1, layout->Right(), y2, button2); - button2->SetExplicitAlignment( - BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP)); + button2->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP)); Area* a3 = layout->AddArea(layout->Left(), y2, layout->Right(), y3, button3); - button3->SetExplicitAlignment( - BAlignment(B_ALIGN_HORIZONTAL_CENTER, B_ALIGN_VERTICAL_CENTER)); - a3->HasSameHeightAs(a1); + button3->SetExplicitAlignment(BAlignment(B_ALIGN_HORIZONTAL_CENTER, + B_ALIGN_VERTICAL_CENTER)); + a3->SetHeightAs(a1); layout->AddArea(layout->Left(), y3, layout->Right(), layout->Bottom(), button4); - button4->SetExplicitAlignment( - BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM)); + button4->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, + B_ALIGN_BOTTOM)); } private: diff --git a/src/tests/libs/alm/Pinwheel.cpp b/src/tests/libs/alm/Pinwheel.cpp index aa48364701..ec07e0d2eb 100644 --- a/src/tests/libs/alm/Pinwheel.cpp +++ b/src/tests/libs/alm/Pinwheel.cpp @@ -55,7 +55,8 @@ public: layout->AddArea(layout->Left(), y1, x1, layout->Bottom(), button4); layout->AddArea(x1, y1, x2, y2, textView1); - a1->HasSameSizeAs(a3); + a1->SetWidthAs(a3); + a1->SetHeightAs(a3); } private: