KGantt

kganttpenstylecombobox.h
1/*
2 * SPDX-FileCopyrightText: 2020 Dag Andersen <danders@get2net.dk>
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
16QT_BEGIN_NAMESPACE
17class QPaintEvent;
18QT_END_NAMESPACE
19
20namespace 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
Global namespace.
PenStyle
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.