compile
[kdegraphics.git] / okular / conf / dlgdebug.cpp
blobb5b66b1798b05359253b211c30bc0d058786771f
1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <toscano.pino@tiscali.it> *
3 * *
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 ***************************************************************************/
10 #include "dlgdebug.h"
12 #include <qcheckbox.h>
13 #include <qlayout.h>
15 #define DEBUG_SIMPLE_BOOL( cfgname, layout ) \
16 { \
17 QCheckBox * foo = new QCheckBox( cfgname, this ); \
18 foo->setObjectName( "kcfg_" cfgname ); \
19 layout->addWidget( foo ); \
22 DlgDebug::DlgDebug( QWidget * parent )
23 : QWidget( parent )
25 QVBoxLayout * lay = new QVBoxLayout( this );
26 lay->setMargin( 0 );
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 ) );