mirror of
https://github.com/QuantumLeaps/qpcpp.git
synced 2025-01-28 06:02:56 +08:00
52 lines
1.5 KiB
C++
52 lines
1.5 KiB
C++
//============================================================================
|
|
// Copyright (C) 2005 Quantum Leaps, LLC <state-machine.com>.
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial
|
|
//
|
|
// This software is dual-licensed under the terms of the open source GNU
|
|
// General Public License version 3 (or any later version), or alternatively,
|
|
// under the terms of one of the closed source Quantum Leaps commercial
|
|
// licenses.
|
|
//
|
|
// The terms of the open source GNU General Public License version 3
|
|
// can be found at: <www.gnu.org/licenses/gpl-3.0>
|
|
//
|
|
// The terms of the closed source Quantum Leaps commercial licenses
|
|
// can be found at: <www.state-machine.com/licensing>
|
|
//
|
|
// Redistributions in source code must retain this top-level comment block.
|
|
// Plagiarizing this software to sidestep the license obligations is illegal.
|
|
//
|
|
// Contact information:
|
|
// <www.state-machine.com/licensing>
|
|
// <info@state-machine.com>
|
|
//============================================================================
|
|
//! @date Last updated on: 2022-06-30
|
|
//! @version Last updated for: @ref qpcpp_7_0_1
|
|
//!
|
|
//! @file
|
|
//! @brief QP/C++ port to Qt
|
|
|
|
#ifndef GUIAPP_HPP
|
|
#define GUIAPP_HPP
|
|
|
|
#include <QApplication>
|
|
|
|
namespace QP {
|
|
|
|
class GuiApp : public QApplication {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GuiApp(int &argc, char **argv);
|
|
void registerAct(void *act);
|
|
virtual bool event(QEvent *e);
|
|
|
|
private:
|
|
void *m_act; // GUI active object associated with this GUI application
|
|
};
|
|
|
|
} // namespace QP
|
|
|
|
#endif // GUIAPP_HPP
|