@ -3263,20 +3263,36 @@ void KateViewInternal::clear()
void KateViewInternal : : wheelEvent ( TQWheelEvent * e )
{
if ( m_lineScroll - > minValue ( ) ! = m_lineScroll - > maxValue ( ) & & e - > orientation ( ) ! = Qt : : Horizontal ) {
if ( e - > state ( ) & ControlButton )
{
if ( e - > delta ( ) > 0 )
{
slotIncFontSizes ( ) ;
}
else
{
slotDecFontSizes ( ) ;
}
}
else
{
if ( m_lineScroll - > minValue ( ) ! = m_lineScroll - > maxValue ( ) & & e - > orientation ( ) ! = Qt : : Horizontal )
{
// React to this as a vertical event
if ( ( e - > state ( ) & ControlButton ) | | ( e - > state ( ) & ShiftButton ) ) {
if ( e - > state ( ) & ShiftButton )
{
if ( e - > delta ( ) > 0 )
scrollPrevPage ( ) ;
else
scrollNextPage ( ) ;
} else {
}
else
{
scrollViewLines ( - ( ( e - > delta ( ) / 120 ) * TQApplication : : wheelScrollLines ( ) ) ) ;
// maybe a menu was opened or a bubbled window title is on us -> we shall erase it
update ( ) ;
leftBorder - > update ( ) ;
}
} else if ( columnScrollingPossible ( ) ) {
TQWheelEvent copy = * e ;
TQApplication : : sendEvent ( m_columnScroll , & copy ) ;
@ -3285,6 +3301,7 @@ void KateViewInternal::wheelEvent(TQWheelEvent* e)
e - > ignore ( ) ;
}
}
}
void KateViewInternal : : startDragScroll ( )
{