diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-06 21:16:46 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-06 21:16:46 +0900 |
| commit | 4afaa31411ecdf0779d48662cf78d5cdc593ec53 (patch) | |
| tree | 60538645e888a231882576e8ba10307f23c0ec7f /kpresenter | |
| parent | 3a121c599732a399265a02efed9f8b60d8df7603 (diff) | |
| download | koffice-4afaa31411ecdf0779d48662cf78d5cdc593ec53.tar.gz koffice-4afaa31411ecdf0779d48662cf78d5cdc593ec53.zip | |
Remove use of KDE_IS_VERSION
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kpresenter')
| -rw-r--r-- | kpresenter/KPrBackground.cpp | 4 | ||||
| -rw-r--r-- | kpresenter/KPrConfig.cpp | 8 | ||||
| -rw-r--r-- | kpresenter/KPrTextObject.cpp | 2 | ||||
| -rw-r--r-- | kpresenter/KPrWebPresentation.cpp | 4 |
4 files changed, 0 insertions, 18 deletions
diff --git a/kpresenter/KPrBackground.cpp b/kpresenter/KPrBackground.cpp index 91f01c7a1..ad7d6961b 100644 --- a/kpresenter/KPrBackground.cpp +++ b/kpresenter/KPrBackground.cpp @@ -523,11 +523,7 @@ void KPrBackGround::drawBackPix( TQPainter *_painter, const TQSize& ext, const T // NOTE: make all multiplications before any division double w = _origSize.width(); w *= ext.width(); -#if KDE_IS_VERSION(3,1,90) TQRect desk = TDEGlobalSettings::desktopGeometry(tdeApp->activeWindow()); -#else - TQRect desk = TQApplication::desktop()->screenGeometry(); -#endif w /= desk.width(); double h = _origSize.height(); h *= ext.height(); diff --git a/kpresenter/KPrConfig.cpp b/kpresenter/KPrConfig.cpp index 050b08b60..4ea5112bd 100644 --- a/kpresenter/KPrConfig.cpp +++ b/kpresenter/KPrConfig.cpp @@ -1010,11 +1010,7 @@ void KPrConfigurePathPage::apply() { config->setGroup( "Kpresenter Path" ); m_pView->kPresenterDoc()->setBackupPath( res ); -#if KDE_IS_VERSION(3,1,3) config->writePathEntry( "backup path",res ); -#else - config->writeEntry( "backup path",res ); -#endif } } item = m_pPathView->findItem(i18n("Picture Path"), 0); @@ -1025,11 +1021,7 @@ void KPrConfigurePathPage::apply() { config->setGroup( "Kpresenter Path" ); m_pView->kPresenterDoc()->setPicturePath( res ); -#if KDE_IS_VERSION(3,1,3) config->writePathEntry( "picture path",res ); -#else - config->writeEntry( "picture path",res ); -#endif } } } diff --git a/kpresenter/KPrTextObject.cpp b/kpresenter/KPrTextObject.cpp index b160fd527..ebe4c0a90 100644 --- a/kpresenter/KPrTextObject.cpp +++ b/kpresenter/KPrTextObject.cpp @@ -1488,13 +1488,11 @@ void KPrTextObject::highlightPortion( KoTextParag * parag, int index, int length (expose.top()+expose.bottom()) / 2, (expose.right()-expose.left()) / 2, // margin = half-width of the rect (expose.bottom()-expose.top()) / 2); -#if KDE_IS_VERSION(3,1,90) if ( dialog ) { TQRect globalRect( expose ); globalRect.moveTopLeft( canvas->mapToGlobal( globalRect.topLeft() ) ); KDialog::avoidArea( dialog, globalRect ); } -#endif } } diff --git a/kpresenter/KPrWebPresentation.cpp b/kpresenter/KPrWebPresentation.cpp index d76e208b0..025ce37b5 100644 --- a/kpresenter/KPrWebPresentation.cpp +++ b/kpresenter/KPrWebPresentation.cpp @@ -249,11 +249,7 @@ void KPrWebPresentation::saveConfig() cfg.writeEntry( "BackColor", backColor ); cfg.writeEntry( "TitleColor", titleColor ); cfg.writeEntry( "TextColor", textColor ); -#if KDE_IS_VERSION(3,1,3) cfg.writePathEntry( "Path", path ); -#else - cfg.writeEntry( "Path", path ); -#endif cfg.writeEntry( "XML", xml ); cfg.writeEntry( "WriteHeader", m_bWriteHeader ); cfg.writeEntry( "WriteFooter", m_bWriteFooter ); |
