ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
colorpushbutton.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 "../qPCL.h"
11 #include "qtcolorpicker.h"
12 
13 namespace Widgets {
14 
16  Q_OBJECT
17 
18 public:
19  ColorPushButton(QWidget* parent = 0);
20  ~ColorPushButton();
21  void setColor(const QColor& c) { setCurrentColor(c); }
22  QColor color() { return currentColor(); }
23 
24 signals:
25  void colorChanged();
26 
27 private:
28  Q_DISABLE_COPY(ColorPushButton)
29 };
30 
31 } // namespace Widgets
#define signals
ColorPushButton, 是对QtColorPicker的扩展.
void setColor(const QColor &c)
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15