Remove use of KDE_IS_VERSION

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7984ff277b)
r14.1.x
Michele Calgaro 1 week ago
parent 9592277df4
commit 20eab83207

@ -58,7 +58,6 @@ extern "C"
#include <tdeio/previewjob.h>
#include <tdeio/renamedlg.h>
#include <kdebug.h>
#include <tdeversion.h>
// Libkipi includes.
@ -83,11 +82,7 @@ RenameImagesWidget::RenameImagesWidget(TQWidget *parent,
m_urlList(urlList)
{
m_listView->setSorting(-1);
#if KDE_IS_VERSION(3,4,0)
// next can be done directly into designer but it seems not to compile
// under kde < 3.4.0
m_listView->setShadeSortColumn( false );
#endif
readSettings();

@ -35,7 +35,6 @@
#include <tdeglobal.h>
#include <tdelocale.h>
#include <tdeversion.h>
#include <kcalendarsystem.h>
#include <kdebug.h>
@ -215,13 +214,8 @@ void CalPainter::paint(bool useDeviceMetrics)
painter->setFont(f);
painter->drawText(rCalHeader, TQt::AlignLeft|TQt::AlignVCenter,
TQString::number(year_));
#if KDE_IS_VERSION(3,2,0)
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
TDEGlobal::locale()->calendar()->monthName(month_, year_));
#else
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
TDEGlobal::locale()->monthName(month_));
#endif
painter->restore();
// ---------------------------------------------------------------
@ -249,14 +243,8 @@ void CalPainter::paint(bool useDeviceMetrics)
rsmall = r;
rsmall.setWidth(r.width() - 2);
rsmall.setHeight(r.height() - 2);
#if KDE_IS_VERSION(3,2,0)
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
TDEGlobal::locale()->calendar()->weekDayName(dayname, true));
#else
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
TDEGlobal::locale()->weekDayName(dayname, true));
#endif
}
painter->restore();
@ -441,13 +429,8 @@ CalBlockPainter::CalBlockPainter(TQObject *parent, int year, int month,
painter->setFont(f);
painter->drawText(rCalHeader, TQt::AlignLeft|TQt::AlignVCenter,
TQString::number(year));
#if KDE_IS_VERSION(3,2,0)
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
TDEGlobal::locale()->calendar()->monthName(month, year));
#else
painter->drawText(rCalHeader, TQt::AlignRight|TQt::AlignVCenter,
TDEGlobal::locale()->monthName(month));
#endif
painter->restore();
// ---------------------------------------------------------------
@ -475,13 +458,8 @@ CalBlockPainter::CalBlockPainter(TQObject *parent, int year, int month,
rsmall = r;
rsmall.setWidth(r.width() - 2);
rsmall.setHeight(r.height() - 2);
#if KDE_IS_VERSION(3,2,0)
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
TDEGlobal::locale()->calendar()->weekDayName(dayname, true));
#else
painter->drawText(rsmall, TQt::AlignRight|TQt::AlignBottom,
TDEGlobal::locale()->weekDayName(dayname, true));
#endif
}
painter->restore();

