Deskflow 1.25.0.208
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
20Q_SIGNALS:
21 void findNext(const QString &text);
22 void findPrevious(const QString &text);
23
24protected:
25 void changeEvent(QEvent *e) override;
26
27private:
28 void toggleVisible(bool visible = false);
29 void setText();
30 void next();
31 void previous();
32 QPushButton *m_btnToggle = nullptr;
33 QPushButton *m_btnNext = nullptr;
34 QPushButton *m_btnPrev = nullptr;
35 QLineEdit *m_searchLine = nullptr;
36};
void findNext(const QString &text)
void changeEvent(QEvent *e) override
Definition SearchWidget.cpp:63
void findPrevious(const QString &text)
SearchWidget(QWidget *parent=nullptr)
Definition SearchWidget.cpp:14