2022-06-07 11:55:27 +00:00
|
|
|
// Copyright (C) 2015 The Qt Company Ltd.
|
2024-03-15 08:19:25 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include "menus.h"
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QAxFactory>
|
2017-08-21 11:23:48 +00:00
|
|
|
#include <QScopedPointer>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2015-09-05 15:15:56 +00:00
|
|
|
QAXFACTORY_BEGIN(
|
|
|
|
"{ce947ee3-0403-4fdc-895a-4fe779394b46}", // type library ID
|
|
|
|
"{8de435ce-8d2a-46ac-b3b3-cb800d0847c7}") // application ID
|
|
|
|
QAXCLASS(QMenus)
|
|
|
|
QAXFACTORY_END()
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2017-08-21 11:23:48 +00:00
|
|
|
int main(int argc, char *argv[])
|
2011-04-27 10:05:43 +00:00
|
|
|
{
|
2017-08-21 11:23:48 +00:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
QScopedPointer<QWidget> window;
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2017-08-21 11:23:48 +00:00
|
|
|
if (!QAxFactory::isServer()) {
|
|
|
|
window.reset(new QMenus());
|
2014-01-15 21:17:52 +00:00
|
|
|
window->show();
|
2011-04-27 10:05:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
}
|