You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
659 B
C++
40 lines
659 B
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef LAYOUTSCOMBOBOX_H
|
|
#define LAYOUTSCOMBOBOX_H
|
|
|
|
//local
|
|
#include "../../data/layouticondata.h"
|
|
|
|
//Qt
|
|
#include <QComboBox>
|
|
#include <QPaintEvent>
|
|
|
|
namespace Latte {
|
|
namespace Settings {
|
|
|
|
class LayoutsComboBox : public QComboBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
LayoutsComboBox(QWidget *parent = nullptr);
|
|
|
|
Latte::Data::LayoutIcon layoutIcon() const;
|
|
void setLayoutIcon(const Latte::Data::LayoutIcon &icon);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event) override;
|
|
|
|
private:
|
|
Latte::Data::LayoutIcon m_layoutIcon;
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|