From 1cd3a7d43c18218e92a433eb402dc8675d01d554 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 22 Mar 2026 11:57:05 +0900 Subject: Remove use of TDE_VERSION Signed-off-by: Michele Calgaro (cherry picked from commit b200dc191e36b3af25c88fe541842c86bd8afc09) --- kghostview/kgv_miniwidget.cpp | 18 +----------------- kghostview/kgvshell.cpp | 8 -------- 2 files changed, 1 insertion(+), 25 deletions(-) (limited to 'kghostview') diff --git a/kghostview/kgv_miniwidget.cpp b/kghostview/kgv_miniwidget.cpp index e7d391b4..bad774f2 100644 --- a/kghostview/kgv_miniwidget.cpp +++ b/kghostview/kgv_miniwidget.cpp @@ -24,18 +24,9 @@ #include #include #include -#include #include #include - -// KLineEditDlg is depricated as of 3.2. use KInputDialog instead -#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90) - #include -#else - #include - #include - #include -#endif +#include #include #include @@ -115,18 +106,11 @@ void KGVMiniWidget::setPSWidget( KPSWidget* psWidget ) void KGVMiniWidget::goToPage() { -#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90) int num; bool ok = false; num = KInputDialog::getInteger(i18n("Go to Page"), i18n("Page:"), 1, 1, dsc()->page_count(), 1, 10, &ok, _part->widget()); if (ok) goToPage( num-1 ); -#else - TQString num; - bool b = false; - num = KLineEditDlg::getText(i18n("Go to Page"), i18n("Page:"), TQString(), &b, _part->widget(), new TQIntValidator(1, dsc()->page_count(), this)); - if (b) goToPage( num.toInt() - 1 ); -#endif } void KGVMiniWidget::info() diff --git a/kghostview/kgvshell.cpp b/kghostview/kgvshell.cpp index 8217ce47..f2ac7b65 100644 --- a/kghostview/kgvshell.cpp +++ b/kghostview/kgvshell.cpp @@ -85,16 +85,10 @@ KGVShell::KGVShell() : _showMenuBarAction = KStdAction::showMenubar( this, TQ_SLOT( slotShowMenubar() ), actionCollection() ); /*---- Settings -------------------------------------------------------*/ -#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90) createStandardStatusBarAction(); -#endif setAutoSaveSettings(); setStandardToolBarMenuEnabled(true); -#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90) m_fullScreenAction = KStdAction::fullScreen( this, TQ_SLOT( slotUpdateFullScreen() ), actionCollection(), this ); -#else - m_fullScreenAction = new TDEToggleAction( this, TQ_SLOT( slotUpdateFullScreen() ) ); -#endif KStdAction::configureToolbars( this, TQ_SLOT( slotConfigureToolbars() ), actionCollection() ); KStdAction::keyBindings(guiFactory(), TQ_SLOT(configureShortcuts()), actionCollection()); @@ -338,11 +332,9 @@ void KGVShell::slotUpdateFullScreen() kapp->removeEventFilter( m_fsFilter ); m_gvpart->updateFullScreen( false ); menuBar()->show(); -#if TDE_VERSION >= TDE_MAKE_VERSION(3,1,90) TDEToggleAction *statusbarAction = dynamic_cast(actionCollection()->action(KStdAction::name(KStdAction::ShowStatusbar))); assert( statusbarAction ); if (statusbarAction->isChecked()) statusBar()->show(); -#endif toolBar()->show(); showNormal(); } -- cgit v1.2.3