comparison libgui/qterminal/libqterminal/win32/QWinTerminalImpl.h @ 18661:8b9e99c061f9 gui-release

GUI: Windows GUI terminal support for double click (Bug #41468) * libgui/qterminal/libqterminal/win32/QWinTerminalImpl.h, libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp (QConsolePrivate::selectWord): New function. (QConsolePrivate::selectLine): New function. (QWinTerminalImpl::QWinTerminalImpl): init new allowTripleClick variable. (QWinTerminalImpl::mousePressEvent): call mouseTripleClickEvent ifallowTripleClick is set. (QWinTerminalImpl::mouseReleaseEvent): only process if settingSelection is true. (QWinTerminalImpl::mouseDoubleClickEvent): New function. (QWinTerminalImpl::mouseTripleClickEvent): New function. (QWinTerminalImpl::tripleClickTimeout): New slot.
author John Donoghue <john.donoghue@ieee.org>
date Fri, 18 Apr 2014 15:04:39 -0400
parents 41489b96ebca
children
comparison
equal deleted inserted replaced
18656:1b289f45187f 18661:8b9e99c061f9
88 void keyPressEvent (QKeyEvent*); 88 void keyPressEvent (QKeyEvent*);
89 virtual void start (void); 89 virtual void start (void);
90 void mouseMoveEvent (QMouseEvent *event); 90 void mouseMoveEvent (QMouseEvent *event);
91 void mousePressEvent (QMouseEvent *event); 91 void mousePressEvent (QMouseEvent *event);
92 void mouseReleaseEvent (QMouseEvent *event); 92 void mouseReleaseEvent (QMouseEvent *event);
93 void mouseDoubleClickEvent (QMouseEvent* event);
94 void mouseTripleClickEvent (QMouseEvent* event);
93 95
94 bool eventFilter(QObject *obj, QEvent *ev); 96 bool eventFilter(QObject *obj, QEvent *ev);
95 97
96 void dragEnterEvent(QDragEnterEvent *event); 98 void dragEnterEvent(QDragEnterEvent *event);
97 void dropEvent(QDropEvent *event); 99 void dropEvent(QDropEvent *event);
98 100
99 private slots: 101 private slots:
100 void scrollValueChanged (int value); 102 void scrollValueChanged (int value);
101 void monitorConsole (void); 103 void monitorConsole (void);
102 void updateSelection (void); 104 void updateSelection (void);
105 void tripleClickTimeout (void);
103 106
104 private: 107 private:
105 QConsolePrivate* d; 108 QConsolePrivate* d;
109 bool allowTripleClick;
106 }; 110 };
107 111
108 ////////////////////////////////////////////////////////////////////////////// 112 //////////////////////////////////////////////////////////////////////////////
109 113
110 #endif // __QConsole_h__ 114 #endif // __QConsole_h__