Changeset View
Changeset View
Standalone View
Standalone View
libs/kasten/gui/shell/viewareabox.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
49 | QWidget* bottomWidget() const; | 49 | QWidget* bottomWidget() const; | ||
50 | 50 | | |||
51 | public: | 51 | public: | ||
52 | /// does not take ownership of @p centralWidget, can be 0. | 52 | /// does not take ownership of @p centralWidget, can be 0. | ||
53 | void setCentralWidget( QWidget* centralWidget ); | 53 | void setCentralWidget( QWidget* centralWidget ); | ||
54 | /// takes ownership of @p bottomWidget, deletes current bottom widget. Can be 0. | 54 | /// takes ownership of @p bottomWidget, deletes current bottom widget. Can be 0. | ||
55 | void setBottomWidget( QWidget* bottomWidget ); | 55 | void setBottomWidget( QWidget* bottomWidget ); | ||
56 | 56 | | |||
57 | Q_SIGNALS: | ||||
58 | void receivedDropEvent( QDropEvent* event ); | ||||
59 | | ||||
57 | protected Q_SLOTS: | 60 | protected Q_SLOTS: | ||
58 | void onDone(); | 61 | void onDone(); | ||
59 | 62 | | |||
60 | protected: | 63 | protected: | ||
64 | void dragEnterEvent( QDragEnterEvent* event ) override; | ||||
65 | void dropEvent( QDropEvent* event ) override; | ||||
66 | | ||||
67 | protected: | ||||
61 | QWidget* mCentralWidget; | 68 | QWidget* mCentralWidget; | ||
62 | 69 | | |||
63 | QWidget* mBottomWidget; | 70 | QWidget* mBottomWidget; | ||
64 | QShortcut* mEscapeShortcut; | 71 | QShortcut* mEscapeShortcut; | ||
65 | }; | 72 | }; | ||
66 | 73 | | |||
67 | } | 74 | } | ||
68 | 75 | | |||
69 | #endif | 76 | #endif |