diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 14:11:34 +0300 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-03-30 14:11:34 +0300 |
commit | d991b7f387775dc1071fb0c0af78de1c613ca991 (patch) | |
tree | eb7c978130acb1b2c93eeea98be2f647372c6fac /src/komposefullscreenwidget.cpp | |
parent | 1bd3c5b42f1570b2100a4986f638f2723ee37ec4 (diff) | |
download | kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.tar.gz kompose-d991b7f387775dc1071fb0c0af78de1c613ca991.zip |
Qt3->TQt conversion.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/komposefullscreenwidget.cpp')
-rw-r--r-- | src/komposefullscreenwidget.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
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 <qobjectlist.h> -#include <qptrlist.h> -#include <qpainter.h> -#include <qdesktopwidget.h> +#include <tqobjectlist.h> +#include <tqptrlist.h> +#include <tqpainter.h> +#include <tqdesktopwidget.h> #include <kwin.h> #include <kapplication.h> @@ -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<KomposeWidget> it( *(layout->getManagedWidgets())); + TQPtrListIterator<KomposeWidget> it( *(layout->getManagedWidgets())); while ( (child = it.current()) != 0 ) { ++it; layout->remove(child); - dynamic_cast<QWidget*>(child)->deleteLater(); + dynamic_cast<TQWidget*>(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(); // } |