summaryrefslogtreecommitdiffstats
path: root/tools/testcon/scripts/perlscript.pl
blob: 8176b818ff66d732f532951310260b3a8bd7cfd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright (C) 2016 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

sub QAxWidget2_Click {
    $QAxWidget2->{'lineWidth'} = $QAxWidget2->{'lineWidth'} + 1;
    $MainWindow->logMacro(0, "Hello from Perl: QAxWidget2_Click", 0, "");
}

sub fatLines
{
    $QAxWidget2->{'lineWidth'} = 25;
}

sub thinLines
{
    $QAxWidget2->{'lineWidth'} = 1;
}

sub setLineWidth(width)
{
    $QAxWidget2->{'lineWidth'} = width;
}

sub getLineWidth()
{
    return $QAxWidget2->{'lineWidth'};
}