0028934: Coding - Eliminate compiler warnings in OCCT samples
[occt.git] / samples / qt / Common / src / Transparency.cxx
CommitLineData
7fd59977 1#include "Transparency.h"
2
55a40de8 3#include <Standard_WarningsDisable.hxx>
7fd59977 4#include <QHBoxLayout>
5#include <QSpinBox>
55a40de8 6#include <Standard_WarningsRestore.hxx>
7fd59977 7
8DialogTransparency::DialogTransparency( QWidget* parent, Qt::WindowFlags f, bool modal )
9: QDialog( parent, f )
10{
11 setModal( modal );
12 QHBoxLayout* base = new QHBoxLayout( this );
13 base->setMargin( 3 );
14 base->setSpacing( 3 );
15 QSpinBox* aSpin = new QSpinBox( this );
16 aSpin->setRange( 0, 10 );
17 aSpin->setSingleStep( 1 );
18 base->addWidget( aSpin );
19 connect( aSpin, SIGNAL( valueChanged( int ) ), this, SIGNAL( sendTransparencyChanged( int ) ) );
20}
21
22DialogTransparency::~DialogTransparency()
23{
24}