1616#ifndef QGSHELP_H
1717#define QGSHELP_H
1818
19- #include < QObject >
19+ #include < QtCore >
2020
2121/* * \ingroup core
2222 * \class QgsHelp
3434 * If no help found, default error page with information how to setup
3535 * help system will be shown.
3636 *
37- * This class can be created directly, or accessed via
38- * QgsApplication::helpViewer().
39- *
4037 * @note added in QGIS 3.0
4138 */
42- class CORE_EXPORT QgsHelp : public QObject
39+ class CORE_EXPORT QgsHelp
4340{
44- Q_OBJECT
45-
4641 public:
4742
48- /* * Constructor for QgsHelp.
49- * @param parent parent QObject
50- */
51- QgsHelp ( QObject* parent = nullptr );
52-
53- virtual ~QgsHelp ();
54-
5543 /* * Opens help topic for the given help key using default system
5644 * web browser. If help topic not found, builtin error page shown.
5745 * @param key key which identified help topic
5846 * @note added in QGIS 3.0
5947 */
60- void openHelp ( const QString& key ) const ;
48+ static void openHelp ( const QString& key );
6149
6250 /* * Returns URI of the help topic for the given key. If help topic
6351 * not found, URI of the builtin error page returned.
6452 * @param key key which identified help topic
6553 * @note added in QGIS 3.0
6654 */
67- QUrl helpUrl ( const QString& key ) const ;
55+ static QUrl helpUrl ( const QString& key );
6856
6957 private:
7058
@@ -73,7 +61,7 @@ class CORE_EXPORT QgsHelp : public QObject
7361 * @param url URL to check
7462 * @note added in QGIS 3.0
7563 */
76- bool urlExists ( const QString& url ) const ;
64+ static bool urlExists ( const QString& url );
7765};
7866
7967#endif // QGSHELP_H
0 commit comments