summaryrefslogtreecommitdiffstats
path: root/src/corelib/doc/snippets/qmetaobject-invokable/window.cpp
blob: f5ce70306db9e0c19e83dd71b98d7c137e129d86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#include "window.h"

Window::Window()
{
}

void Window::normalMethod()
{
    // Cannot be called by the meta-object system.
    show();
}

void Window::invokableMethod()
{
    // Can be called by the meta-object system.
    show();
}