aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Tomasz Moń2008-06-16 22:33:37 +0000
committerGravatar Tomasz Moń2008-06-16 22:33:37 +0000
commitabd233d6344d4549b6c6bb359af0acca9f958894 (patch)
tree11034438e5cb214b3befec80b960f8c32a8ef0d6 /src
parentfix multiline editor not showing up (diff)
downloadKVIrc-abd233d6344d4549b6c6bb359af0acca9f958894.tar.gz
KVIrc-abd233d6344d4549b6c6bb359af0acca9f958894.tar.bz2
KVIrc-abd233d6344d4549b6c6bb359af0acca9f958894.zip
modifiers() apply to keyboard events, for mouse events there's buttons()
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1927 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/ui/kvi_ircview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kvirc/ui/kvi_ircview.cpp b/src/kvirc/ui/kvi_ircview.cpp
index ebe9fab0c..734197c74 100644
--- a/src/kvirc/ui/kvi_ircview.cpp
+++ b/src/kvirc/ui/kvi_ircview.cpp
@@ -346,7 +346,7 @@ KviIrcView::KviIrcView(QWidget *parent,KviFrame *pFrm,KviWindow *pWnd)
m_pToolTip = new KviIrcViewToolTip(this);
// Create the scroll bar
-/*int minValue, int maxValue, int lineStep, int pageStep,
+/*int minValue, int maxValue, int lineStep, int pageStep,
int value, Qt::Orientation, QWidget *parent=0, const char* name = 0);
*/
m_pScrollBar = new QScrollBar(Qt::Vertical,this);
@@ -4774,7 +4774,7 @@ void KviIrcView::mouseReleaseEvent(QMouseEvent *)
void KviIrcView::mouseMoveEvent(QMouseEvent *e)
{
// debug("Pos : %d,%d",e->pos().x(),e->pos().y());
- if(m_bMouseIsDown && (e->modifiers() & Qt::LeftButton)) // m_bMouseIsDown MUST BE true...(otherwise the mouse entered the window with the button pressed ?)
+ if(m_bMouseIsDown && (e->buttons() & Qt::LeftButton)) // m_bMouseIsDown MUST BE true...(otherwise the mouse entered the window with the button pressed ?)
{
if(m_iSelectTimer == 0)m_iSelectTimer = startTimer(KVI_IRCVIEW_SELECT_REPAINT_INTERVAL);