summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/qmetaobject-revision/window.cpp
blob: 77950a5656d52422af1d6dc2c693d3f9891f7ebe (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
28
29
// Copyright (C) 2016 Research In Motion.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include "window.h"

Window::Window()
{
}

int Window::normalProperty()
{
    return 0;
}

int Window::newProperty()
{
    return 1;
}

void Window::normalMethod()
{
    show();
}

void Window::newMethod()
{
    // Can be hidden from users expecting the initial API
    show();
}