From 78941471d4da824445ef9a8089245314f60709b7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 31 Jan 2013 13:16:44 -0600 Subject: [PATCH] Rename KStandard for enhanced compatibility with KDE4 --- kbarcode/barkode.cpp | 10 +++++----- kbarcode/main.cpp | 2 +- kbarcode/mybarcode.cpp | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/kbarcode/barkode.cpp b/kbarcode/barkode.cpp index b54592f..7aa2332 100644 --- a/kbarcode/barkode.cpp +++ b/kbarcode/barkode.cpp @@ -683,12 +683,12 @@ void Barkode::initInfo() PurePostscriptBarcode::init(); - s_haveGnuBarcode = !KStandardDirs::findExe( "barcode" ).isNull(); - s_havePdfEncode = !KStandardDirs::findExe( "pdf417_enc" ).isNull(); - s_haveTBarcode = false; //!KStandardDirs::findExe( "tbarcodeclient" ).isNull(); + s_haveGnuBarcode = !TDEStandardDirs::findExe( "barcode" ).isNull(); + s_havePdfEncode = !TDEStandardDirs::findExe( "pdf417_enc" ).isNull(); + s_haveTBarcode = false; //!TDEStandardDirs::findExe( "tbarcodeclient" ).isNull(); // TODO: do not yet enable TBarcode2 support - s_haveTBarcode2 = !KStandardDirs::findExe( "tbarcode" ).isNull(); - s_havePurePostscript = !KStandardDirs::findExe( "gs" ).isNull() + s_haveTBarcode2 = !TDEStandardDirs::findExe( "tbarcode" ).isNull(); + s_havePurePostscript = !TDEStandardDirs::findExe( "gs" ).isNull() && PurePostscriptBarcode::hasPurePostscriptBarcode(); if( s_haveGnuBarcode ) diff --git a/kbarcode/main.cpp b/kbarcode/main.cpp index 59cbf93..9541548 100644 --- a/kbarcode/main.cpp +++ b/kbarcode/main.cpp @@ -54,7 +54,7 @@ void setupDirs() { if( locate("data", "kbarcode/logo.png").isEmpty() ) { // Maybe KBarcode was not installed into $TDEDIR - KStandardDirs* dirs = TDEGlobal::dirs(); + TDEStandardDirs* dirs = TDEGlobal::dirs(); TQString tdedir = dirs->kfsstnd_prefixes(); if( !tdedir.contains( "/usr/local/" ) ) diff --git a/kbarcode/mybarcode.cpp b/kbarcode/mybarcode.cpp index 50f9bd8..868b20d 100644 --- a/kbarcode/mybarcode.cpp +++ b/kbarcode/mybarcode.cpp @@ -528,9 +528,9 @@ barcodeFormat BarCode::fillStruct( const TQString & name, const TQString & text, void BarCode::setHaveBarcode() { - m_haveGnuBarcode = !KStandardDirs::findExe( "barcode" ).isNull(); - m_havePdfEncode = !KStandardDirs::findExe( "pdf417_enc" ).isNull(); - m_haveTBarcode = !KStandardDirs::findExe( "tbarcodeclient" ).isNull(); + m_haveGnuBarcode = !TDEStandardDirs::findExe( "barcode" ).isNull(); + m_havePdfEncode = !TDEStandardDirs::findExe( "pdf417_enc" ).isNull(); + m_haveTBarcode = !TDEStandardDirs::findExe( "tbarcodeclient" ).isNull(); if( codes.count() == 0 ) { if( m_haveGnuBarcode ) {