ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
fontpushbutton.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <QPushButton>
11 
12 #include "../qPCL.h"
13 
14 namespace Widgets {
15 
16 class QPCL_ENGINE_LIB_API FontPushButton : public QPushButton {
17  Q_OBJECT
18 public:
19  explicit FontPushButton(QWidget* parent = 0);
20  explicit FontPushButton(const QString& text, QWidget* parent = 0);
21 
22 signals:
23  void fontSelected(const QFont& font);
24 
25 private slots:
26  void onClicked();
27 
28 private:
29  void init();
30 };
31 
32 } // namespace Widgets
#define slots
#define signals
void fontSelected(const QFont &font)
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15