diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.h b/src/plugins/qmldesigner/components/propertyeditor/propertyeditor.h
index f50ef38abebf24406e23b3530b2ba25d3a3c45d1..730db75dc37e4052b8044f6aa1e0dda017ddb9a0 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 *)
+    void mouseReleaseEvent(QMouseEvent *)
     {
         if (m_collapsed) {
             m_collapsed = false;