File indexing completed on 2024-05-12 04:20:44
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dag Andersen <danders@get2net.dk> 0003 * 0004 * This file is part of the KGantt library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #ifndef KGANTTPENSTYLECOMBOBOX_P_H 0010 #define KGANTTPENSTYLECOMBOBOX_P_H 0011 0012 #include <QComboBox> 0013 #include <QListView> 0014 #include <QStyleOptionMenuItem> 0015 0016 namespace KGantt { 0017 0018 class PenStyleComboBoxListView : public QListView 0019 { 0020 Q_OBJECT 0021 public: 0022 PenStyleComboBoxListView(QComboBox *cmb = nullptr); 0023 0024 protected: 0025 void resizeEvent(QResizeEvent *event) override; 0026 void paintEvent(QPaintEvent *e) override; 0027 0028 private: 0029 QComboBox *combo; 0030 }; 0031 } 0032 0033 #endif