summaryrefslogtreecommitdiffstats
path: root/tests/manual/examples/widgets/widgets/stylesheet/stylesheeteditor.h
blob: e61534a4f9a99e52f1ecbb5c1b38105da275c045 (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
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef STYLESHEETEDITOR_H
#define STYLESHEETEDITOR_H

#include <QDialog>

#include "ui_stylesheeteditor.h"

class StyleSheetEditor : public QDialog
{
    Q_OBJECT

public:
    StyleSheetEditor(QWidget *parent = nullptr);

private slots:
    void setStyleName(const QString &styleName);
    void setStyleSheetName(const QString &styleSheetName);
    void setModified();
    void apply();

private:
    void loadStyleSheet(const QString &sheetName);

    Ui::StyleSheetEditor ui;
};

#endif