From d991b7f387775dc1071fb0c0af78de1c613ca991 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Tue, 30 Mar 2021 14:11:34 +0300 Subject: Qt3->TQt conversion. Signed-off-by: Mavridis Philippe --- src/komposefullscreenwidget.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/komposefullscreenwidget.cpp') diff --git a/src/komposefullscreenwidget.cpp b/src/komposefullscreenwidget.cpp index 9c8f3e0..07229a7 100644 --- a/src/komposefullscreenwidget.cpp +++ b/src/komposefullscreenwidget.cpp @@ -18,10 +18,10 @@ #include "komposeglobal.h" #include "komposelayout.h" -#include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -38,14 +38,14 @@ KomposeFullscreenWidget::KomposeFullscreenWidget( int displayType, KomposeLayout : KomposeTaskContainerWidget( -1, 0, l ), type(displayType) { - // if ( QT_VERSION < 0x030300 ) + // if ( TQT_VERSION < 0x030300 ) /* use showMaximized instead of setWindowState to make it compile on qt 3.1 or whatever */ // showMaximized(); // KWin::setState( winId(), NET::KeepAbove ); // Set Desktop background as our background - setBackgroundMode( Qt::FixedPixmap ); + setBackgroundMode( TQt::FixedPixmap ); // setBackgroundPixmap(*(KomposeGlobal::instance()->getDesktopBgPixmap())); rootpix = new KRootPixmap (this); rootpix->start(); @@ -62,14 +62,14 @@ KomposeFullscreenWidget::KomposeFullscreenWidget( int displayType, KomposeLayout setGeometry( KGlobalSettings::desktopGeometry( this ) ); else { - QDesktopWidget deskwidget; - QRect deskRect = deskwidget.screenGeometry(KomposeSettings::instance()->getViewScreen()); + TQDesktopWidget deskwidget; + TQRect deskRect = deskwidget.screenGeometry(KomposeSettings::instance()->getViewScreen()); setGeometry(deskRect); kdDebug() << deskRect << endl; } if (!isTopLevel()) - QApplication::sendPostedEvents(this, QEvent::ShowFullScreen); + TQApplication::sendPostedEvents(this, TQEvent::ShowFullScreen); setActiveWindow(); KWin::setOnAllDesktops( winId(), true ); @@ -101,12 +101,12 @@ void KomposeFullscreenWidget::destroyChildWidgets() { setUpdatesEnabled( false ); KomposeWidget *child; - QPtrListIterator it( *(layout->getManagedWidgets())); + TQPtrListIterator it( *(layout->getManagedWidgets())); while ( (child = it.current()) != 0 ) { ++it; layout->remove(child); - dynamic_cast(child)->deleteLater(); + dynamic_cast(child)->deleteLater(); } setUpdatesEnabled( true ); kdDebug() << "KomposeFullscreenWidget::destroyChildWidgets() - all children destroyed" << endl; @@ -158,10 +158,10 @@ void KomposeFullscreenWidget::createDesktopWidgets() } } -void KomposeFullscreenWidget::mouseReleaseEvent (QMouseEvent * ) +void KomposeFullscreenWidget::mouseReleaseEvent (TQMouseEvent * ) {} -void KomposeFullscreenWidget::mousePressEvent ( QMouseEvent * e ) +void KomposeFullscreenWidget::mousePressEvent ( TQMouseEvent * e ) { if ( !rect().contains( e->pos() ) ) return; @@ -181,9 +181,9 @@ void KomposeFullscreenWidget::mousePressEvent ( QMouseEvent * e ) } } -void KomposeFullscreenWidget::keyReleaseEvent ( QKeyEvent * e ) +void KomposeFullscreenWidget::keyReleaseEvent ( TQKeyEvent * e ) { - if ( e->key() == Qt::Key_Escape ) + if ( e->key() == TQt::Key_Escape ) { kdDebug() << "KomposeFullscreenWidget::keyReleaseEvent - Esc key pressed - Closing view" << endl; KomposeViewManager::instance()->closeCurrentView(); @@ -212,9 +212,9 @@ double KomposeFullscreenWidget::getAspectRatio() return (double)width() / (double)height(); } -// void KomposeFullscreenWidget::paintEvent ( QPaintEvent * ) +// void KomposeFullscreenWidget::paintEvent ( TQPaintEvent * ) // { -// QPainter p( this ); +// TQPainter p( this ); // p.drawPixmap(rect(), *(KomposeGlobal::instance()->getDesktopBgPixmap())); // p.end(); // } -- cgit v1.2.1