ui: keyboard input direct to searchbar
typing is directed to the searchbar
This commit is contained in:
@@ -44,6 +44,7 @@ QtSmartSearchBox::QtSmartSearchBox(QWidget* parent)
|
|||||||
, m_shiftKeyDown(false)
|
, m_shiftKeyDown(false)
|
||||||
, m_mousePressed(false)
|
, m_mousePressed(false)
|
||||||
{
|
{
|
||||||
|
grabKeyboard();
|
||||||
m_highlightRect = new QWidget(this);
|
m_highlightRect = new QWidget(this);
|
||||||
m_highlightRect->setGeometry(0, 0, 0, 0);
|
m_highlightRect->setGeometry(0, 0, 0, 0);
|
||||||
m_highlightRect->setObjectName("search_box_highlight");
|
m_highlightRect->setObjectName("search_box_highlight");
|
||||||
|
|||||||
Reference in New Issue
Block a user