summaryrefslogtreecommitdiff
path: root/client/widgets/frame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/widgets/frame.cc')
-rw-r--r--client/widgets/frame.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/widgets/frame.cc b/client/widgets/frame.cc
index 00f1930..508541d 100644
--- a/client/widgets/frame.cc
+++ b/client/widgets/frame.cc
@@ -25,6 +25,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
#include "frame.h"
+#include <QVBoxLayout>
+#include <QHBoxLayout>
Frame::Frame(QDomNode node)
: QGroupBox(), Widget(node)
@@ -46,6 +48,16 @@ Frame::Frame(QDomNode node)
} else {
setFlat(true);
}
+
+ if(elem.hasAttribute("layout")) {
+ if(elem.attribute("layout") == "hbox") {
+ QHBoxLayout *layout = new QHBoxLayout();
+ setLayout(layout);
+ } else if (elem.attribute("layout") == "vbox") {
+ QVBoxLayout *layout = new QVBoxLayout();
+ setLayout(layout);
+ }
+ }
}
QString Frame::getValue()