File indexing completed on 2024-04-14 05:24:31

0001 /*
0002     SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef LAYOUTSCOMBOBOX_H
0007 #define LAYOUTSCOMBOBOX_H
0008 
0009 //local
0010 #include "../../data/layouticondata.h"
0011 
0012 //Qt
0013 #include <QComboBox>
0014 #include <QPaintEvent>
0015 
0016 namespace Latte {
0017 namespace Settings {
0018 
0019 class LayoutsComboBox : public QComboBox
0020 {
0021   Q_OBJECT
0022 public:
0023   LayoutsComboBox(QWidget *parent = nullptr);
0024 
0025   Latte::Data::LayoutIcon layoutIcon() const;
0026   void setLayoutIcon(const Latte::Data::LayoutIcon &icon);
0027 
0028 protected:
0029   void paintEvent(QPaintEvent *event) override;
0030 
0031 private:
0032   Latte::Data::LayoutIcon m_layoutIcon;
0033 
0034 };
0035 
0036 }
0037 }
0038 
0039 #endif