Deskflow 1.24.0.365
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
FingerprintPreview.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QFrame>
10#include <net/Fingerprint.h>
11
12class QLabel;
13
14class FingerprintPreview : public QFrame
15{
16 Q_OBJECT
17public:
18 explicit FingerprintPreview(
19 QWidget *parent, const Fingerprint &fingerprint = {}, const QString &titleText = {}, bool hashMode = false
20 );
21 ~FingerprintPreview() override = default;
22 void toggleMode(bool hashMode);
23
24private:
25 QLayout *emptyLayout();
26 QLayout *sha256Layout(const Fingerprint &fingerprint = {}, const QString &titleText = {}, bool hashMode = false);
27 QLabel *m_lblHash = nullptr;
28 QLabel *m_lblArt = nullptr;
29};
~FingerprintPreview() override=default
FingerprintPreview(QWidget *parent, const Fingerprint &fingerprint={}, const QString &titleText={}, bool hashMode=false)
Definition FingerprintPreview.cpp:15
void toggleMode(bool hashMode)
Definition FingerprintPreview.cpp:31
Definition Fingerprint.h:13