File indexing completed on 2024-04-28 15:40:11
0001 // SPDX-FileCopyrightText: 2003-2022 Jesper K. Pedersen <blackie@kde.org> 0002 // 0003 // SPDX-License-Identifier: GPL-2.0-or-later 0004 0005 #ifndef BREADCRUMBVIEWER_H 0006 #define BREADCRUMBVIEWER_H 0007 #include <Browser/BreadcrumbList.h> 0008 0009 #include <QLabel> 0010 0011 namespace MainWindow 0012 { 0013 class BreadcrumbViewer : public QLabel 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 BreadcrumbViewer(); 0019 QSize minimumSizeHint() const override; 0020 0021 public Q_SLOTS: 0022 void setBreadcrumbs(const Browser::BreadcrumbList &list); 0023 0024 Q_SIGNALS: 0025 void widenToBreadcrumb(const Browser::Breadcrumb &); 0026 0027 protected: 0028 void resizeEvent(QResizeEvent *event) override; 0029 0030 private Q_SLOTS: 0031 void linkClicked(const QString &link); 0032 0033 private: 0034 void updateText(); 0035 0036 private: 0037 Browser::BreadcrumbList m_activeCrumbs; 0038 }; 0039 } 0040 0041 #endif /* BREADCRUMBVIEWER_H */ 0042 0043 // vi:expandtab:tabstop=4 shiftwidth=4: