blob: 7bebff74f6e500be77ce30b4a6c5ecec0b749430 (
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
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef STYLESHEETDIALOG_H
#define STYLESHEETDIALOG_H
#include <QDialog>
#include <QListWidgetItem>
QT_BEGIN_NAMESPACE
namespace Ui {
class StylesheetDialog;
}
QT_END_NAMESPACE
typedef QPair<QString, bool> StyleSheet; // <source, isEnabled>
Q_DECLARE_METATYPE(StyleSheet);
class StylesheetDialog : public QDialog
{
Q_OBJECT
public:
explicit StylesheetDialog(QWidget *parent = 0);
~StylesheetDialog();
private slots:
void currentStyleSheetChanged(QListWidgetItem *current, QListWidgetItem *previous);
void listItemClicked(QListWidgetItem *item);
void fileNameChanged(const QString &text);
void addButtonClicked();
void removeButtonClicked();
private:
Ui::StylesheetDialog *ui;
};
#endif // STYLESHEETDIALOG_H
|