ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
penstylebox.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 <QComboBox>
11 
12 #include "../qPCL.h"
13 
14 namespace Widgets {
15 
16 class QPCL_ENGINE_LIB_API PenStyleBox : public QComboBox {
17  Q_OBJECT
18 
19 public:
20  PenStyleBox(QWidget* parent = 0);
21  void setStyle(const Qt::PenStyle& style);
22  Qt::PenStyle style() const;
23 
24  static int styleIndex(const Qt::PenStyle& style);
25  static Qt::PenStyle penStyle(int index);
26 
27 private:
28  static const Qt::PenStyle patterns[];
29 };
30 
31 } // namespace Widgets
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15