diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-08 20:44:13 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-08 20:49:22 +0900 |
| commit | 03b0b804eb016e2d9ae851db960e843d0d629e0a (patch) | |
| tree | 0f3fea3adf799f6436296120999f628b54b2dbe5 /libkpgp/kpgpui.cpp | |
| parent | 27556c799540cacccf0e520ddd93b2a527c9244f (diff) | |
| download | tdepim-03b0b804eb016e2d9ae851db960e843d0d629e0a.tar.gz tdepim-03b0b804eb016e2d9ae851db960e843d0d629e0a.zip | |
Remove use of KDE_IS_VERSION
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'libkpgp/kpgpui.cpp')
| -rw-r--r-- | libkpgp/kpgpui.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libkpgp/kpgpui.cpp b/libkpgp/kpgpui.cpp index 2d364aea..be9f552e 100644 --- a/libkpgp/kpgpui.cpp +++ b/libkpgp/kpgpui.cpp @@ -43,9 +43,7 @@ #include <kprogress.h> #include <tdeapplication.h> #include <twin.h> -#if KDE_IS_VERSION( 3, 1, 90 ) #include <tdeglobalsettings.h> -#endif #include "kpgp.h" #include "kpgpui.h" @@ -1657,22 +1655,7 @@ void CipherTextDialog::setMinimumSize() mEditBox->setMinimumHeight( mEditBox->fontMetrics().lineSpacing() * 25 ); int textWidth = mEditBox->contentsWidth() + 30; - - -#if KDE_IS_VERSION( 3, 1, 90 ) int maxWidth = TDEGlobalSettings::desktopGeometry(parentWidget()).width()-100; -#else - TDEConfig gc("kdeglobals", false, false); - gc.setGroup("Windows"); - int maxWidth; - if (TQApplication::desktop()->isVirtualDesktop() && - gc.readBoolEntry("XineramaEnabled", true) && - gc.readBoolEntry("XineramaPlacementEnabled", true)) { - maxWidth = TQApplication::desktop()->screenGeometry(TQApplication::desktop()->screenNumber(parentWidget())).width()-100; - } else { - maxWidth = TQApplication::desktop()->geometry().width()-100; - } -#endif mEditBox->setMinimumWidth( TQMIN( textWidth, maxWidth ) ); } |
