File indexing completed on 2024-04-28 15:51:42
0001 /* 0002 SPDX-FileCopyrightText: 2006 Pino Toscano <toscano.pino@tiscali.it> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "dlgdebug.h" 0008 0009 #include <QCheckBox> 0010 #include <QLayout> 0011 0012 #define DEBUG_SIMPLE_BOOL(cfgname, layout) \ 0013 { \ 0014 QCheckBox *foo = new QCheckBox(QStringLiteral(cfgname), this); \ 0015 foo->setObjectName(QStringLiteral("kcfg_" cfgname)); \ 0016 layout->addWidget(foo); \ 0017 } 0018 0019 DlgDebug::DlgDebug(QWidget *parent) 0020 : QWidget(parent) 0021 { 0022 QVBoxLayout *lay = new QVBoxLayout(this); 0023 lay->setContentsMargins(0, 0, 0, 0); 0024 0025 DEBUG_SIMPLE_BOOL("DebugDrawBoundaries", lay); 0026 DEBUG_SIMPLE_BOOL("DebugDrawAnnotationRect", lay); 0027 DEBUG_SIMPLE_BOOL("TocPageColumn", lay); 0028 0029 lay->addItem(new QSpacerItem(5, 5, QSizePolicy::Fixed, QSizePolicy::MinimumExpanding)); 0030 }