Commit 233cf084 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Do not focus the tag search line edit in the show event

This is a bad idea, since that will take focus away from the canvas
every time the krita window is shown anew.

BUG:404131
parent f59f1a07
......@@ -563,13 +563,6 @@ void KoResourceItemChooser::showEvent(QShowEvent *event)
{
QWidget::showEvent(event);
updateView();
/* Give the search field focus onShowEvent to allow for
* faster preset filtering... */
if( d->tagManager ) {
d->tagManager->searchField()->setFocus(Qt::FocusReason::OtherFocusReason);
d->tagManager->searchField()->selectAll();
}
}
void KoResourceItemChooser::updateView()
......
......@@ -385,11 +385,6 @@ KoTagChooserWidget* KoResourceTaggingManager::tagChooserWidget()
return d->tagChooser;
}
QLineEdit* KoResourceTaggingManager::searchField()
{
return d->tagFilter->searchField();
}
KoTagFilterWidget* KoResourceTaggingManager::tagFilterWidget()
{
return d->tagFilter;
......
......@@ -58,10 +58,9 @@ public:
bool allowTagModification();
KoTagFilterWidget* tagFilterWidget();
KoTagChooserWidget* tagChooserWidget();
class QLineEdit* searchField();
Q_SIGNALS:
void updateView();
void updateView();
private Q_SLOTS:
......
......@@ -127,11 +127,6 @@ void KoTagFilterWidget::clear()
d->tagSearchSaveButton->setEnabled(false);
}
QLineEdit *KoTagFilterWidget::searchField()
{
return d->tagSearchLineEdit;
}
void KoTagFilterWidget::onTextChanged(const QString& lineEditText)
{
d->tagSearchSaveButton->setEnabled(!lineEditText.isEmpty());
......
......@@ -38,7 +38,6 @@ public:
void allowSave(bool allow);
void clear();
class QLineEdit* searchField();
Q_SIGNALS:
void filterTextChanged(const QString &filterText);
void saveButtonClicked();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment