Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 858a782334)
pull/34/head
Michele Calgaro 1 year ago
parent 786381a767
commit 4c58d618d3
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -48,7 +48,7 @@ bool CursorTracker::eventFilter(TQObject* object, TQEvent* _event) {
switch (_event->type()) {
case TQEvent::MouseMove: {
TQMouseEvent* event=TQT_TQMOUSEEVENT(_event);
if (widget->rect().contains(event->pos()) || (event->stateAfter() & Qt::LeftButton)) {
if (widget->rect().contains(event->pos()) || (event->stateAfter() & TQt::LeftButton)) {
show();
move(event->globalPos().x() + 15, event->globalPos().y() + 15);
} else {

@ -958,10 +958,10 @@ void ImageView::performPaint( TQPainter* painter, int clipx, int clipy, int clip
void ImageView::viewportMousePressEvent(TQMouseEvent* event) {
viewport()->setFocus();
switch (event->button()) {
case Qt::LeftButton:
case TQt::LeftButton:
d->mTools[d->mToolID]->leftButtonPressEvent(event);
break;
case Qt::RightButton:
case TQt::RightButton:
d->mTools[d->mToolID]->rightButtonPressEvent(event);
break;
default: // Avoid compiler complain
@ -978,8 +978,8 @@ void ImageView::viewportMouseMoveEvent(TQMouseEvent* event) {
void ImageView::viewportMouseReleaseEvent(TQMouseEvent* event) {
switch (event->button()) {
case Qt::LeftButton:
if (event->stateAfter() & Qt::RightButton) {
case TQt::LeftButton:
if (event->stateAfter() & TQt::RightButton) {
d->mOperaLikePrevious=true;
emit selectPrevious();
return;
@ -987,12 +987,12 @@ void ImageView::viewportMouseReleaseEvent(TQMouseEvent* event) {
d->mTools[d->mToolID]->leftButtonReleaseEvent(event);
break;
case Qt::MidButton:
case TQt::MidButton:
d->mTools[d->mToolID]->midButtonReleaseEvent(event);
break;
case Qt::RightButton:
if (event->stateAfter() & Qt::LeftButton) {
case TQt::RightButton:
if (event->stateAfter() & TQt::LeftButton) {
emit selectNext();
return;
}
@ -1062,7 +1062,7 @@ void ImageView::keyPressEvent( TQKeyEvent *event ) {
TQScrollView::keyPressEvent( event );
int deltaX, deltaY;
if (event->state() != Qt::NoButton) {
if (event->state() != TQt::NoButton) {
return;
}
switch (event->key()) {

@ -68,7 +68,7 @@ GVDirPart::GVDirPart(TQWidget* parentWidget, const char* /*widgetName*/, TQObjec
mBrowserExtension = new GVDirPartBrowserExtension(this);
mSplitter = new TQSplitter(Qt::Horizontal, parentWidget, "gwenview-kpart-splitter");
mSplitter = new TQSplitter(TQt::Horizontal, parentWidget, "gwenview-kpart-splitter");
mSplitter->setFocusPolicy(TQWidget::ClickFocus);
mSplitter->setOpaqueResize(true);

Loading…
Cancel
Save