]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/panel.h
Fix selection rect after porting from QFontMetrics::width()
[dolphin.git] / src / panels / panel.h
index d3460bf130d1351cb208ccf160b7d1a8c09ce647..ec3405ad2578ed2692034b5e05268ca42c6ebd85 100644 (file)
@@ -21,8 +21,8 @@
 #ifndef PANEL_H
 #define PANEL_H
 
-#include <QWidget>
 #include <QUrl>
+#include <QWidget>
 
 /**
  * @brief Base widget for all panels that can be docked on the window borders.
@@ -35,8 +35,8 @@ class Panel : public QWidget
     Q_OBJECT
 
 public:
-    explicit Panel(QWidget* parent = 0);
-    virtual ~Panel();
+    explicit Panel(QWidget* parent = nullptr);
+    ~Panel() override;
 
     /** Returns the current set URL of the active Dolphin view. */
     QUrl url() const;
@@ -49,7 +49,7 @@ public:
     void setCustomContextMenuActions(const QList<QAction*>& actions);
     QList<QAction*> customContextMenuActions() const;
 
-    virtual QSize sizeHint() const Q_DECL_OVERRIDE;
+    QSize sizeHint() const override;
 
 public slots:
     /**