Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp	(revision 59334)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.cpp	(revision 59335)
@@ -200,4 +200,5 @@
 
 #ifdef Q_WS_WIN
+# if QT_VERSION < 0x050000
 bool UIMachineWindowScale::winEvent(MSG *pMessage, long *pResult)
 {
@@ -244,4 +245,5 @@
     return UIMachineWindow::winEvent(pMessage, pResult);
 }
+# endif /* QT_VERSION < 0x050000 */
 #endif /* Q_WS_WIN */
 
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h	(revision 59334)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineWindowScale.h	(revision 59335)
@@ -57,6 +57,8 @@
     bool event(QEvent *pEvent);
 #ifdef Q_WS_WIN
-    /** Windows: Common native @a pEvent handler. */
+# if QT_VERSION < 0x050000
+    /** Qt4: Win: Handles all native messages. */
     bool winEvent(MSG *pMessage, long *pResult);
+# endif /* QT_VERSION < 0x050000 */
 #endif /* Q_WS_WIN */
 
