Commit 436e107d authored by Allen Winter's avatar Allen Winter
Browse files

Revert "Bind keyboard shortcuts in the Search dialog's results"

This reverts commit 48485e4f.

Breaks pressing <return> key in the lineedit to run the search
parent 46497517
Pipeline #90786 passed with stage
in 10 minutes and 18 seconds
......@@ -22,7 +22,6 @@
#include <QDialogButtonBox>
#include <QPushButton>
#include <QShortcut>
SearchDialog::SearchDialog(CalendarView *calendarview)
: QDialog(calendarview)
......@@ -83,11 +82,6 @@ SearchDialog::SearchDialog(CalendarView *calendarview)
// connect(m_popupMenu, &KOEventPopupMenu::toggleTodoCompletedSignal, this,
// &SearchDialog::toggleTodoCompletedSignal);
const auto delKey = new QShortcut(QKeySequence(Qt::Key_Delete), this);
connect(delKey, &QShortcut::activated, this, &SearchDialog::slotDeleteSelection);
const auto retKey = new QShortcut(QKeySequence(Qt::Key_Return), this);
connect(retKey, &QShortcut::activated, this, &SearchDialog::slotEditSelection);
readConfig();
}
......@@ -270,22 +264,6 @@ void SearchDialog::writeConfig()
group.sync();
}
void SearchDialog::slotDeleteSelection()
{
const auto selected = m_listView->selectedIncidences();
if (selected.count() > 0) {
Q_EMIT deleteIncidenceSignal(selected.at(0));
}
}
void SearchDialog::slotEditSelection()
{
const auto selected = m_listView->selectedIncidences();
if (selected.count() > 0) {
Q_EMIT editIncidenceSignal(selected.at(0));
}
}
void SearchDialog::slotHelpRequested()
{
PimCommon::Util::invokeHelp(QStringLiteral("korganizer/search-view.html"));
......
......@@ -44,8 +44,6 @@ public:
private Q_SLOTS:
void popupMenu(const QPoint &point);
void slotDeleteSelection();
void slotEditSelection();
void slotHelpRequested();
Q_SIGNALS:
......
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