[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/korganizer
From:       Daniel Molkentin <molkentin () kde ! org>
Date:       2008-08-01 13:28:15
Message-ID: 1217597295.780362.24457.nullmailer () svn ! kde ! org
[Download RAW message or body]

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 <klocale.h>
+#include <KLocale>
+#include <KSqueezedTextLabel>
 
 #include <QLabel>
 #include <QLayout>
@@ -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 );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic