Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 09:27:01

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QSTATUSBAR_H
0006 #define QSTATUSBAR_H
0007 
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 #include <QtWidgets/qwidget.h>
0010 
0011 QT_REQUIRE_CONFIG(statusbar);
0012 
0013 QT_BEGIN_NAMESPACE
0014 
0015 class QStatusBarPrivate;
0016 
0017 class Q_WIDGETS_EXPORT QStatusBar: public QWidget
0018 {
0019     Q_OBJECT
0020 
0021     Q_PROPERTY(bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled)
0022 
0023 public:
0024     explicit QStatusBar(QWidget *parent = nullptr);
0025     virtual ~QStatusBar();
0026 
0027     void addWidget(QWidget *widget, int stretch = 0);
0028     int insertWidget(int index, QWidget *widget, int stretch = 0);
0029     void addPermanentWidget(QWidget *widget, int stretch = 0);
0030     int insertPermanentWidget(int index, QWidget *widget, int stretch = 0);
0031     void removeWidget(QWidget *widget);
0032 
0033     void setSizeGripEnabled(bool);
0034     bool isSizeGripEnabled() const;
0035 
0036     QString currentMessage() const;
0037 
0038 public Q_SLOTS:
0039     void showMessage(const QString &text, int timeout = 0);
0040     void clearMessage();
0041 
0042 
0043 Q_SIGNALS:
0044     void messageChanged(const QString &text);
0045 
0046 protected:
0047     void showEvent(QShowEvent *) override;
0048     void paintEvent(QPaintEvent *) override;
0049     void resizeEvent(QResizeEvent *) override;
0050 
0051     void reformat();
0052     void hideOrShow();
0053     bool event(QEvent *) override;
0054 
0055 private:
0056     Q_DISABLE_COPY(QStatusBar)
0057     Q_DECLARE_PRIVATE(QStatusBar)
0058 };
0059 
0060 QT_END_NAMESPACE
0061 
0062 #endif // QSTATUSBAR_H