Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/krsearchbar.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
48 | closeButton->setIcon(Icon(QStringLiteral("dialog-close"))); | 48 | closeButton->setIcon(Icon(QStringLiteral("dialog-close"))); | ||
49 | closeButton->setToolTip(i18n("Close the search bar")); | 49 | closeButton->setToolTip(i18n("Close the search bar")); | ||
50 | connect(closeButton, &QToolButton::clicked, this, &KrSearchBar::hideBar); | 50 | connect(closeButton, &QToolButton::clicked, this, &KrSearchBar::hideBar); | ||
51 | 51 | | |||
52 | // combo box for changing search mode | 52 | // combo box for changing search mode | ||
53 | _modeBox = new QComboBox(this); | 53 | _modeBox = new QComboBox(this); | ||
54 | _modeBox->addItems(QStringList() << i18n("Search") << i18n("Select") << i18n("Filter")); | 54 | _modeBox->addItems(QStringList() << i18n("Search") << i18n("Select") << i18n("Filter")); | ||
55 | _modeBox->setToolTip(i18n("Change the search mode")); | 55 | _modeBox->setToolTip(i18n("Change the search mode")); | ||
56 | connect(_modeBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &KrSearchBar::onModeChange); | 56 | connect(_modeBox, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), | ||
57 | this, &KrSearchBar::onModeChange); | ||||
57 | 58 | | |||
58 | _currentMode = static_cast<SearchMode>(_modeBox->currentIndex()); | 59 | _currentMode = static_cast<SearchMode>(_modeBox->currentIndex()); | ||
59 | 60 | | |||
60 | // combo box for entering search string | 61 | // combo box for entering search string | ||
61 | _textBox = new KComboBox(this); | 62 | _textBox = new KComboBox(this); | ||
62 | _textBox->setEditable(true); | 63 | _textBox->setEditable(true); | ||
63 | _modeBox->setToolTip(i18n("Enter or select search string")); | 64 | _modeBox->setToolTip(i18n("Enter or select search string")); | ||
64 | QStringList savedSearches = KConfigGroup(krConfig, "Private") | 65 | QStringList savedSearches = KConfigGroup(krConfig, "Private") | ||
▲ Show 20 Lines • Show All 373 Lines • Show Last 20 Lines |