Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
fix: disable search menu
Browse files Browse the repository at this point in the history
Change-Id: If68b5ab1f72eaefbae9d4c8ead2283063f95f2dc
  • Loading branch information
Iceyer committed Nov 9, 2018
1 parent cef6822 commit 4efa830
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ui/widgets/search_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
namespace dstore {

SearchEdit::SearchEdit(QWidget* parent) : DSearchEdit(parent) {

auto edit = this->findChild<QLineEdit*>("Edit");
if (edit) {
edit->setContextMenuPolicy(Qt::NoContextMenu);
}
}

SearchEdit::~SearchEdit() {
Expand Down Expand Up @@ -51,4 +54,4 @@ void SearchEdit::keyPressEvent(QKeyEvent* event) {
DSearchEdit::keyPressEvent(event);
}

} // namespace dstore
} // namespace dstore

0 comments on commit 4efa830

Please sign in to comment.