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

List:       kde-commits
Subject:    kdeutils/kwallet
From:       George Staikos <staikos () kde ! org>
Date:       2004-11-10 13:34:56
Message-ID: 20041110133456.6FCE516E23 () office ! kde ! org
[Download RAW message or body]

CVS commit by staikos: 

200 pixels ought to be enough for everyone


  M +5 -1      kwalleteditor.cpp   1.47


--- kdeutils/kwallet/kwalleteditor.cpp  #1.46:1.47
@@ -39,4 +39,5 @@
 #include <ksqueezedtextlabel.h>
 #include <kstdaction.h>
+#include <kstringhandler.h>
 #include <ktempfile.h>
 
@@ -506,5 +507,8 @@ void KWalletEditor::listContextMenuReque
 
         KPopupMenu *m = new KPopupMenu(this);
-        m->insertTitle(item->text(0));
+        QString title = item->text(0);
+        // I think 200 pixels is wide enough for a title
+        title = KStringHandler::cPixelSqueeze(title, m->fontMetrics(), 200);
+        m->insertTitle(title);
         if (item->parent()) {
                 m->insertItem(i18n("&New..." ), this, SLOT(newEntry()), Key_Insert);


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

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