ff7tk
1.2.0.13
Work with Final Fantasy 7 game data
src
widgets
common
DoubleCheckBox.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2012 - 2022 Chris Rizzitello <sithlord48@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
4
#pragma once
5
6
#include <QWidget>
7
#include <ff7tkqtwidgets_export.h>
8
9
class
QCheckBox;
10
class
QLabel;
11
16
class
FF7TKQTWIDGETS_EXPORT
DoubleCheckBox
:
public
QWidget
17
{
18
Q_OBJECT
19
public
:
23
explicit
DoubleCheckBox
(QWidget *parent =
nullptr
);
28
explicit
DoubleCheckBox
(
const
QString &text, QWidget *parent =
nullptr
);
29
~
DoubleCheckBox
() =
default
;
33
void
setText(
const
QString &text);
34
39
void
setChecked(
int
box,
bool
checked);
40
45
bool
isChecked(
int
box);
46
51
void
setBoxToolTip(
int
box,
const
QString &text);
52
56
void
setToolTip(
const
QString &text);
57
58
signals:
62
void
box1Toggled(
bool
checked);
63
[[ deprecated (
"will be removed in ff7tk 2.0, Use DoubleCheckbox::box1Toggled"
) ]]
void
box1_toggled(
bool
checked);
64
68
void
box2Toggled(
bool
checked);
69
[[ deprecated (
"will be removed in ff7tk 2.0, Use DoubleCheckbox::box2Toggled"
) ]]
void
box2_toggled(
bool
checked);
70
private
:
71
void
init_display();
72
QCheckBox *cb_one =
nullptr
;
73
QCheckBox *cb_two =
nullptr
;
74
QLabel *label =
nullptr
;
75
};
DoubleCheckBox
one text two checkable boxes
Definition:
DoubleCheckBox.h:16
Generated by
1.8.17