1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
12 #include <qcheckbox.h>
15 #define DEBUG_SIMPLE_BOOL( cfgname, layout ) \
17 QCheckBox * foo = new QCheckBox( cfgname, this ); \
18 foo->setObjectName( "kcfg_" cfgname ); \
19 layout->addWidget( foo ); \
22 DlgDebug::DlgDebug( QWidget
* parent
)
25 QVBoxLayout
* lay
= new QVBoxLayout( this );
28 DEBUG_SIMPLE_BOOL( "DebugDrawBoundaries", lay
);
29 DEBUG_SIMPLE_BOOL( "DebugDrawAnnotationRect", lay
);
30 DEBUG_SIMPLE_BOOL( "TocPageColumn", lay
);
32 lay
->addItem( new QSpacerItem( 5, 5, QSizePolicy::Fixed
, QSizePolicy::MinimumExpanding
) );