Deskflow 1.26.0.418
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
SettingsDialogButtonBox.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2026 Deskflow Developers
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#include <QWidget>
10
11class QLabel;
12class QDialogButtonBox;
13
14class SettingsDialogButtonBox : public QWidget
15{
16 Q_OBJECT
17public:
18 explicit SettingsDialogButtonBox(QWidget *parent = nullptr);
19 void enableSave(bool enable) const;
20 void enableReset(bool enable) const;
21 void enableRestoreDefaults(bool enable) const;
22Q_SIGNALS:
23 void accepted();
24 void rejected();
25 void reset();
27
28protected:
29 void changeEvent(QEvent *e) override;
30
31private:
32 void updateText();
33 void settingsWritableChanged(bool writable);
34 QDialogButtonBox *m_buttonBox = nullptr;
35 QLabel *m_lblText = nullptr;
36 QLabel *m_lblIcon = nullptr;
37};
SettingsDialogButtonBox(QWidget *parent=nullptr)
Definition SettingsDialogButtonBox.cpp:17
void enableSave(bool enable) const
Definition SettingsDialogButtonBox.cpp:50
void enableRestoreDefaults(bool enable) const
Definition SettingsDialogButtonBox.cpp:60
void enableReset(bool enable) const
Definition SettingsDialogButtonBox.cpp:55
void changeEvent(QEvent *e) override
Definition SettingsDialogButtonBox.cpp:65