KGantt

kganttpenstylecombobox.h
1 /*
2  * SPDX-FileCopyrightText: 2020 Dag Andersen <[email protected]>
3  *
4  * This file is part of the KGantt library.
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef KGANTTPENSTYLECOMBOBOX_H
10 #define KGANTTPENSTYLECOMBOBOX_H
11 
12 #include <QComboBox>
13 
14 #include "kgantt_export.h"
15 
16 QT_BEGIN_NAMESPACE
17 class QPaintEvent;
18 QT_END_NAMESPACE
19 
20 namespace KGantt {
21 
22  class KGANTT_EXPORT PenStyleComboBox : public QComboBox
23  {
24  Q_OBJECT
25  public:
26  explicit PenStyleComboBox(QWidget *parent = nullptr);
27 
28  void setCurrentStyle(Qt::PenStyle style);
29  Qt::PenStyle currentStyle() const;
30 
31  protected:
32  void paintEvent(QPaintEvent *pe) override;
33  };
34 }
35 
36 #endif
PenStyle
Global namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 22:32:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.