From d7cfc12cdad2af33f2926037a213ff6ed99f2d1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 8 Oct 2013 11:06:38 +0200 Subject: [PATCH] Add another constructor to LinearLayoutParams --- ui/viewgroup.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/viewgroup.h b/ui/viewgroup.h index 1729830c56..5e87227f9c 100644 --- a/ui/viewgroup.h +++ b/ui/viewgroup.h @@ -122,6 +122,8 @@ public: : LayoutParams(w, h, LP_LINEAR), weight(wgt), gravity(grav), margins(mgn), hasMargins_(true) {} LinearLayoutParams(Size w, Size h, const Margins &mgn) : LayoutParams(w, h, LP_LINEAR), weight(0.0f), gravity(G_TOPLEFT), margins(mgn), hasMargins_(true) {} + LinearLayoutParams(Size w, Size h, float wgt, const Margins &mgn) + : LayoutParams(w, h, LP_LINEAR), weight(wgt), gravity(G_TOPLEFT), margins(mgn), hasMargins_(true) {} LinearLayoutParams(const Margins &mgn) : LayoutParams(WRAP_CONTENT, WRAP_CONTENT, LP_LINEAR), weight(0.0f), gravity(G_TOPLEFT), margins(mgn), hasMargins_(true) {}