Changeset View
Changeset View
Standalone View
Standalone View
krusader/Filter/generalfilter.cpp
Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Line(s) | 383 | if (properties & FilterTabs::HasProfileHandler) { | |||
---|---|---|---|---|---|
385 | connect(profileLoadBtn, &QPushButton::clicked, this, &GeneralFilter::slotLoadBtnClicked); | 385 | connect(profileLoadBtn, &QPushButton::clicked, this, &GeneralFilter::slotLoadBtnClicked); | ||
386 | connect(profileOverwriteBtn, &QPushButton::clicked, this, &GeneralFilter::slotOverwriteBtnClicked); | 386 | connect(profileOverwriteBtn, &QPushButton::clicked, this, &GeneralFilter::slotOverwriteBtnClicked); | ||
387 | connect(profileRemoveBtn, &QPushButton::clicked, this, &GeneralFilter::slotRemoveBtnClicked); | 387 | connect(profileRemoveBtn, &QPushButton::clicked, this, &GeneralFilter::slotRemoveBtnClicked); | ||
388 | connect(profileListBox, &KrListWidget::itemDoubleClicked, this, &GeneralFilter::slotProfileDoubleClicked); | 388 | connect(profileListBox, &KrListWidget::itemDoubleClicked, this, &GeneralFilter::slotProfileDoubleClicked); | ||
389 | connect(profileManager, &ProfileManager::loadFromProfile, fltTabs, &FilterTabs::loadFromProfile); | 389 | connect(profileManager, &ProfileManager::loadFromProfile, fltTabs, &FilterTabs::loadFromProfile); | ||
390 | connect(profileManager, &ProfileManager::saveToProfile, fltTabs, &FilterTabs::saveToProfile); | 390 | connect(profileManager, &ProfileManager::saveToProfile, fltTabs, &FilterTabs::saveToProfile); | ||
391 | } | 391 | } | ||
392 | 392 | | |||
393 | connect(searchFor, SIGNAL(activated(QString)), searchFor, SLOT(addToHistory(QString))); | 393 | connect(searchFor, QOverload<const QString &>::of(&KHistoryComboBox::activated), searchFor, &KHistoryComboBox::addToHistory); | ||
394 | connect(containsText, SIGNAL(activated(QString)), containsText, SLOT(addToHistory(QString))); | 394 | connect(containsText, QOverload<const QString &>::of(&KHistoryComboBox::activated), containsText, &KHistoryComboBox::addToHistory); | ||
395 | 395 | | |||
396 | // load the completion and history lists | 396 | // load the completion and history lists | ||
397 | // ==> search for | 397 | // ==> search for | ||
398 | KConfigGroup group(krConfig, "Search"); | 398 | KConfigGroup group(krConfig, "Search"); | ||
399 | QStringList list = group.readEntry("SearchFor Completion", QStringList()); | 399 | QStringList list = group.readEntry("SearchFor Completion", QStringList()); | ||
400 | searchFor->completionObject()->setItems(list); | 400 | searchFor->completionObject()->setItems(list); | ||
401 | list = group.readEntry("SearchFor History", QStringList()); | 401 | list = group.readEntry("SearchFor History", QStringList()); | ||
402 | searchFor->setHistoryItems(list); | 402 | searchFor->setHistoryItems(list); | ||
▲ Show 20 Lines • Show All 264 Lines • Show Last 20 Lines |