tools/activeqt/testcon/scripts/javascript.js
author Craig Heath <craigh@symbian.org>
Wed, 16 Jun 2010 16:18:05 +0100
branchGCC_SURGE
changeset 26 8776df5ac359
parent 0 1918ee327afb
permissions -rw-r--r--
Bug 2955. Workaround for lack of atomic operations in GCCE standard libraries (fall back to default use of Mutex)

function QAxWidget2::Click()
{
	QAxWidget2.lineWidth++;
	MainWindow.logMacro(0, "Hello from JavaScript: QAxWidget2::Click", 0, "");
}

function fatLines()
{
	QAxWidget2.lineWidth = 25;
}

function thinLines()
{
	QAxWidget2.lineWidth = 1;
}

function setLineWidth(width)
{
	QAxWidget2.lineWidth = width;
}

function getLineWidth()
{
	return(QAxWidget2.lineWidth)
}