Changeset 784 for trunk/src/gui/kernel
- Timestamp:
- Oct 7, 2010, 12:17:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qapplication_pm.cpp
r748 r784 1747 1747 bool QETWidget::translateMouseEvent(const QMSG &qmsg) 1748 1748 { 1749 #if defined(QT_DEBUGMSGFLOW) && 01750 static const char *msgNames[] = { // 11 items1751 "WM_MOUSEMOVE",1752 "WM_BUTTON1DOWN", "WM_BUTTON1UP", "WM_BUTTON1DBLCLK",1753 "WM_BUTTON2DOWN", "WM_BUTTON2UP", "WM_BUTTON2DBLCLK",1754 "WM_BUTTON3DOWN", "WM_BUTTON3UP", "WM_BUTTON3DBLCLK",1755 "WM_???"1756 };1757 int msgIdx = qmsg.msg - WM_MOUSEMOVE;1758 if (msgIdx < 0 || msgIdx > 9)1759 msgIdx = 10;1760 qDebug("%s (%04lX): [%08lX/%p:%s] %04hd,%04hd hit=%04hX fl=%04hX",1761 msgNames[msgIdx], qmsg.msg, qmsg.hwnd, this, widgetName(this),1762 SHORT1FROMMP(qmsg.mp1), SHORT2FROMMP(qmsg.mp1),1763 SHORT1FROMMP(qmsg.mp2), SHORT2FROMMP(qmsg.mp2));1764 #endif1765 1766 1749 if (!isWindow() && testAttribute(Qt::WA_NativeWindow)) 1767 1750 Q_ASSERT(internalWinId() != NULLHANDLE); … … 2629 2612 debug.nospace() << "SWP(" << swp.x << "," << swp.y 2630 2613 << " " << swp.cx << "x" << swp.cy << " " 2631 << qDebugFmtHex(swp.hwndInsertBehind) 2614 << qDebugFmtHex(swp.hwndInsertBehind) 2632 2615 << fl.constData() << ")"; 2633 2616 return debug.space(); … … 2640 2623 #define myCaseEnd() } 2641 2624 2625 2626 2642 2627 switch (qmsg.msg) { 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2643 2661 2644 2662 myCaseBegin(WM_CHAR) … … 2764 2782 myCaseEnd() 2765 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2766 2799 default: 2767 2800 debug.nospace() << "WM_" << qDebugFmtHex(qmsg.msg) << ":"; … … 2771 2804 } 2772 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2773 2840 return debug; 2774 2841
Note:
See TracChangeset
for help on using the changeset viewer.