@ -45,7 +45,6 @@
#include <kiconloader.h>
#include <tdepopupmenu.h>
#include <kstandarddirs.h>
#include <tdeversion.h>
#include <kcalendarsystem.h>
#include <klineedit.h>
@ -198,11 +197,7 @@ void CalWizard::slotPageSelected(const TQString&)
TQDate d;
TDEGlobal::locale()->calendar()->setYMD(d, cSettings_->getYear(), 1, 1);
for (int i=1; i<=TDEGlobal::locale()->calendar()->monthsInYear(d); i++) {
#if KDE_IS_VERSION(3,2,0)
month = TDEGlobal::locale()->calendar()->monthName(i, cSettings_->getYear(), false);
#else
month = TDEGlobal::locale()->monthName(i);
#endif
image = cSettings_->getImage(i);
if (!image.isEmpty()) {
monthNumbers_.append(i);
@ -256,9 +251,7 @@ void CalWizard::slotPageSelected(const TQString&)
if (!printer_)
printer_ = new KPrinter(false);
#if KDE_IS_VERSION(3,2,0)
printer_->setUsePrinterResolution(true);
#endif
// TODO: Let user choose resolutions
//, TQPrinter::HighResolution);
@ -318,15 +311,9 @@ void CalWizard::slotPrintOnePage()
TQString yearName = TQString::number(cSettings_->getYear());
#if KDE_IS_VERSION(3,2,0)
wFinishLabel_->setText(i18n("Printing Calendar Page for %1 of %2")
.arg(TDEGlobal::locale()->calendar()->monthName(month, cSettings_->getYear(), false))
.arg(yearName));
#else
wFinishLabel_->setText(i18n("Printing Calendar Page for %1 of %2")
.arg(TDEGlobal::locale()->monthName(month)).
.arg(yearName));
#endif
currPage_++;
if (currPage_ != 0)

@ -44,7 +44,6 @@
#include <kiconloader.h>
#include <kdebug.h>
#include <tdeio/previewjob.h>
#include <tdeversion.h>
#include <kcalendarsystem.h>
// LibKipi includes.
@ -84,16 +83,8 @@ KURL MonthWidget::imagePath()
void MonthWidget::drawContents(TQPainter *p)
{
#if KDE_IS_VERSION(3,2,0)
TQString name = TDEGlobal::locale()->calendar()->monthName(month_, CalSettings::instance()->getYear(), true);
#else
TQString name = TDEGlobal::locale()->monthName(month_, true);
#endif
TQRect cr;
cr = contentsRect();
TQRect cr = contentsRect();
cr.setBottom(70);
p->drawPixmap(cr.width()/2 - pixmap_->width()/2,
cr.height()/2 - pixmap_->height()/2,

@ -24,7 +24,6 @@
#include <tdeglobal.h>
#include <kstandarddirs.h>
#include <tdeglobalsettings.h>
#include <tdeversion.h>
#include "kpaboutdata.h"
#include "pluginsversion.h"
@ -44,7 +43,6 @@ namespace KIPIPlugins
pluginDescription,
"http://www.kipi-plugins.org")
{
#if KDE_IS_VERSION(3,4,0)
// setProgramLogo is defined from kde 3.4.0 on
TQString directory;
TDEGlobal::dirs()->addResourceType("kipi_plugins_logo", TDEGlobal::dirs()->kde_default("data") + "kipi/data");
@ -52,7 +50,6 @@ namespace KIPIPlugins
// set the kipiplugins logo inside the about dialog
setProgramLogo(TQImage(directory + "kipi-plugins_logo.png"));
#endif
// set the plugin description into long text description
setOtherText(pluginDescription);

@ -32,14 +32,9 @@ CPPFLAGS="$CPPFLAGS $all_includes"
AC_MSG_CHECKING([if hidden visibility should be enabled])
AC_COMPILE_IFELSE(
[
#include <tdeversion.h>
#include <tdemacros.h>
int other_func( void )
{
#if KDE_IS_VERSION(3,3,2)
#else
iam dying;
#endif
#ifdef __TDE_HAVE_GCC_VISIBILITY
#else
no, iam really dead;

@ -48,10 +48,6 @@
#include <krun.h>
#include <kdebug.h>
#include <tdeconfig.h>
#include <tdeversion.h>
#if KDE_IS_VERSION(3,2,0)
#include <tdewallet.h>
#endif
// Libkipi includes.
@ -83,7 +79,6 @@ FlickrWindow::FlickrWindow(KIPI::Interface* interface, const TQString &tmpFolder
m_interface = interface;
m_uploadCount = 0;
m_uploadTotal = 0;
// m_wallet = 0;
m_widget = new FlickrWidget(this, interface);
m_photoView = m_widget->m_photoView;
// m_newAlbumBtn = m_widget->m_newAlbumBtn;
@ -206,11 +201,6 @@ FlickrWindow::FlickrWindow(KIPI::Interface* interface, const TQString &tmpFolder
FlickrWindow::~FlickrWindow()
{
#if KDE_IS_VERSION(3,2,0)
// if (m_wallet)
// delete m_wallet;
#endif
delete m_progressDlg;
delete m_authProgressDlg;
delete m_talker;

@ -23,10 +23,7 @@
#include <kdebug.h>
#include <tdeconfig.h>
#include <tdelocale.h>
#include <tdeversion.h>
#if KDE_IS_VERSION(3,2,0)
#include <tdewallet.h>
#endif
#include "galleries.h"
@ -117,7 +114,6 @@ void Galleries::Load()
bln_loaded = true;
bool bln_use_wallet = false;
#if KDE_IS_VERSION(3,2,0)
mpWallet = TDEWallet::Wallet::openWallet(TDEWallet::Wallet::NetworkWallet(),
kapp->activeWindow()->winId(),
TDEWallet::Wallet::Synchronous);
@ -138,7 +134,6 @@ void Galleries::Load()
else
bln_use_wallet = true;
}
#endif
// read config

@ -52,10 +52,7 @@
#include <krun.h>
#include <kdebug.h>
#include <ksimpleconfig.h>
#include <tdeversion.h>
#if KDE_IS_VERSION(3,2,0)
#include <tdewallet.h>
#endif
// Libkipi includes.
@ -87,7 +84,6 @@ PicasawebWindow::PicasawebWindow(KIPI::Interface* interface, const TQString &tmp
m_interface = interface;
m_uploadCount = 0;
m_uploadTotal = 0;
// m_wallet = 0;
m_urls = 0;
m_widget = new PicasawebWidget(this);
m_tagView = m_widget->m_tagView;
@ -248,11 +244,6 @@ void PicasawebWindow::slotClose()
PicasawebWindow::~PicasawebWindow()
{
#if KDE_IS_VERSION(3,2,0)
// if (m_wallet)
// delete m_wallet;
#endif
// write config
KSimpleConfig config("kipirc");
config.setGroup("PicasawebExport Settings");

@ -56,7 +56,6 @@ extern "C"
#include <khelpmenu.h>
#include <kiconloader.h>
#include <tdepopupmenu.h>
#include <tdeversion.h>
#include <tdefontcombo.h>
#include <kcolorcombo.h>
@ -356,9 +355,7 @@ void FrmPrintWizard::FrmPrintWizardBaseSelected(const TQString &)
printer.setMargins (0, 0, 0, 0);
}
#if KDE_IS_VERSION(3,2,0)
printer.setUsePrinterResolution(true);
#endif
if (printer.setup())
printPhotos(m_photos, s->layouts, printer);
}

@ -45,7 +45,6 @@
// KDE includes.
#include <tdelocale.h>
#include <tdeversion.h>
#include <tdeglobalsettings.h>
#include <kdebug.h>
#include <kurl.h>
@ -62,19 +61,11 @@ namespace KIPISlideShowPlugin
SlideShow::SlideShow(const FileList& fileList, const TQStringList& commentsList, bool ImagesHasComments)
: TQWidget(0, 0, WStyle_StaysOnTop | WType_Popup | WX11BypassWM | WDestructiveClose)
{
#if KDE_IS_VERSION(3,2,0)
TQRect deskRect = TDEGlobalSettings::desktopGeometry(this);
m_deskX = deskRect.x();
m_deskY = deskRect.y();
m_deskWidth = deskRect.width();
m_deskHeight = deskRect.height();
#else
TQRect deskRect = TQApplication::desktop()->screenGeometry(this);
m_deskX = deskRect.x();
m_deskY = deskRect.y();
m_deskWidth = deskRect.width();
m_deskHeight = deskRect.height();
#endif
move(m_deskX, m_deskY);
resize(m_deskWidth, m_deskHeight);

@ -23,7 +23,6 @@
#include <tdeconfig.h>
#include <tdelocale.h>
#include <kdebug.h>
#include <tdeversion.h>
#include <tdeglobalsettings.h>
#include <kimageeffect.h>
@ -52,19 +51,11 @@ SlideShowGL::SlideShowGL(const TQValueList<TQPair<TQString, int> >& fileList,
: TQGLWidget(0, 0, 0, WStyle_StaysOnTop | WType_Popup |
WX11BypassWM | WDestructiveClose)
{
#if KDE_IS_VERSION(3,2,0)
TQRect deskRect = TDEGlobalSettings::desktopGeometry(this);
m_deskX = deskRect.x();
m_deskY = deskRect.y();
m_deskWidth = deskRect.width();
m_deskHeight = deskRect.height();
#else
TQRect deskRect = TQApplication::desktop()->screenGeometry(this);
m_deskX = deskRect.x();
m_deskY = deskRect.y();
m_deskWidth = deskRect.width();
m_deskHeight = deskRect.height();
#endif
move(m_deskX, m_deskY);
resize(m_deskWidth, m_deskHeight);

@ -44,7 +44,6 @@
#include <tdeconfig.h>
#include <tdeglobal.h>
#include <tdelocale.h>
#include <tdeversion.h>
#include <tdeglobalsettings.h>
// Local includes.
@ -142,19 +141,11 @@ namespace KIPISlideShowPlugin
: TQGLWidget(0, 0, 0, WStyle_StaysOnTop | WType_Popup |
WX11BypassWM | WDestructiveClose)
{
#if KDE_IS_VERSION(3,2,0)
TQRect deskRect = TDEGlobalSettings::desktopGeometry(this);
m_deskX = deskRect.x();
m_deskY = deskRect.y();
m_deskWidth = deskRect.width();
m_deskHeight = deskRect.height();
#else
TQRect deskRect = TQApplication::desktop()->screenGeometry(this);
m_deskX = deskRect.x();
m_deskY = deskRect.y();
m_deskWidth = deskRect.width();
m_deskHeight = deskRect.height();
#endif
move(m_deskX, m_deskY);
resize(m_deskWidth, m_deskHeight);

@ -23,10 +23,6 @@
#include "libkipi2/interface.h"
#include <tdeconfig.h>
#include <tdeversion.h>
#if KDE_IS_VERSION(3,2,0)
#include <tdewallet.h>
#endif
namespace KIPI2
{

@ -23,10 +23,7 @@
#include <kdebug.h>
#include <tdeconfig.h>
#include <tdelocale.h>
#include <tdeversion.h>
#if KDE_IS_VERSION(3,2,0)
#include <tdewallet.h>
#endif
#include "sinks.h"
#include "sink.h"
@ -59,7 +56,6 @@ Sinks::Sinks()
mMaxSinkId(0)
{
TDEWallet::Wallet* p_wallet = NULL;
#if KDE_IS_VERSION(3,2,0)
mpWallet = TDEWallet::Wallet::openWallet(TDEWallet::Wallet::NetworkWallet(),
kapp->activeWindow()->winId(),
TDEWallet::Wallet::Synchronous);
@ -80,7 +76,6 @@ Sinks::Sinks()
else
p_wallet = mpWallet;
}
#endif
// Read config
TDEConfig config("kipirc");

@ -31,7 +31,6 @@
#include <klibloader.h>
#include <tdeconfig.h>
#include <kdebug.h>
#include <tdeversion.h>
#include <krun.h>
#include <tdeapplication.h>
#include <tdemessagebox.h>
@ -120,16 +119,12 @@ void Plugin_WallPaper::setup( TQWidget* widget )
"images2desktop_centered_auto_fit"));
//The Scale & crop code was available from Beta1 on
#if KDE_IS_VERSION(3,3,91)
m_action_Background->insert(new TDEAction (i18n("Scale && Crop"),
0,
this,
TQ_SLOT(slotSetScaleAndCrop()),
actionCollection(),
"images2desktop_scale_and_crop"));
#endif
addAction( m_action_Background );
KIPI::Interface* interface = dynamic_cast<KIPI::Interface*>( parent() );

Loading…
Cancel
Save