[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/krita/plugins/colorrange
From:       Melchior Franz <mfranz () kde ! org>
Date:       2005-04-28 8:32:43
Message-ID: 20050428083243.98558662 () office ! kde ! org
[Download RAW message or body]

CVS commit by mfranz: 

use correct flags for keyboardModifiers() (Thanks to David Faure).
It looks, though, as if this won't be necessary any more, anyway, after
un-brain-damaging KisToolPaint::keyPress().


  M +2 -1      kis_tool_selectpicker.cc   1.15


--- koffice/krita/plugins/colorrange/kis_tool_selectpicker.cc  #1.14:1.15
@@ -173,5 +173,6 @@ void KisToolSelectPicker::slotTimer()
         int state = kapp->keyboardMouseState() & (Qt::ShiftButton|Qt::ControlButton|Qt::AltButton);
 #else
-        int state = kapp->keyboardModifiers() & (Qt::ShiftButton|Qt::ControlButton|Qt::AltButton);
+        int state = kapp->keyboardModifiers() & (KApplication::ShiftModifier
+                        |KApplication::ControlModifier|KApplication::Modifier1);
 #endif
         enumSelectionMode action;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic