summaryrefslogtreecommitdiffstats
path: root/src/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs')
-rw-r--r--src/dialogs/dietwizarddialog.cpp2
-rw-r--r--src/dialogs/pagesetupdialog.cpp6
-rw-r--r--src/dialogs/refineshoppinglistdialog.cpp4
-rw-r--r--src/dialogs/selectrecipedialog.cpp2
-rw-r--r--src/dialogs/similarcategoriesdialog.cpp4
-rw-r--r--src/dialogs/unitsdialog.cpp2
6 files changed, 10 insertions, 10 deletions
diff --git a/src/dialogs/dietwizarddialog.cpp b/src/dialogs/dietwizarddialog.cpp
index 30414cf..52f6758 100644
--- a/src/dialogs/dietwizarddialog.cpp
+++ b/src/dialogs/dietwizarddialog.cpp
@@ -207,7 +207,7 @@ void DietWizardDialog::createDiet( void )
bool found = false;
TQValueList <RecipeList::Iterator> tempDishRList = tempRList;
while ( ( !found ) && !tempDishRList.empty() ) {
- int random_index = ( int ) ( ( float ) ( kapp->random() ) / ( float ) RAND_MAX * tempDishRList.count() );
+ int random_index = ( int ) ( ( float ) ( tdeApp->random() ) / ( float ) RAND_MAX * tempDishRList.count() );
TQValueList<RecipeList::Iterator>::Iterator iit = tempDishRList.at( random_index ); // note that at() retrieves an iterator to the iterator list, so we need to use * in order to get the RecipeList::Iterator
RecipeList::Iterator rit = *iit;
diff --git a/src/dialogs/pagesetupdialog.cpp b/src/dialogs/pagesetupdialog.cpp
index 08e3fda..e22dd50 100644
--- a/src/dialogs/pagesetupdialog.cpp
+++ b/src/dialogs/pagesetupdialog.cpp
@@ -118,18 +118,18 @@ void PageSetupDialog::accept()
saveLayout();
if ( !active_filename.isEmpty() ) {
- TDEConfig * config = kapp->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup( "Page Setup" );
config->writeEntry( m_configEntry+"Layout", active_filename );
}
if ( !active_template.isEmpty() ) {
- TDEConfig * config = kapp->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup( "Page Setup" );
config->writeEntry( m_configEntry+"Template", active_template );
}
- TDEConfig *config = kapp->config();
+ TDEConfig *config = tdeApp->config();
config->setGroup( "Page Setup" );
config->writeEntry( "WindowSize", size() );
diff --git a/src/dialogs/refineshoppinglistdialog.cpp b/src/dialogs/refineshoppinglistdialog.cpp
index adbe5bb..9c85d1d 100644
--- a/src/dialogs/refineshoppinglistdialog.cpp
+++ b/src/dialogs/refineshoppinglistdialog.cpp
@@ -126,7 +126,7 @@ void RefineShoppingListDialog::loadData()
TQString amount_str;
if ( ( *it ).amount > 0 ) {
- TDEConfig * config = kapp->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup( "Formatting" );
if ( config->readBoolEntry( "Fraction" ) )
@@ -181,7 +181,7 @@ void RefineShoppingListDialog::itemRenamed( TQListViewItem* item, const TQString
else { //revert back to the valid amount string
TQString amount_str;
if ( ( *found_it ).amount > 0 ) {
- TDEConfig * config = kapp->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup( "Formatting" );
if ( config->readBoolEntry( "Fraction" ) )
diff --git a/src/dialogs/selectrecipedialog.cpp b/src/dialogs/selectrecipedialog.cpp
index a8a6ca6..b40aacd 100644
--- a/src/dialogs/selectrecipedialog.cpp
+++ b/src/dialogs/selectrecipedialog.cpp
@@ -134,7 +134,7 @@ SelectRecipeDialog::SelectRecipeDialog( TQWidget *parent, RecipeDB* db )
connect( clearSearchButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( clearSearch() ) );
- TDEConfig * config = kapp->config();
+ TDEConfig * config = tdeApp->config();
config->setGroup( "Performance" );
if ( config->readBoolEntry("SearchAsYouType",true) ) {
connect( searchBox, TQ_SIGNAL( returnPressed( const TQString& ) ), recipeFilter, TQ_SLOT( filter( const TQString& ) ) );
diff --git a/src/dialogs/similarcategoriesdialog.cpp b/src/dialogs/similarcategoriesdialog.cpp
index 75d9721..eaf1d16 100644
--- a/src/dialogs/similarcategoriesdialog.cpp
+++ b/src/dialogs/similarcategoriesdialog.cpp
@@ -268,7 +268,7 @@ void RecipeActionsHandler::mergeSimilar()
{
TQPtrList<TQListViewItem> items = parentListView->selectedItems();
if ( items.count() > 1 )
- KMessageBox::sorry( kapp->mainWidget(), i18n("Please select only one category."), TQString::null );
+ KMessageBox::sorry( tdeApp->mainWidget(), i18n("Please select only one category."), TQString::null );
else if ( items.count() == 1 && items.at(0)->rtti() == 1001 ) {
CategoryListItem * cat_it = ( CategoryListItem* ) items.at(0);
TQString name = cat_it->categoryName();
@@ -297,7 +297,7 @@ void RecipeActionsHandler::mergeSimilar()
}
else //either nothing was selected or a recipe was selected
- KMessageBox::sorry( kapp->mainWidget(), i18n("No recipes selected."), i18n("Edit Recipe") );
+ KMessageBox::sorry( tdeApp->mainWidget(), i18n("No recipes selected."), i18n("Edit Recipe") );
}
#endif
diff --git a/src/dialogs/unitsdialog.cpp b/src/dialogs/unitsdialog.cpp
index d52328a..5d51683 100644
--- a/src/dialogs/unitsdialog.cpp
+++ b/src/dialogs/unitsdialog.cpp
@@ -181,7 +181,7 @@ void UnitsDialog::saveAllRatios( UnitRatioList &ratioList )
return ;
progress_dialog.progressBar() ->advance( 1 );
- kapp->processEvents();
+ tdeApp->processEvents();
UnitRatio new_ratio;
new_ratio.uID1 = current_ratio.uID1;