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
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
bool
isExpanded
()
const
;
20
21
Q_SIGNALS:
22
void
findNext
(
const
QString &text);
23
void
findPrevious
(
const
QString &text);
24
25
protected
:
26
void
changeEvent
(QEvent *e)
override
;
27
28
private
:
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
};
SearchWidget::findNext
void findNext(const QString &text)
SearchWidget::changeEvent
void changeEvent(QEvent *e) override
Definition
SearchWidget.cpp:68
SearchWidget::findPrevious
void findPrevious(const QString &text)
SearchWidget::isExpanded
bool isExpanded() const
Definition
SearchWidget.cpp:63
SearchWidget::SearchWidget
SearchWidget(QWidget *parent=nullptr)
Definition
SearchWidget.cpp:14
src
lib
gui
widgets
SearchWidget.h
Generated by
1.16.1