Changeset View
Changeset View
Standalone View
Standalone View
ui/bookmarklist.cpp
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Line(s) | 118 | BookmarkList::BookmarkList( Okular::Document *document, QWidget *parent ) | |||
---|---|---|---|---|---|
119 | : QWidget( parent ), m_document( document ), m_currentDocumentItem( nullptr ) | 119 | : QWidget( parent ), m_document( document ), m_currentDocumentItem( nullptr ) | ||
120 | { | 120 | { | ||
121 | QVBoxLayout *mainlay = new QVBoxLayout( this ); | 121 | QVBoxLayout *mainlay = new QVBoxLayout( this ); | ||
122 | mainlay->setMargin( 0 ); | 122 | mainlay->setMargin( 0 ); | ||
123 | mainlay->setSpacing( 6 ); | 123 | mainlay->setSpacing( 6 ); | ||
124 | 124 | | |||
125 | m_searchLine = new KTreeWidgetSearchLine( this ); | 125 | m_searchLine = new KTreeWidgetSearchLine( this ); | ||
126 | mainlay->addWidget( m_searchLine ); | 126 | mainlay->addWidget( m_searchLine ); | ||
127 | m_searchLine->setPlaceholderText(i18n( "Search..." )); | ||||
127 | 128 | | |||
128 | m_tree = new QTreeWidget( this ); | 129 | m_tree = new QTreeWidget( this ); | ||
129 | mainlay->addWidget( m_tree ); | 130 | mainlay->addWidget( m_tree ); | ||
130 | QStringList cols; | 131 | QStringList cols; | ||
131 | cols.append( QStringLiteral("Bookmarks") ); | 132 | cols.append( QStringLiteral("Bookmarks") ); | ||
132 | m_tree->setContextMenuPolicy( Qt::CustomContextMenu ); | 133 | m_tree->setContextMenuPolicy( Qt::CustomContextMenu ); | ||
133 | m_tree->setHeaderLabels( cols ); | 134 | m_tree->setHeaderLabels( cols ); | ||
134 | m_tree->setSortingEnabled( false ); | 135 | m_tree->setSortingEnabled( false ); | ||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |