mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-11 13:18:13 +03:00
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
|