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 | * @brief Button of the URL navigator which offers a drop down menu |
18 | * of hidden paths. |
19 | * |
20 | * The button will only be shown if the width of the URL navigator is |
21 | * too small to show the whole path. |
22 | */ |
23 | class KUrlNavigatorDropDownButton : public KUrlNavigatorButtonBase |
24 | { |
25 | Q_OBJECT |
26 | |
27 | public: |
28 | explicit KUrlNavigatorDropDownButton(KUrlNavigator *parent); |
29 | ~KUrlNavigatorDropDownButton() override; |
30 | |
31 | /** @see QWidget::sizeHint() */ |
32 | QSize sizeHint() const override; |
33 | |
34 | protected: |
35 | void keyPressEvent(QKeyEvent *event) override; |
36 | void paintEvent(QPaintEvent *event) override; |
37 | }; |
38 | |
39 | } // namespace KDEPrivate |
40 | |
41 | #endif |
42 | |