summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/test_private_includes/main.cpp
blob: 6dc90fbae0a3ec52cd03c0df0f1e4204242d81ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2012 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Stephen Kelly <stephen.kelly@kdab.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <QGuiApplication>
#include <QScreen>
#include <qpa/qplatformscreen.h>
#include <QtGui/qpa/qplatformpixmap.h>

int main(int argc, char **argv)
{
    QGuiApplication app(argc, argv);

    QPlatformScreen *screenHandle = app.screens().first()->handle();
    screenHandle->geometry();

    QPixmap pixmap;
    QPlatformPixmap *pixmapHandle = pixmap.handle();
    pixmapHandle->width();

    return 0;
}