Mozilla/mozilla/embedding/browser/qt/tests/TestQGeckoEmbed.cpp
zack%kde.org d3b4ce7cfe Qt Mozilla port. For now the best way to start playing with it is the
TestQGeckoEmbed from the embedding/browser/qt/tests.
Build patch sr=jst, r=biesi.
Rest: r=dbaron,biesi


git-svn-id: svn://10.0.0.236/trunk@163516 18797224-902f-48f8-a5cc-f745e15eee43
2004-10-11 04:01:49 +00:00

30 lines
585 B
C++

#include <qapplication.h>
#include "mainwindow.h"
#include "qgeckoembed.h"
#include <qdir.h>
int main(int argc, char **argv)
{
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();
}