SVN commit 840675 by danimo: Importing autogenerated calendars from websites may yield long urls. Do the right thing in that case and elide the url in the middle. M +6 -4 importdialog.cpp --- trunk/KDE/kdepim/korganizer/importdialog.cpp #840674:840675 @@ -28,7 +28,8 @@ #include "koprefs.h" #include "stdcalendar.h" -#include +#include +#include #include #include @@ -56,11 +57,12 @@ topLayout->setSpacing( spacingHint() ); topLayout->setMargin( 0 ); - QString txt = i18n("Import calendar at '%1' into KOrganizer.", + QString txt = i18n( "Please select import method for calendar at\n\n%1.", mUrl.prettyUrl() ); + KSqueezedTextLabel *lbl = new KSqueezedTextLabel( txt, topFrame ); + lbl->setTextElideMode( Qt::ElideMiddle ); + topLayout->addWidget( lbl ); - topLayout->addWidget( new QLabel( txt, topFrame ) ); - QGroupBox *radioBox = new QGroupBox( topFrame ); QBoxLayout *boxLayout = new QVBoxLayout( radioBox ); radioBox->setFlat( true );