QGIS API Documentation 3.43.0-Master (b60ef06885e)
qgspenstylecombobox.h
Go to the documentation of this file.
1/***************************************************************************
2 qgspenstylecombobox.h
3 ---------------------
4 begin : November 2009
5 copyright : (C) 2009 by Martin Dobias
6 email : wonder dot sk at gmail dot com
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSPENSTYLECOMBOBOX_H
17#define QGSPENSTYLECOMBOBOX_H
18
19#include <QComboBox>
20#include "qgis_gui.h"
21#include "qgis_sip.h"
22
28class GUI_EXPORT QgsPenStyleComboBox : public QComboBox
29{
30 Q_OBJECT
31
32 public:
33 QgsPenStyleComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
34
35 Qt::PenStyle penStyle() const;
36
37 void setPenStyle( Qt::PenStyle style );
38
39 protected:
40 QIcon iconForPen( Qt::PenStyle style );
41};
42
48class GUI_EXPORT QgsPenJoinStyleComboBox : public QComboBox
49{
50 Q_OBJECT
51
52 public:
53 QgsPenJoinStyleComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
54
55 Qt::PenJoinStyle penJoinStyle() const;
56
57 void setPenJoinStyle( Qt::PenJoinStyle style );
58};
59
65class GUI_EXPORT QgsPenCapStyleComboBox : public QComboBox
66{
67 Q_OBJECT
68
69 public:
70 QgsPenCapStyleComboBox( QWidget *parent SIP_TRANSFERTHIS = nullptr );
71
72 Qt::PenCapStyle penCapStyle() const;
73
74 void setPenCapStyle( Qt::PenCapStyle style );
75};
76
77#endif
A combobox widget for selection of Qt::PenCapStyle.
A combobox widget for selection of Qt::PenJoinStyle.
A combobox widget for selection of Qt::PenStyle.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53