Bitcoin Core
32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
src
qt
qvaluecombobox.h
Go to the documentation of this file.
1
// Copyright (c) 2011-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_QT_QVALUECOMBOBOX_H
6
#define BITCOIN_QT_QVALUECOMBOBOX_H
7
8
#include <QComboBox>
9
#include <QVariant>
10
11
/* QComboBox that can be used with QDataWidgetMapper to select ordinal values from a model. */
12
class
QValueComboBox
:
public
QComboBox
13
{
14
Q_OBJECT
15
16
Q_PROPERTY
(
QVariant
value
READ
value
WRITE
setValue
NOTIFY
valueChanged
USER
true
)
17
18
public
:
19
explicit
QValueComboBox
(QWidget *parent =
nullptr
);
20
21
QVariant
value
()
const
;
22
void
setValue
(
const
QVariant
&
value
);
23
24
Q_SIGNALS
:
25
void
valueChanged
();
26
27
private
:
28
int
role
{Qt::UserRole};
29
30
private
Q_SLOTS
:
31
void
handleSelectionChanged
(
int
idx);
32
};
33
34
#endif
// BITCOIN_QT_QVALUECOMBOBOX_H
QValueComboBox
Definition
qvaluecombobox.h:13
QValueComboBox::valueChanged
void valueChanged()
QValueComboBox::handleSelectionChanged
void handleSelectionChanged(int idx)
Definition
qvaluecombobox.cpp:23
QValueComboBox::role
int role
Definition
qvaluecombobox.h:28
QValueComboBox::value
QVariant value
Definition
qvaluecombobox.h:16
QValueComboBox::setValue
void setValue(const QVariant &value)
Definition
qvaluecombobox.cpp:18
Ticks
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition
time.h:82
Generated on Mon Nov 2 2026 20:00:26 for Bitcoin Core by
1.9.8