QGCWebPage.cc 531 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#include "QGCWebPage.h"
#include <QDebug>

QGCWebPage::QGCWebPage(QObject *parent) :
    QWebPage(parent)
{
}

void QGCWebPage::javaScriptConsoleMessage ( const QString & message, int lineNumber, const QString & sourceID )
{
    qDebug() << "JAVASCRIPT: " << lineNumber << sourceID << message;
}
Lorenz Meier's avatar
Lorenz Meier committed
13 14 15 16 17 18 19 20

#ifdef Q_OS_MAC64
QString QGCWebPage::userAgentForUrl ( const QUrl & url ) const
{
    Q_UNUSED(url);
    return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_0) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari";
}
#endif