Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/listpanelframe.h
Show All 35 Lines | |||||
36 | public: | 36 | public: | ||
37 | ListPanelFrame(QWidget *parent, QString color); | 37 | ListPanelFrame(QWidget *parent, QString color); | ||
38 | 38 | | |||
39 | signals: | 39 | signals: | ||
40 | void dropped(QDropEvent*, QWidget*); /**< emitted when someone drops URL onto the frame */ | 40 | void dropped(QDropEvent*, QWidget*); /**< emitted when someone drops URL onto the frame */ | ||
41 | 41 | | |||
42 | protected slots: | 42 | protected slots: | ||
43 | void colorsChanged(); | 43 | void colorsChanged(); | ||
44 | | ||||
45 | public slots: | ||||
44 | void refreshColors(bool active); | 46 | void refreshColors(bool active); | ||
45 | 47 | | |||
46 | protected: | 48 | protected: | ||
47 | QColor getColor(KConfigGroup &cg, QString name, const QColor &def, const QColor &kdedef); | 49 | QColor getColor(KConfigGroup &cg, QString name, const QColor &def, const QColor &kdedef); | ||
48 | 50 | | |||
49 | virtual void dropEvent(QDropEvent *e) Q_DECL_OVERRIDE { | 51 | virtual void dropEvent(QDropEvent *e) Q_DECL_OVERRIDE { | ||
50 | emit dropped(e, this); | 52 | emit dropped(e, this); | ||
51 | } | 53 | } | ||
52 | virtual void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE; | 54 | virtual void dragEnterEvent(QDragEnterEvent*) Q_DECL_OVERRIDE; | ||
53 | 55 | | |||
54 | QString color; | 56 | QString color; | ||
55 | QPalette palActive, palInactive; | 57 | QPalette palActive, palInactive; | ||
56 | }; | 58 | }; | ||
57 | 59 | | |||
58 | #endif // LISTPANELFRAME_H | 60 | #endif // LISTPANELFRAME_H |