summaryrefslogtreecommitdiffstats
path: root/tests/auto/shared/platformclipboard.h
blob: bc4e797746e4cc0add02dcb04d22cd1724a6c41b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef PLATFORMCLIPBOARD_H
#define PLATFORMCLIPBOARD_H

#include <qglobal.h>

struct PlatformClipboard
{
    static inline bool isAvailable()
    {
#if defined(QT_NO_CLIPBOARD)
        return false;
#else
        return true;
#endif
    }
};

#endif // PLATFORMCLIPBOARD_H