1 | /* |
2 | SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at> |
3 | |
4 | SPDX-License-Identifier: LGPL-2.0-or-later |
5 | */ |
6 | |
7 | #ifndef KURLNAVIGATORDROPDOWNBUTTON_P_H |
8 | #define KURLNAVIGATORDROPDOWNBUTTON_P_H |
9 | |
10 | #include "kurlnavigatorbuttonbase_p.h" |
11 | |
12 | class KUrlNavigator; |
13 | |
14 | namespace KDEPrivate |
15 | { |
16 | /*! |
17 | * Button of the URL navigator which offers a drop down menu |
18 | * of the hidden portion of the path. |
19 | * |
20 | * The button will only be shown if the width of the URL navigator is |
21 | * too small to show the whole path or if some part of the path is |
22 | * expected to be a known location like "home". |
23 | * |
24 | * \internal |
25 | */ |
26 | class KUrlNavigatorDropDownButton : public KUrlNavigatorButtonBase |
27 | { |
28 | Q_OBJECT |
29 | |
30 | public: |
31 | explicit KUrlNavigatorDropDownButton(KUrlNavigator *parent); |
32 | ~KUrlNavigatorDropDownButton() override; |
33 | |
34 | QSize sizeHint() const override; |
35 | |
36 | protected: |
37 | void keyPressEvent(QKeyEvent *event) override; |
38 | void paintEvent(QPaintEvent *event) override; |
39 | }; |
40 | |
41 | } // namespace KDEPrivate |
42 | |
43 | #endif |
44 | |