swift
abouthtmlcomponent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_COMPONENTS_ABOUTHTMLCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_ABOUTHTMLCOMPONENT_H
8 
9 #include <QFrame>
10 #include <QScopedPointer>
11 #include <QUrl>
12 
13 #include "gui/swiftguiexport.h"
14 
15 namespace Ui
16 {
17  class CAboutHtmlComponent;
18 }
19 namespace swift::gui::components
20 {
24  class SWIFT_GUI_EXPORT CAboutHtmlComponent : public QFrame
25  {
26  Q_OBJECT
27 
28  public:
30  explicit CAboutHtmlComponent(QWidget *parent = nullptr);
31 
33  virtual ~CAboutHtmlComponent() override;
34 
35  private:
37  void loadAbout();
38 
40  void onAnchorClicked(const QUrl &url);
41 
42  QScopedPointer<Ui::CAboutHtmlComponent> ui;
43  };
44 } // namespace swift::gui::components
45 
46 #endif // SWIFT_GUI_COMPONENTS_ABOUTHTMLCOMPONENT_H
Display the HTML info "about swift".
High level reusable GUI components.
Definition: aboutdialog.cpp:13
#define SWIFT_GUI_EXPORT
Export a class or function from the library.