Changeset View
Changeset View
Standalone View
Standalone View
ui/side_reviews.cpp
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Line(s) | 89 | { | |||
---|---|---|---|---|---|
112 | m_filterProxy->setSourceModel( m_model ); | 112 | m_filterProxy->setSourceModel( m_model ); | ||
113 | m_groupProxy->setSourceModel( m_filterProxy ); | 113 | m_groupProxy->setSourceModel( m_filterProxy ); | ||
114 | m_authorProxy->setSourceModel( m_groupProxy ); | 114 | m_authorProxy->setSourceModel( m_groupProxy ); | ||
115 | 115 | | |||
116 | 116 | | |||
117 | m_view->setModel( m_authorProxy ); | 117 | m_view->setModel( m_authorProxy ); | ||
118 | 118 | | |||
119 | m_searchLine = new KTreeViewSearchLine( this, m_view ); | 119 | m_searchLine = new KTreeViewSearchLine( this, m_view ); | ||
120 | m_searchLine->setPlaceholderText(i18n( "Filter annotations..." )); | ||||
120 | m_searchLine->setCaseSensitivity( Okular::Settings::self()->reviewsSearchCaseSensitive() ? Qt::CaseSensitive : Qt::CaseInsensitive ); | 121 | m_searchLine->setCaseSensitivity( Okular::Settings::self()->reviewsSearchCaseSensitive() ? Qt::CaseSensitive : Qt::CaseInsensitive ); | ||
121 | m_searchLine->setRegularExpression( Okular::Settings::self()->reviewsSearchRegularExpression() ); | 122 | m_searchLine->setRegularExpression( Okular::Settings::self()->reviewsSearchRegularExpression() ); | ||
122 | connect(m_searchLine, &KTreeViewSearchLine::searchOptionsChanged, this, &Reviews::saveSearchOptions); | 123 | connect(m_searchLine, &KTreeViewSearchLine::searchOptionsChanged, this, &Reviews::saveSearchOptions); | ||
123 | vLayout->addWidget( m_searchLine ); | 124 | vLayout->addWidget( m_searchLine ); | ||
124 | vLayout->addWidget( m_view ); | 125 | vLayout->addWidget( m_view ); | ||
125 | vLayout->addWidget( toolBar ); | 126 | vLayout->addWidget( toolBar ); | ||
126 | 127 | | |||
127 | toolBar->setIconSize( QSize( 16, 16 ) ); | 128 | toolBar->setIconSize( QSize( 16, 16 ) ); | ||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |