summaryrefslogtreecommitdiffstats
path: root/kpresenter
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:50:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:50:12 +0900
commit04e50e547f8ed2d6db996bc4816179fa962bd6b1 (patch)
tree5880f13b288d79e13e1a10f99c54b27bbe1fc942 /kpresenter
parentd1e35d25fca82e1d86a41895446f7aca8cdc3035 (diff)
downloadkoffice-04e50e547f8ed2d6db996bc4816179fa962bd6b1.tar.gz
koffice-04e50e547f8ed2d6db996bc4816179fa962bd6b1.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kpresenter')
-rw-r--r--kpresenter/KPrCanvas.cpp2
-rw-r--r--kpresenter/KPrPicturePreview.cpp2
-rw-r--r--kpresenter/KPrSideBar.cpp2
-rw-r--r--kpresenter/KPrTransEffectDia.cpp2
-rw-r--r--kpresenter/KPrView.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/kpresenter/KPrCanvas.cpp b/kpresenter/KPrCanvas.cpp
index 0c119b80..7903e2b7 100644
--- a/kpresenter/KPrCanvas.cpp
+++ b/kpresenter/KPrCanvas.cpp
@@ -152,7 +152,7 @@ KPrCanvas::KPrCanvas( TQWidget *parent, const char *name, KPrView *_view )
hide();
}
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setFocus();
setKeyCompression( true );
setInputMethodEnabled( true ); // ensure using the InputMethod
diff --git a/kpresenter/KPrPicturePreview.cpp b/kpresenter/KPrPicturePreview.cpp
index 95114726..97467e7a 100644
--- a/kpresenter/KPrPicturePreview.cpp
+++ b/kpresenter/KPrPicturePreview.cpp
@@ -44,7 +44,7 @@ void KPrPicturePreview::drawContents( TQPainter *painter )
TQSize ext = contentsRect().size();
TQPixmap _pix = origPixmap;
- TQImage img( _pix.convertToImage().smoothScale( ext.width(),ext.height(), TQ_ScaleMin ) );
+ TQImage img( _pix.convertToImage().smoothScale( ext.width(),ext.height(), TQImage::ScaleMin ) );
bool _horizontal = false;
bool _vertical = false;
diff --git a/kpresenter/KPrSideBar.cpp b/kpresenter/KPrSideBar.cpp
index e201fecb..5d2a6e75 100644
--- a/kpresenter/KPrSideBar.cpp
+++ b/kpresenter/KPrSideBar.cpp
@@ -545,7 +545,7 @@ TQPixmap KPrThumbBar::getSlideThumb(int slideNr) const
h = 130;
}
- const TQImage img(pix.convertToImage().smoothScale( w, h, TQ_ScaleMin ));
+ const TQImage img(pix.convertToImage().smoothScale( w, h, TQImage::ScaleMin ));
pix.convertFromImage(img);
// draw a frame around the thumb to show its size
diff --git a/kpresenter/KPrTransEffectDia.cpp b/kpresenter/KPrTransEffectDia.cpp
index 0a276a5a..7d5c4eae 100644
--- a/kpresenter/KPrTransEffectDia.cpp
+++ b/kpresenter/KPrTransEffectDia.cpp
@@ -83,7 +83,7 @@ void KPrEffectPreview::setPixmap( const TQPixmap& pixmap )
setMinimumSize( w, h );
// create smaller pixmap for preview
- const TQImage img( pixmap.convertToImage().smoothScale( w, h, TQ_ScaleFree ) );
+ const TQImage img( pixmap.convertToImage().smoothScale( w, h, TQImage::ScaleFree ) );
m_pixmap.convertFromImage( img );
TQLabel::setPixmap( m_pixmap );
diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp
index 67a2596f..59da1ddd 100644
--- a/kpresenter/KPrView.cpp
+++ b/kpresenter/KPrView.cpp
@@ -1575,7 +1575,7 @@ void KPrView::startScreenPres( int pgNum /*1-based*/ )
m_canvas->reparent( ( TQWidget* )0L, 0, TQPoint( 0, 0 ), FALSE );
m_canvas->setPaletteBackgroundColor( TQt::white );
m_canvas->showFullScreen();
- m_canvas->setFocusPolicy( TQ_StrongFocus );
+ m_canvas->setFocusPolicy( TQWidget::StrongFocus );
if ( !kPresenterDoc()->spManualSwitch() )
{