GCC Code Coverage Report


./
File: libs/ui/qt/action_callback.hpp
Date: 2025-01-21 16:21:04
Lines:
1/2
50.0%
Functions:
1/6
16.7%
Branches:
0/9
0.0%

Line Branch Exec Source
1 /************************************************************************
2 *
3 * Copyright (C) 2009-2024 IRCAD France
4 * Copyright (C) 2012-2021 IHU Strasbourg
5 *
6 * This file is part of Sight.
7 *
8 * Sight is free software: you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * Sight is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with Sight. If not, see <https://www.gnu.org/licenses/>.
20 *
21 ***********************************************************************/
22
23 #pragma once
24
25 #include <sight/ui/qt/config.hpp>
26
27 #include <ui/__/action_callback_base.hpp>
28
29 #include <QObject>
30
31 namespace sight::ui::qt
32 {
33
34 /**
35 * @brief Defines the menu item callback.
36 */
37 class SIGHT_UI_QT_CLASS_API_QT action_callback : public QObject,
38 public ui::action_callback_base
39 {
40 Q_OBJECT
41
42 public:
43
44 SIGHT_DECLARE_CLASS(action_callback, ui::action_callback_base, ui::factory::make<action_callback>);
45
46 954 SIGHT_UI_QT_API_QT ~action_callback() override = default;
47
48 /**
49 * @brief Qt slot.
50 */
51
52 public Q_SLOTS:
53
54 void execute_qt(bool _checked = false);
55 void check_qt(bool _checked);
56 };
57
58 } // namespace sight::ui::qt
59