mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Port away from deprecated setClearButtonShown
This commit is contained in:
parent
33ca396def
commit
d3388cd6a1
|
@ -159,7 +159,7 @@ KTreeViewSearchLine::KTreeViewSearchLine( QWidget *parent, QTreeView *treeView )
|
|||
{
|
||||
connect(this, &KTreeViewSearchLine::textChanged, this, &KTreeViewSearchLine::queueSearch);
|
||||
|
||||
setClearButtonShown( true );
|
||||
setClearButtonEnabled( true );
|
||||
setTreeView( treeView );
|
||||
|
||||
if ( !treeView ) {
|
||||
|
|
|
@ -68,7 +68,7 @@ PresentationSearchBar::PresentationSearchBar( Okular::Document *document, QWidge
|
|||
lay->addWidget( closeBtn );
|
||||
|
||||
m_search = new SearchLineEdit( this, document );
|
||||
m_search->setClearButtonShown( true );
|
||||
m_search->setClearButtonEnabled( true );
|
||||
m_search->setSearchCaseSensitivity( Qt::CaseInsensitive );
|
||||
m_search->setSearchMinimumLength( 0 );
|
||||
m_search->setSearchType( Okular::Document::NextMatch );
|
||||
|
|
|
@ -32,7 +32,7 @@ SearchLineEdit::SearchLineEdit( QWidget * parent, Okular::Document * document )
|
|||
m_findAsYouType( true ), m_searchRunning( false )
|
||||
{
|
||||
setObjectName( QStringLiteral( "SearchLineEdit" ) );
|
||||
setClearButtonShown( true );
|
||||
setClearButtonEnabled( true );
|
||||
|
||||
// a timer to ensure that we don't flood the document with requests to search
|
||||
m_inputDelayTimer = new QTimer(this);
|
||||
|
|
|
@ -36,7 +36,7 @@ SearchWidget::SearchWidget( QWidget * parent, Okular::Document * document )
|
|||
|
||||
// 2. text line
|
||||
m_lineEdit = new SearchLineEdit( this, document );
|
||||
m_lineEdit->setClearButtonShown( true );
|
||||
m_lineEdit->setClearButtonEnabled( true );
|
||||
m_lineEdit->setToolTip(i18n( "Enter at least 3 letters to filter pages" ));
|
||||
m_lineEdit->setSearchCaseSensitivity( Qt::CaseInsensitive );
|
||||
m_lineEdit->setSearchMinimumLength( 3 );
|
||||
|
|
Loading…
Reference in a new issue