contructor with optional parent
Definition at line 46 of file aiviewerarea.cpp. 00047 :QWidget( parent ) 00048 { 00049 //~ init 00050 00051 //# init view 00052 this->m_view = new AiView(this); 00053 this->connect(m_view ,SIGNAL(zoneZooming(int,int,int,int)), 00054 this,SIGNAL(zoneZooming(int,int,int,int))); 00055 this->connect(m_view ,SIGNAL(enabledChilds(bool)), 00056 this,SIGNAL(enabledChilds(bool))); 00057 00058 //#init horizontal margin 00059 AiHorizontalMargin *hm = new AiHorizontalMargin(this); 00060 hm->setFixedHeight(20); 00061 00062 //#init virtical margin 00063 AiVerticalMargin *vm = new AiVerticalMargin(this); 00064 vm->setFixedWidth(20); 00065 00066 QScrollArea *scroll = new QScrollArea(); 00067 scroll->setWidget( m_view ); 00068 00069 QGridLayout *gd = new QGridLayout(); 00070 gd->addWidget(hm,0,1,Qt::AlignTop ); 00071 gd->addWidget(vm,1,0,Qt::AlignLeft); 00072 gd->addWidget(scroll,1,1); 00073 00074 this->setLayout( gd ); 00075 00076 } |