From 3f54c935a86d4444d954f193743db6897a5b91b2 Mon Sep 17 00:00:00 2001
From: Lasse Holmstedt <lasse.holmstedt@nokia.com>
Date: Wed, 17 Mar 2010 16:43:06 +0100
Subject: [PATCH] Fixed compilation warnings

Reviewed-by: thartman
---
 .../qmldesigner/components/propertyeditor/propertyeditor.cpp  | 4 ++--
 .../qmldesigner/components/propertyeditor/propertyeditor.h    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
index 123d2e0f785..dc922630b02 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.cpp
@@ -871,9 +871,9 @@ QString PropertyEditor::locateQmlFile(const QString &relativePath) const
 
 CollapseButton::CollapseButton(QWidget *parent) : QWidget(parent), m_collapsed(false), m_hovered(false),
                                   m_pixmap_normal(":/qmldesigner/images/collapse-button-normal.png"),
+                                  m_pixmap_hover(":/qmldesigner/images/collapse-button-hover.png"),
                                   m_pixmap_normal_mirrored(":/qmldesigner/images/collapse-button-normal-mirrored.png"),
-                                  m_pixmap_hover_mirrored(":/qmldesigner/images/collapse-button-hover-mirrored.png"),
-                                  m_pixmap_hover(":/qmldesigner/images/collapse-button-hover.png")
+                                  m_pixmap_hover_mirrored(":/qmldesigner/images/collapse-button-hover-mirrored.png")
 {
     setFixedWidth(20);
     setFixedHeight(81);
diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.h b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.h
index 35a81df4c78..f50ef38abeb 100644
--- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.h
+++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.h
@@ -175,7 +175,7 @@ signals:
 protected:
     void paintEvent(QPaintEvent *event);
 
-    void mousePressEvent(QMouseEvent *e)
+    void mousePressEvent(QMouseEvent *)
     {
         if (m_collapsed) {
             m_collapsed = false;
-- 
GitLab