]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/statusbar/dolphinstatusbar.h
Adapt to frame change in Breeze
[dolphin.git] / src / statusbar / dolphinstatusbar.h
index 2474732f503a5bdb727cd446cf026df07243c286..983f5b6dac1d99d5cad80b28cc9dc7c4264ce547 100644 (file)
@@ -1,21 +1,8 @@
-/***************************************************************************
- *   Copyright (C) 2006-2012 by Peter Penz <peter.penz19@gmail.com>        *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
- ***************************************************************************/
+/*
+ * SPDX-FileCopyrightText: 2006-2012 Peter Penz <peter.penz19@gmail.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 
 #ifndef DOLPHINSTATUSBAR_H
 #define DOLPHINSTATUSBAR_H
@@ -43,7 +30,7 @@ class DolphinStatusBar : public QWidget
     Q_OBJECT
 
 public:
-    explicit DolphinStatusBar(QWidgetparent);
+    explicit DolphinStatusBar(QWidget *parent);
     ~DolphinStatusBar() override;
 
     QString text() const;
@@ -53,7 +40,7 @@ public:
      * DolphinStatusBar::setProgress() should be invoked
      * afterwards each time the progress changes.
      */
-    void setProgressText(const QStringtext);
+    void setProgressText(const QString &text);
     QString progressText() const;
 
     /**
@@ -76,7 +63,7 @@ public:
      * Sets the default text, which is shown if the status bar
      * is rest by DolphinStatusBar::resetToDefaultText().
      */
-    void setDefaultText(const QStringtext);
+    void setDefaultText(const QString &text);
     QString defaultText() const;
 
     QUrl url() const;
@@ -92,12 +79,12 @@ public:
      */
     void updateSpaceInfo();
 
-public slots:
-    void setText(const QStringtext);
-    void setUrl(const QUrlurl);
+public Q_SLOTS:
+    void setText(const QString &text);
+    void setUrl(const QUrl &url);
     void setZoomLevel(int zoomLevel);
 
-signals:
+Q_SIGNALS:
     /**
      * Is emitted if the stop-button has been pressed during showing a progress.
      */
@@ -106,9 +93,10 @@ signals:
     void zoomLevelChanged(int zoomLevel);
 
 protected:
-    void contextMenuEvent(QContextMenuEvent* event) override;
+    void contextMenuEvent(QContextMenuEvent *event) override;
+    void paintEvent(QPaintEvent *paintEvent) override;
 
-private slots:
+private Q_SLOTS:
     void showZoomSliderToolTip(int zoomLevel);
     void updateProgressInfo();
 
@@ -136,18 +124,19 @@ private:
 private:
     QString m_text;
     QString m_defaultText;
-    KSqueezedTextLabel* m_label;
-    StatusBarSpaceInfo* m_spaceInfo;
+    KSqueezedTextLabel *m_label;
+    QLabel *m_zoomLabel;
+    StatusBarSpaceInfo *m_spaceInfo;
 
-    QSliderm_zoomSlider;
+    QSlider *m_zoomSlider;
 
-    QLabelm_progressTextLabel;
-    QProgressBarm_progressBar;
-    QToolButtonm_stopButton;
+    QLabel *m_progressTextLabel;
+    QProgressBar *m_progressBar;
+    QToolButton *m_stopButton;
     int m_progress;
-    QTimerm_showProgressBarTimer;
+    QTimer *m_showProgressBarTimer;
 
-    QTimerm_delayUpdateTimer;
+    QTimer *m_delayUpdateTimer;
     QTime m_textTimestamp;
 };