blob: d629c8b02d322ecf34b9b2b25669c048f780f06a (
plain)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | // Copyright (C) 2016 The Qt Company Ltd.// Copyright (C) 2014 Martin Graesslin <mgraesslin@kde.org>// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only#include"qplatformmenu.h"#include <qpa/qplatformtheme.h>#include <private/qguiapplication_p.h> QT_BEGIN_NAMESPACE QPlatformMenuItem::QPlatformMenuItem(){ m_tag =reinterpret_cast<quintptr>(this);}voidQPlatformMenuItem::setTag(quintptr tag){ m_tag = tag;} quintptr QPlatformMenuItem::tag()const{return m_tag;}QPlatformMenu::QPlatformMenu(){ m_tag =reinterpret_cast<quintptr>(this);}voidQPlatformMenu::setTag(quintptr tag){ m_tag = tag;} quintptr QPlatformMenu::tag()const{return m_tag;} QPlatformMenuItem *QPlatformMenu::createMenuItem()const{returnQGuiApplicationPrivate::platformTheme()->createPlatformMenuItem();} QPlatformMenu *QPlatformMenu::createSubMenu()const{returnQGuiApplicationPrivate::platformTheme()->createPlatformMenu();} QPlatformMenu *QPlatformMenuBar::createMenu()const{returnQGuiApplicationPrivate::platformTheme()->createPlatformMenu();} QT_END_NAMESPACE #include"moc_qplatformmenu.cpp"
|