Deskflow 1.26.0.176
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
SearchWidget.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2026 Chris Rizzitello <sithlord48@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QWidget>
10
11class QPushButton;
12class QLineEdit;
13
14class SearchWidget : public QWidget
15{
16 Q_OBJECT
17public:
18 explicit SearchWidget(QWidget *parent = nullptr);
19 bool isExpanded() const;
20
21Q_SIGNALS:
22 void findNext(const QString &text);
23 void findPrevious(const QString &text);
24
25protected:
26 void changeEvent(QEvent *e) override;
27
28private:
29 void toggleVisible(bool visible = false);
30 void setText();
31 void next();
32 void previous();
33 QPushButton *m_btnToggle = nullptr;
34 QPushButton *m_btnNext = nullptr;
35 QPushButton *m_btnPrev = nullptr;
36 QLineEdit *m_searchLine = nullptr;
37};
void findNext(const QString &text)
void changeEvent(QEvent *e) override
Definition SearchWidget.cpp:68
void findPrevious(const QString &text)
bool isExpanded() const
Definition SearchWidget.cpp:63
SearchWidget(QWidget *parent=nullptr)
Definition SearchWidget.cpp:14