Core serialization examples: spacing-only clang-format changes
Marc disagreed with clang-format on some, which are thus excluded. Task-number: QTBUG-111228 Change-Id: I1402274635dba866a8160a68211874cb11dcfa61 Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 670f66eed3fd81f4b7c3e6f43d06e5bb79176527) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
253731e84e
commit
4091fe8516
@ -534,7 +534,7 @@ void CborDumper::dumpOneDetailed(int nestingLevel)
|
||||
printf(" %s%s", indent.constData(), section.toHex(' ').constData());
|
||||
|
||||
// print the decode
|
||||
QByteArray spaces(width > 0 ? width - section.size() * 3 + 1: 0, ' ');
|
||||
QByteArray spaces(width > 0 ? width - section.size() * 3 + 1 : 0, ' ');
|
||||
printf("%s # \"", spaces.constData());
|
||||
auto ptr = reinterpret_cast<const uchar *>(section.constData());
|
||||
for (int j = 0; j < section.size(); ++j)
|
||||
|
@ -4,7 +4,7 @@
|
||||
#include "nullconverter.h"
|
||||
|
||||
static NullConverter nullConverter;
|
||||
Converter* Converter::null = &nullConverter;
|
||||
Converter *Converter::null = &nullConverter;
|
||||
|
||||
QString NullConverter::name()
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ QVariant TextConverter::loadFile(QIODevice *f, Converter *&outputConverter)
|
||||
|
||||
QVariantList list;
|
||||
QTextStream in(f);
|
||||
QString line ;
|
||||
QString line;
|
||||
while (!in.atEnd()) {
|
||||
in.readLineInto(&line);
|
||||
|
||||
|
@ -27,7 +27,7 @@ MainWindow::MainWindow()
|
||||
: treeWidget(new QTreeWidget)
|
||||
{
|
||||
treeWidget->header()->setSectionResizeMode(QHeaderView::Stretch);
|
||||
treeWidget->setHeaderLabels(QStringList{ tr("Title"), tr("Location") });
|
||||
treeWidget->setHeaderLabels(QStringList{tr("Title"), tr("Location")});
|
||||
#if QT_CONFIG(clipboard) && QT_CONFIG(contextmenu)
|
||||
treeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(treeWidget, &QWidget::customContextMenuRequested,
|
||||
|
Loading…
x
Reference in New Issue
Block a user