-
-
Notifications
You must be signed in to change notification settings - Fork 315
/
allnotebuttontreedelegateeditor.h
43 lines (38 loc) · 1.18 KB
/
allnotebuttontreedelegateeditor.h
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
41
42
43
#ifndef ALLNOTEBUTTONTREEDELEGATEEDITOR_H
#define ALLNOTEBUTTONTREEDELEGATEEDITOR_H
#include <QWidget>
#include <QStyleOptionViewItem>
#include <QModelIndex>
#include <QFont>
#include "editorsettingsoptions.h"
class QTreeView;
class QListView;
class AllNoteButtonTreeDelegateEditor : public QWidget
{
Q_OBJECT
public:
explicit AllNoteButtonTreeDelegateEditor(QTreeView *view, const QStyleOptionViewItem &option,
const QModelIndex &index, QListView *listView,
QWidget *parent = nullptr);
void setTheme(Theme::Value theme);
private:
QStyleOptionViewItem m_option;
QModelIndex m_index;
QString m_displayFont;
QFont m_titleFont;
QFont m_numberOfNotesFont;
QColor m_titleColor;
QColor m_titleSelectedColor;
QColor m_activeColor;
QColor m_hoverColor;
QColor m_folderIconColor;
QColor m_numberOfNotesColor;
QColor m_numberOfNotesSelectedColor;
QTreeView *m_view;
QListView *m_listView;
Theme::Value m_theme;
// QWidget interface
protected:
virtual void paintEvent(QPaintEvent *event) override;
};
#endif // ALLNOTEBUTTONTREEDELEGATEEDITOR_H