swift
src
gui
components
transpondercodespinbox.cpp
1
// SPDX-FileCopyrightText: Copyright (C) 2013 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
4
#include "
gui/components/transpondercodespinbox.h
"
5
6
#include <QChar>
7
8
namespace
swift::gui::components
9
{
10
CTransponderCodeSpinBox::CTransponderCodeSpinBox
(
QWidget
*parent) :
QSpinBox
(parent) {}
11
12
QString
CTransponderCodeSpinBox::textFromValue
(
int
value)
const
13
{
14
/* 4 - number of digits, 10 - base of number, '0' - pad character*/
15
return
QStringLiteral(
"%1"
).
arg
(
value
, 4, 10,
QChar
(
'0'
));
16
}
17
}
// namespace swift::gui::components
swift::gui::components::CTransponderCodeSpinBox::textFromValue
QString textFromValue(int value) const
Definition:
transpondercodespinbox.cpp:12
swift::gui::components::CTransponderCodeSpinBox::CTransponderCodeSpinBox
CTransponderCodeSpinBox(QWidget *parent=nullptr)
Constructor.
Definition:
transpondercodespinbox.cpp:10
swift::gui::components
High level reusable GUI components.
Definition:
aboutdialog.cpp:14
QChar
QSpinBox
QSpinBox::value
value
QString
QString::arg
QString arg(Args &&... args) const const
QWidget
transpondercodespinbox.h
Generated on Thu Nov 20 2025 23:56:10 for swift by
1.9.1