Revision control

Copy as Markdown

// Copyright (C) 2025 Intel Corporation.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifdef Q_ASSERT
# error "Don't use precompiled headers"
#endif
#define QT_FORCE_ASSERTS
#include <QObject>
#include <QThread>
#include <QtPlugin>
class Interface
{
public:
virtual ~Interface() {}
};
#define Interface_iid "org.qt-project.Qt.autotests.plugininterface"
QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(Interface, Interface_iid)
QT_END_NAMESPACE
class ApplicationHelperPlugin : public QObject, public Interface
{
Q_OBJECT
Q_PLUGIN_METADATA(IID Interface_iid)
Q_INTERFACES(Interface)
public:
ApplicationHelperPlugin()
{
}
~ApplicationHelperPlugin()
{
// see QTBUG-134080
// We used to print "Timers cannot be stopped from another thread"
Q_ASSERT(thread() == QThread::currentThread());
}
};
#include "apphelper_plugin.moc"