aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-theme-engine/src/lthemeengine/paletteeditdialog.h
blob: 040692f6def2c101e17ce45d585dfe8cedcd55ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef PALETTEEDITDIALOG_H
#define PALETTEEDITDIALOG_H

#include <QDialog>
#include <QPalette>

class QTableWidgetItem;
class QStyle;

namespace Ui {
class PaletteEditDialog;
}

class PaletteEditDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PaletteEditDialog(const QPalette &palette, QStyle *currentStyle, QWidget *parent = 0);
    ~PaletteEditDialog();

    QPalette selectedPalette() const;

signals:
    void paletteChanged(const QPalette &p);

private slots:
    void on_tableWidget_itemClicked(QTableWidgetItem *item);
    void on_resetPaletteButton_clicked();
    void on_buildInactiveButton_clicked();
    void on_buildDisabledButton_clicked();

private:
    void setPalette(const QPalette &palette);
    void hideEvent(QHideEvent *);
    Ui::PaletteEditDialog *m_ui;
    QStyle *m_currentStyle;
};

#endif // PALETTEEDITDIALOG_H
bgstack15