Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.423 kb
#include "CurrentUrl.h"
#include "WebPage.h"
#include "WebPageManager.h"
CurrentUrl::CurrentUrl(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
void CurrentUrl::start() {
QStringList arguments;
QVariant result = page()->currentFrame()->evaluateJavaScript("window.location.toString()");
QString url = result.toString();
emitFinished(true, url);
Jump to Line
Something went wrong with that request. Please try again.