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 (11 sloc) 0.396 kB
#include "ResizeWindow.h"
#include "WebPage.h"
ResizeWindow::ResizeWindow(WebPage *page, QStringList &arguments, QObject *parent) : Command(page, arguments, parent) {
}
void ResizeWindow::start() {
int width = arguments()[0].toInt();
int height = arguments()[1].toInt();
QSize size(width, height);
page()->setViewportSize(size);
emit finished(new Response(true));
}
Jump to Line
Something went wrong with that request. Please try again.