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
11
class
QPushButton;
12
class
QLineEdit;
13
14
class
SearchWidget
:
public
QWidget
15
{
16
Q_OBJECT
17
public
:
18
explicit
SearchWidget
(QWidget *parent =
nullptr
);
19
20
Q_SIGNALS:
21
void
findNext
(
const
QString &text);
22
void
findPrevious
(
const
QString &text);
23
24
protected
:
25
void
changeEvent
(QEvent *e)
override
;
26
27
private
:
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
};
SearchWidget::findNext
void findNext(const QString &text)
SearchWidget::changeEvent
void changeEvent(QEvent *e) override
Definition
SearchWidget.cpp:63
SearchWidget::findPrevious
void findPrevious(const QString &text)
SearchWidget::SearchWidget
SearchWidget(QWidget *parent=nullptr)
Definition
SearchWidget.cpp:14
src
lib
gui
widgets
SearchWidget.h
Generated by
1.16.1