File indexing completed on 2024-12-08 09:41:10
0001 /* 0002 SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KURLNAVIGATORDROPDOWNBUTTON_P_H 0008 #define KURLNAVIGATORDROPDOWNBUTTON_P_H 0009 0010 #include "kurlnavigatorbuttonbase_p.h" 0011 0012 class KUrlNavigator; 0013 0014 namespace KDEPrivate 0015 { 0016 /** 0017 * @brief Button of the URL navigator which offers a drop down menu 0018 * of hidden paths. 0019 * 0020 * The button will only be shown if the width of the URL navigator is 0021 * too small to show the whole path. 0022 */ 0023 class KUrlNavigatorDropDownButton : public KUrlNavigatorButtonBase 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit KUrlNavigatorDropDownButton(KUrlNavigator *parent); 0029 ~KUrlNavigatorDropDownButton() override; 0030 0031 /** @see QWidget::sizeHint() */ 0032 QSize sizeHint() const override; 0033 0034 protected: 0035 void keyPressEvent(QKeyEvent *event) override; 0036 void paintEvent(QPaintEvent *event) override; 0037 }; 0038 0039 } // namespace KDEPrivate 0040 0041 #endif