QGCWebView.cc 566 Bytes
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#include "QGCWebView.h"
#include "ui_QGCWebView.h"

QGCWebView::QGCWebView(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::QGCWebView)
{
    ui->setupUi(this);
    ui->webView->settings()->setAttribute(QWebSettings::PluginsEnabled, true);
    ui->webView->load(QUrl("http://qgroundcontrol.org"));
}

QGCWebView::~QGCWebView()
{
    delete ui;
}

void QGCWebView::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}