Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 317 Bytes
#include "Url.h"
#include "WebPage.h"
Url::Url(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
}
void Url::start() {
QUrl humanUrl = page()->currentFrame()->url();
QByteArray encodedBytes = humanUrl.toEncoded();
emit finished(new Response(true, encodedBytes));
}