]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/MiscGui.cpp
robofsm: Strategy
[eurobot/public.git] / src / robomon / MiscGui.cpp
1 /*
2  * MiscGui.cpp                          07/10/31
3  *
4  * Miscellaneous GUI functions.
5  *
6  * Copyright: (c) 2007 CTU Dragons
7  *            CTU FEE - Department of Control Engineering
8  * Authors: Martin Zidek, Michal Sojka, Tran Duy Khanh
9  * License: GNU GPL v.2
10  */
11
12 #include <QtGui>
13 #include "MiscGui.h"
14
15 MiscGui::MiscGui()
16 {
17 }
18
19 QLabel *MiscGui::createLabel(const QString &text)
20 {
21         QLabel *label = new QLabel(text);
22         label->setAlignment(Qt::AlignCenter);
23         return label;
24 }
25
26 QLabel *MiscGui::createLabel(const QString &text, const Qt::Alignment alignment)
27 {
28         QLabel *label = new QLabel(text);
29         label->setAlignment(alignment);
30         return label;
31 }