[haiku-commits] r40942 - haiku/trunk/src/tests/libs/alm

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 14 Mar 2011 01:25:31 +0100 (CET)

Author: czeidler
Date: 2011-03-14 01:25:31 +0100 (Mon, 14 Mar 2011)
New Revision: 40942
Changeset: http://dev.haiku-os.org/changeset/40942

Modified:
   haiku/trunk/src/tests/libs/alm/TableDemo.cpp
Log:
Update table demo.



Modified: haiku/trunk/src/tests/libs/alm/TableDemo.cpp
===================================================================
--- haiku/trunk/src/tests/libs/alm/TableDemo.cpp        2011-03-14 00:24:12 UTC 
(rev 40941)
+++ haiku/trunk/src/tests/libs/alm/TableDemo.cpp        2011-03-14 00:25:31 UTC 
(rev 40942)
@@ -25,11 +25,9 @@
 
                Column* c1 = layout->AddColumn(layout->Left(), layout->Right());
                Row* r1 = layout->AddRow(layout->Top(), NULL);
-               Row* r3 = layout->AddRow(NULL, layout->Bottom());
-               r1->SetNext(r3);
-               Row* r2 = layout->AddRow();
-               r2->InsertAfter(r1);
-
+               Row* r2 = layout->AddRow(r1->Bottom(), NULL);
+               Row* r3 = layout->AddRow(r2->Bottom(), layout->Bottom());
+       
                BButton* b1 = new BButton("A1");
                layout->AddView(b1, r1, c1);
                b1->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP));
@@ -43,9 +41,6 @@
                layout->AddView(b3, r3, c1);
                b3->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, 
B_ALIGN_BOTTOM));
 
-               r2->HasSameHeightAs(r1);
-               r3->HasSameHeightAs(r1);
-
                // test size limits
                BSize min = layout->MinSize();
                BSize max = layout->MaxSize();


Other related posts:

  • » [haiku-commits] r40942 - haiku/trunk/src/tests/libs/alm - clemens . zeidler