|
|
|
@ -84,11 +84,11 @@ TQextScintillaBase::TQextScintillaBase(TQWidget *parent,const char *name,WFlags
|
|
|
|
|
txtarea -> setFocusProxy(this);
|
|
|
|
|
layout -> addWidget(txtarea,0,0);
|
|
|
|
|
|
|
|
|
|
vsb = new TQScrollBar(Qt::Vertical,this);
|
|
|
|
|
vsb = new TQScrollBar(TQt::Vertical,this);
|
|
|
|
|
layout -> addWidget(vsb,0,1);
|
|
|
|
|
connect(vsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleVSb(int)));
|
|
|
|
|
|
|
|
|
|
hsb = new TQScrollBar(Qt::Horizontal,this);
|
|
|
|
|
hsb = new TQScrollBar(TQt::Horizontal,this);
|
|
|
|
|
layout -> addWidget(hsb,1,0);
|
|
|
|
|
connect(hsb,TQT_SIGNAL(valueChanged(int)),TQT_SLOT(handleHSb(int)));
|
|
|
|
|
|
|
|
|
@ -390,9 +390,9 @@ void TQextScintillaBase::mouseWheel(TQWheelEvent *we)
|
|
|
|
|
{
|
|
|
|
|
setFocus();
|
|
|
|
|
|
|
|
|
|
if (we -> orientation() == Qt::Horizontal || we -> state() & ShiftButton)
|
|
|
|
|
if (we -> orientation() == TQt::Horizontal || we -> state() & ShiftButton)
|
|
|
|
|
TQApplication::sendEvent(hsb,we);
|
|
|
|
|
else if (we -> orientation() == Qt::Vertical)
|
|
|
|
|
else if (we -> orientation() == TQt::Vertical)
|
|
|
|
|
TQApplication::sendEvent(vsb,we);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|