Back to index

lightning-sunbird  0.9+nobinonly
Functions
TestQGeckoEmbed.cpp File Reference
#include <qapplication.h>
#include "mainwindow.h"
#include "qgeckoembed.h"
#include <qdir.h>

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 7 of file TestQGeckoEmbed.cpp.

{
    QApplication app(argc, argv);

    QGeckoEmbed::initialize(QDir::homeDirPath().latin1(),
                            ".TestQGeckoEmbed");

    MyMainWindow *mainWindow = new MyMainWindow();
    app.setMainWidget(mainWindow);

    mainWindow->resize(700, 500);
    mainWindow->show();

    QString url;
    if (argc > 1)
        url = argv[1];
    else
        url = "http://www.kde.org";

    mainWindow->qecko->loadURL(url);

    return app.exec();
}

Here is the call graph for this function: