equal
deleted
inserted
replaced
13 * |
13 * |
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software |
15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
17 */ |
17 */ |
18 |
18 |
19 #include <QHBoxLayout> |
19 #include <QHBoxLayout> |
20 #include <QLineEdit> |
20 #include <QLineEdit> |
21 #include <QTextBrowser> |
21 #include <QTextBrowser> |
22 #include <QLabel> |
22 #include <QLabel> |
23 |
23 |
26 |
26 |
27 QLayout * PageFeedback::bodyLayoutDefinition() |
27 QLayout * PageFeedback::bodyLayoutDefinition() |
28 { |
28 { |
29 QVBoxLayout * pageLayout = new QVBoxLayout(); |
29 QVBoxLayout * pageLayout = new QVBoxLayout(); |
30 QHBoxLayout * summaryLayout = new QHBoxLayout(); |
30 QHBoxLayout * summaryLayout = new QHBoxLayout(); |
31 |
31 |
32 info = new QLabel(); |
32 info = new QLabel(); |
33 info->setText( |
33 info->setText( |
34 "<style type=\"text/css\">" |
34 "<style type=\"text/css\">" |
35 "a { color: #ffcc00; }" |
35 "a { color: #ffcc00; }" |
36 "</style>" |
36 "</style>" |
37 "<div align=\"center\"><h1>Please give us a feedback!</h1>" |
37 "<div align=\"center\"><h1>Please give us a feedback!</h1>" |
38 "<h3>We are always happy about suggestions, ideas or bug reports.<h3>" |
38 "<h3>We are always happy about suggestions, ideas or bug reports.<h3>" |
39 "<h4>The feedback will be posted as a new issue on our Google Code page.<h4>" |
39 "<h4>The feedback will be posted as a new issue on our Google Code page.<h4>" |
40 "</div>" |
40 "</div>" |
41 ); |
41 ); |
42 pageLayout->addWidget(info); |
42 pageLayout->addWidget(info); |
43 |
43 |
44 label_summary = new QLabel(); |
44 label_summary = new QLabel(); |
45 label_summary->setText(QLabel::tr("Summary ")); |
45 label_summary->setText(QLabel::tr("Summary ")); |
46 summaryLayout->addWidget(label_summary); |
46 summaryLayout->addWidget(label_summary); |
59 } |
59 } |
60 |
60 |
61 QLayout * PageFeedback::footerLayoutDefinition() |
61 QLayout * PageFeedback::footerLayoutDefinition() |
62 { |
62 { |
63 QHBoxLayout * bottomLayout = new QHBoxLayout(); |
63 QHBoxLayout * bottomLayout = new QHBoxLayout(); |
64 |
64 |
65 bottomLayout->setStretch(0,1); |
65 bottomLayout->setStretch(0,1); |
66 //TODO: create logo for send button |
66 //TODO: create logo for send button |
67 BtnSend = addButton("Send", bottomLayout, 0, false); |
67 BtnSend = addButton("Send", bottomLayout, 0, false); |
68 bottomLayout->insertStretch(0); |
68 bottomLayout->insertStretch(0); |
69 |
69 |