From kde-commits Tue Jan 29 09:49:27 2008 From: Andras Mantia Date: Tue, 29 Jan 2008 09:49:27 +0000 To: kde-commits Subject: branches/KDE/4.0/kdebase/runtime/renamedlgplugins/audio Message-Id: <1201600167.544302.26928.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120160017823734 SVN commit 768073 by amantia: Backport: use KSqueexedTextLabel to show the file url. M +3 -2 audio_plugin.cpp --- branches/KDE/4.0/kdebase/runtime/renamedlgplugins/audio/audio_plugin.cpp #768072:768073 @@ -20,6 +20,7 @@ */ #include +#include #include #include #include @@ -58,9 +59,9 @@ void AudioPlugin::handle( KIO::RenameDialog_Mode mode, const KIO::RenameDialogPlugin::FileItem& src, const KIO::RenameDialogPlugin::FileItem& dst ) { + QGridLayout *lay = new QGridLayout( this ); if( mode & KIO::M_OVERWRITE ){ - QLabel *label_head = new QLabel(this); QLabel *label_src = new QLabel(this); QLabel *label_dst = new QLabel(this); QLabel *label_ask = new QLabel(this); @@ -73,7 +74,7 @@ sentence1 = i18n("A similar file named '%1' already exists.\n", dest); else sentence1 = i18n("A newer file named '%1' already exists.\n", dest); - label_head->setText(sentence1); + QLabel *label_head = new KSqueezedTextLabel(sentence1, this); label_src->setText(i18n("Source File")); label_dst->setText(i18n("Existing File")); label_ask->setText(i18n("Would you like to replace the existing file with the one on the right?") );