Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.415 kB
#include "RequestedUrl.h"
#include "WebPage.h"
RequestedUrl::RequestedUrl(WebPage *page, QObject *parent) : Command(page, parent) {
}
void RequestedUrl::start(QStringList &arguments) {
Q_UNUSED(arguments);
QUrl humanUrl = page()->currentFrame()->requestedUrl();
QByteArray encodedBytes = humanUrl.toEncoded();
QString urlString = QString(encodedBytes);
emit finished(new Response(true, urlString));
}
Jump to Line
Something went wrong with that request. Please try again.