QTfrontend/pagedata.cpp
author Xeli
Wed, 22 Jun 2011 23:59:01 +0200
branchhedgeroid
changeset 5304 e29aa9e29f00
parent 5271 48d18e329298
child 5567 44c9a577b082
permissions -rw-r--r--
Added SDL-android-project, this is the Android/Java part of the application
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5271
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     1
/*
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     2
 * Hedgewars, a free turn based strategy game
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     3
 * Copyright (c) 2006-2011 Andrey Korotaev <unC0Rr@gmail.com>
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     4
 *
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     8
 *
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    12
 * GNU General Public License for more details.
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    13
 *
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    17
 */
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    18
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    19
#include <QGridLayout>
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    20
#include <QPushButton>
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    21
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    22
#include "pagedata.h"
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    23
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    24
PageDataDownload::PageDataDownload(QWidget* parent) : AbstractPage(parent)
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    25
{
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    26
    QGridLayout * pageLayout = new QGridLayout(this);
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    27
    pageLayout->setColumnStretch(0, 1);
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    28
    pageLayout->setColumnStretch(1, 1);
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    29
    pageLayout->setColumnStretch(2, 1);
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    30
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    31
    BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true);
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    32
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    33
    web = new QWebView(this);
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    34
    web->load(QUrl("http://m8y.org/hw/"));
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    35
    pageLayout->addWidget(web, 0, 0, 1, 3);
48d18e329298 ack. forgot to add my stub files
nemo
parents:
diff changeset
    36
}