diff options
Diffstat (limited to 'krecipes/src/exporters/htmlexporter.cpp')
-rw-r--r-- | krecipes/src/exporters/htmlexporter.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/krecipes/src/exporters/htmlexporter.cpp b/krecipes/src/exporters/htmlexporter.cpp index 31e8c40..f501acd 100644 --- a/krecipes/src/exporters/htmlexporter.cpp +++ b/krecipes/src/exporters/htmlexporter.cpp @@ -23,12 +23,12 @@ #include <ntqpainter.h> #include <ntqfileinfo.h> -#include <kconfig.h> +#include <tdeconfig.h> #include <kdebug.h> -#include <klocale.h> -#include <kglobal.h> -#include <khtml_part.h> -#include <khtmlview.h> +#include <tdelocale.h> +#include <tdeglobal.h> +#include <tdehtml_part.h> +#include <tdehtmlview.h> #include <kprogress.h> #include <kstandarddirs.h> #include <kurl.h> @@ -45,7 +45,7 @@ HTMLExporter::HTMLExporter( const TQString& filename, const TQString &format ) : BaseExporter( filename, format ) { - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup( "Page Setup" ); //let's do everything we can to be sure at least some layout is loaded @@ -121,7 +121,7 @@ TQString HTMLExporter::createHeader( const RecipeList & ) m_visibilityMap.clear(); m_columnsMap.clear(); - KConfig *config = KGlobal::config(); + TDEConfig *config = TDEGlobal::config(); config->setGroup( "Page Setup" ); m_error = false; @@ -152,7 +152,7 @@ TQString HTMLExporter::createHeader( const RecipeList & ) RecipeList::const_iterator recipe_it; - KLocale*loc = KGlobal::locale(); + TDELocale*loc = TDEGlobal::locale(); TQString encoding = loc->encoding(); TQString output = "<html>"; @@ -269,7 +269,7 @@ TQString HTMLExporter::HTMLIfVisible( const TQString &name, const TQString &html void HTMLExporter::populateTemplate( const Recipe &recipe, TQString &content ) { - KConfig * config = KGlobal::config(); + TDEConfig * config = TDEGlobal::config(); //=======================TITLE======================// content = content.replace("**TITLE**",HTMLIfVisible("title",recipe.title)); @@ -460,7 +460,7 @@ void HTMLExporter::populateTemplate( const Recipe &recipe, TQString &content ) double prop_amount = (*prop_it).amount; if ( prop_amount > 0 ) { //TODO: make the precision configuratble prop_amount = double( tqRound( prop_amount * 10.0 ) ) / 10.0; //not a "chemistry experiment" ;) Let's only have one decimal place - amount_str = beautify( KGlobal::locale() ->formatNumber( prop_amount, 5 ) ); + amount_str = beautify( TDEGlobal::locale() ->formatNumber( prop_amount, 5 ) ); } else amount_str = "0"; |