File indexing completed on 2025-03-09 05:20:56
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2009 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_STATUSBAR_HPP 0010 #define KASTEN_STATUSBAR_HPP 0011 0012 // lib 0013 #include "kastengui_export.hpp" 0014 // Qt 0015 #include <QStatusBar> 0016 0017 namespace Kasten { 0018 0019 class StatusBarLayout; 0020 0021 class KASTENGUI_EXPORT StatusBar : public QStatusBar 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit StatusBar(QWidget* parent = nullptr); 0027 ~StatusBar() override; 0028 0029 public: // overwrite QStatusBar API 0030 void addWidget(QWidget* widget); 0031 0032 public: 0033 void updateLayout(); 0034 0035 protected: // QWidget API 0036 void changeEvent(QEvent* changeEvent) override; 0037 0038 private: 0039 StatusBarLayout* mLayout; 0040 }; 0041 0042 } 0043 0044 #endif