WebKitQt:
[WebKit-https.git] / WebKitQt / QtLauncher / main.cpp
similarity index 89%
rename from WebKitTools/QtLauncher/main.cpp
rename to WebKitQt/QtLauncher/main.cpp
index 6bc13392ccd1eaeb1e858762b5dcb9659c5b97af..9f1a3f23a91d58a18f41ded5c72db327b425b0cb 100644 (file)
@@ -60,12 +60,14 @@ int main(int argc, char **argv)
      
     QWidget topLevel;
     QBoxLayout *l = new QVBoxLayout(&topLevel);
-        
-    FrameQt *f = new FrameQt(&topLevel);
+    // Initialize WebCore in Qt platform mode...
+    Page* page = new Page();
+    Frame* frame = new FrameQt(page, 0, new FrameQtClientDefault());
 
-    l->addWidget(f->view()->qwidget());
+    l->addWidget(frame->view()->qwidget());
     l->activate();
-    f->view()->qwidget()->show();
+    frame->view()->qwidget()->show();
 
     topLevel.show();
 
@@ -76,9 +78,9 @@ int main(int argc, char **argv)
     else
         url = args->arg(0);
 
-    f->openURL(KURL(url.toLatin1()));
+    frame->openURL(KURL(url.toLatin1()));
     
     app.exec();
-    delete f;
+    delete frame;
     return 0;
 }