GCC Code Coverage Report


Directory: ./
File: plugins/pyqcustomplot/plugin.cc
Date: 2024-08-14 11:04:57
Exec Total Coverage
Lines: 0 2 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // Copyright (c) 2018 CNRS
2 // Authors: Joseph Mirabel
3 //
4 //
5 // This file is part of gepetto-viewer
6 // gepetto-viewer is free software: you can redistribute it
7 // and/or modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation, either version
9 // 3 of the License, or (at your option) any later version.
10 //
11 // gepetto-viewer is distributed in the hope that it will be
12 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Lesser Public License for more details. You should have
15 // received a copy of the GNU Lesser General Public License along with
16 // gepetto-viewer If not, see
17 // <http://www.gnu.org/licenses/>.
18
19 #include <decorator.hh>
20 #include <gepetto/gui/config-dep.hh>
21 #include <plugin.hh>
22
23 namespace PyQCustomPlot {
24 void Plugin::init() {
25 #if GEPETTO_GUI_HAS_PYTHONQT
26 registerQCustomPlot();
27 #else
28 qWarning() << "Cannot load pyqcustomplot plugin without PythonQt support.";
29 #endif
30 }
31
32 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
33 Q_EXPORT_PLUGIN2(pyqcustomplot, Plugin)
34 #endif
35 } // namespace PyQCustomPlot
36