Warning, file /utilities/okteta/kasten/gui/liboktetawidgets/bytearraycombobox.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the Okteta Kasten module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2006, 2009, 2011 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "bytearraycombobox.hpp" 0010 #include "bytearraycombobox_p.hpp" 0011 0012 namespace Okteta { 0013 0014 ByteArrayComboBox::ByteArrayComboBox(QWidget* parent) 0015 : QWidget(parent) 0016 , d_ptr(new ByteArrayComboBoxPrivate(this)) 0017 { 0018 Q_D(ByteArrayComboBox); 0019 0020 d->init(); 0021 } 0022 0023 ByteArrayComboBox::~ByteArrayComboBox() = default; 0024 0025 void ByteArrayComboBox::setByteArray(const QByteArray& byteArray) 0026 { 0027 Q_D(ByteArrayComboBox); 0028 0029 d->setByteArray(byteArray); 0030 } 0031 0032 void ByteArrayComboBox::setFormat(ByteArrayComboBox::Coding codecId) 0033 { 0034 Q_D(ByteArrayComboBox); 0035 0036 d->setFormat(codecId); 0037 } 0038 0039 void ByteArrayComboBox::setCharCodec(const QString& charCodecName) 0040 { 0041 Q_D(ByteArrayComboBox); 0042 0043 d->setCharCodec(charCodecName); 0044 } 0045 0046 void ByteArrayComboBox::setMaxLength(int maxLength) 0047 { 0048 Q_D(ByteArrayComboBox); 0049 0050 d->setMaxLength(maxLength); 0051 } 0052 0053 void ByteArrayComboBox::setMinLength(int minLength) 0054 { 0055 Q_D(ByteArrayComboBox); 0056 0057 d->setMinLength(minLength); 0058 } 0059 0060 void ByteArrayComboBox::rememberCurrentByteArray() 0061 { 0062 Q_D(ByteArrayComboBox); 0063 0064 d->rememberCurrentByteArray(); 0065 } 0066 0067 QByteArray ByteArrayComboBox::byteArray() const 0068 { 0069 Q_D(const ByteArrayComboBox); 0070 0071 return d->byteArray(); 0072 } 0073 0074 int ByteArrayComboBox::format() const 0075 { 0076 Q_D(const ByteArrayComboBox); 0077 0078 return d->format(); 0079 } 0080 0081 int ByteArrayComboBox::maxLength() const 0082 { 0083 Q_D(const ByteArrayComboBox); 0084 0085 return d->maxLength(); 0086 } 0087 0088 int ByteArrayComboBox::minLength() const 0089 { 0090 Q_D(const ByteArrayComboBox); 0091 0092 return d->minLength(); 0093 } 0094 0095 } 0096 0097 #include "moc_bytearraycombobox.cpp"