examples/webkit/framecapture/main.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    61         std::cout << "  trolltech.png (full page)" << std::endl;
    61         std::cout << "  trolltech.png (full page)" << std::endl;
    62         std::cout << "  trolltech_frame1.png (...) trolltech_frameN.png ('N' number of internal frames)" << std::endl;
    62         std::cout << "  trolltech_frame1.png (...) trolltech_frameN.png ('N' number of internal frames)" << std::endl;
    63         return 0;
    63         return 0;
    64     }
    64     }
    65 
    65 
    66     QUrl url = QWebView::guessUrlFromString(QString::fromLatin1(argv[1]));
    66     QUrl url = QUrl::fromUserInput(QString::fromLatin1(argv[1]));
    67     QString fileName = QString::fromLatin1(argv[2]);
    67     QString fileName = QString::fromLatin1(argv[2]);
    68 
    68 
    69     QApplication a(argc, argv);
    69     QApplication a(argc, argv);
    70     FrameCapture capture;
    70     FrameCapture capture;
    71     QObject::connect(&capture, SIGNAL(finished()), QApplication::instance(), SLOT(quit()));
    71     QObject::connect(&capture, SIGNAL(finished()), QApplication::instance(), SLOT(quit()));