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

List:       kde-commits
Subject:    KDE/kdepim/kleopatra/models
From:       Marc Mutz <mutz () kde ! org>
Date:       2008-03-04 15:35:30
Message-ID: 1204644930.865540.14707.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 782210 by mutz:

Switch to lightweight tooltips in key listings

 M  +3 -1      keylistmodel.cpp  


--- trunk/KDE/kdepim/kleopatra/models/keylistmodel.cpp #782209:782210
@@ -193,7 +193,7 @@
 
     const int column = index.column();
 
-    if ( role == Qt::DisplayRole || role == Qt::EditRole )
+    if ( role == Qt::DisplayRole || role == Qt::EditRole || role == Qt::ToolTipRole )
         switch ( column ) {
         case PrettyName:
             return Formatting::prettyName( key );
@@ -216,8 +216,10 @@
         case NumColumns:
             break;
         }
+#if 0
     else if ( role == Qt::ToolTipRole )
         return Formatting::toolTip( key );
+#endif
     else if ( role == Qt::FontRole ) {
         QFont font = qApp->font(); // ### correct font?
         if ( column == Fingerprint )
[prev in list] [next in list] [prev in thread] [next in thread] 

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