|
|
|
@ -521,7 +521,7 @@ void SQ_GLWidget::matrixChanged()
|
|
|
|
|
*/
|
|
|
|
|
void SQ_GLWidget::wheelEvent(TQWheelEvent *e)
|
|
|
|
|
{
|
|
|
|
|
if(e->delta() < 0 && e->state() == Qt::NoButton)
|
|
|
|
|
if(e->delta() < 0 && e->state() == TQt::NoButton)
|
|
|
|
|
{
|
|
|
|
|
#ifndef KSQUIRREL_PART
|
|
|
|
|
SQ_Config::instance()->setGroup("GL view");
|
|
|
|
@ -534,7 +534,7 @@ void SQ_GLWidget::wheelEvent(TQWheelEvent *e)
|
|
|
|
|
|
|
|
|
|
slotZoomPlus();
|
|
|
|
|
}
|
|
|
|
|
else if(e->delta() > 0 && e->state() == Qt::NoButton)
|
|
|
|
|
else if(e->delta() > 0 && e->state() == TQt::NoButton)
|
|
|
|
|
{
|
|
|
|
|
#ifndef KSQUIRREL_PART
|
|
|
|
|
SQ_Config::instance()->setGroup("GL view");
|
|
|
|
@ -564,7 +564,7 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
|
|
|
|
|
setFocus();
|
|
|
|
|
|
|
|
|
|
// left button, update cursor
|
|
|
|
|
if(e->button() == Qt::LeftButton && e->state() == Qt::NoButton && tab->glselection == -1)
|
|
|
|
|
if(e->button() == TQt::LeftButton && e->state() == TQt::NoButton && tab->glselection == -1)
|
|
|
|
|
{
|
|
|
|
|
#ifndef KSQUIRREL_PART
|
|
|
|
|
TQTime t = TQTime::currentTime();
|
|
|
|
@ -593,7 +593,7 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
|
|
|
|
|
movetype = 1;
|
|
|
|
|
}
|
|
|
|
|
// left button + SHIFT, let's start drawing zoom frame
|
|
|
|
|
else if(e->button() == Qt::LeftButton && (e->state() == TQt::ShiftButton || tab->glselection != -1))
|
|
|
|
|
else if(e->button() == TQt::LeftButton && (e->state() == TQt::ShiftButton || tab->glselection != -1))
|
|
|
|
|
{
|
|
|
|
|
// stop animation!
|
|
|
|
|
stopAnimation();
|
|
|
|
@ -609,10 +609,10 @@ void SQ_GLWidget::mousePressEvent(TQMouseEvent *e)
|
|
|
|
|
movetype = 2;
|
|
|
|
|
}
|
|
|
|
|
// right button - show context menu
|
|
|
|
|
else if(e->button() == Qt::RightButton)
|
|
|
|
|
else if(e->button() == TQt::RightButton)
|
|
|
|
|
menu->popup(TQCursor::pos());
|
|
|
|
|
// middle button - toggle fullscreen state
|
|
|
|
|
else if(e->button() == Qt::MidButton)
|
|
|
|
|
else if(e->button() == TQt::MidButton)
|
|
|
|
|
toggleFullScreen();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|