[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/okular/ui
From: Pino Toscano <pino () kde ! org>
Date: 2008-03-31 23:03:51
Message-ID: 1207004631.788293.9737.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 792388 by pino:
Dynamically get the tooltip of bookmark items.
CCMAIL: 160189
M +10 -1 bookmarklist.cpp
--- trunk/KDE/kdegraphics/okular/ui/bookmarklist.cpp #792387:792388
@@ -42,11 +42,20 @@
m_viewport = Okular::DocumentViewport( m_url.htmlRef() );
m_url.setHTMLRef( QString() );
setText( 0, m_bookmark.fullText() );
- setToolTip( 0, m_bookmark.fullText() );
if ( m_viewport.isValid() )
setData( 0, PageItemDelegate::PageRole, QString::number( m_viewport.pageNumber + 1 ) );
}
+ virtual QVariant data( int column, int role ) const
+ {
+ switch ( role )
+ {
+ case Qt::ToolTipRole:
+ return m_bookmark.fullText();
+ }
+ return QTreeWidgetItem::data( column, role );
+ }
+
KBookmark& bookmark()
{
return m_bookmark;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic