Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.473 kB
#include "Visit.h"
#include "Command.h"
#include "WebPage.h"
Visit::Visit(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
}
void Visit::start() {
QUrl requestedUrl = QUrl::fromEncoded(arguments()[0].toUtf8(), QUrl::StrictMode);
if (requestedUrl.hasFragment()) {
page()->currentFrame()->load(QUrl(requestedUrl));
} else {
page()->currentFrame()->setUrl(QUrl(requestedUrl));
}
emit finished(new Response(true));
}
Jump to Line
Something went wrong with that request. Please try again.