void KrecipesView::addRecipeButton( QWidget *w, const QString &title )
{
	recipeWidget = w;

	QString short_title = title.left( 20 );
	if ( title.length() > 20 )
		short_title.append( "..." );

	recipeButton->setTitle( short_title );

	leftPanel->highlightButton( recipeButton );

	connect( recipeButton, SIGNAL( clicked() ), this, SLOT( switchToRecipe() ) );
	connect( ( RecipeInputDialog * ) w, SIGNAL( titleChanged( const QString& ) ), recipeButton, SLOT( setTitle( const QString& ) ) );

}
void KrecipesView::addRecipeButton( QWidget *w, const QString &title )
{
	recipeWidget = w;

	QString short_title = title.left( 20 );
	if ( title.length() > 20 )
		short_title.append( "..." );

	recipeButton->setTitle( short_title );

	leftPanel->highlightButton( recipeButton );

	connect( recipeButton, SIGNAL( clicked() ), this, SLOT( switchToRecipe() ) );
	connect( ( RecipeInputDialog * ) w, SIGNAL( titleChanged( const QString& ) ), recipeButton, SLOT( setTitle( const QString& ) ) );

}