anfaengliche z-index vertauschung
git-svn-id: http://svn.lsim.tuxzone.org/trunk@17 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
***************************************************************************/
|
||||
#include "homobfieldwidget.h"
|
||||
#include "homobfielditem.h"
|
||||
#include "simulscene.h"
|
||||
#include "expdoublespinbox.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QtDebug>
|
||||
@@ -27,6 +28,7 @@
|
||||
#include <QLabel>
|
||||
#include <QRadioButton>
|
||||
#include <QButtonGroup>
|
||||
#include <QPushButton>
|
||||
HomoBFieldWidget::HomoBFieldWidget(QWidget* parent, Qt::WindowFlags f, HomoBFieldItem* bField):QWidget(parent, f) {
|
||||
|
||||
homoBField = bField;
|
||||
@@ -108,6 +110,7 @@ void HomoBFieldWidget::createWidget() {
|
||||
connect(homoBField ,SIGNAL(directionChanged(bool)),intoPlaneButton, SLOT(setChecked(bool)) );
|
||||
connect(intoPlaneButton, SIGNAL(toggled(bool)),homoBField ,SLOT(setIsDirectionIntoPlane(bool)) );
|
||||
|
||||
|
||||
QButtonGroup* directionGroup = new QButtonGroup();
|
||||
directionGroup->addButton(intoPlaneButton);
|
||||
directionGroup->addButton(outOfPlaneButton);
|
||||
@@ -120,14 +123,16 @@ void HomoBFieldWidget::createWidget() {
|
||||
QGroupBox* fieldDirectionBox = new QGroupBox(tr("Feldrichtung"));
|
||||
fieldDirectionBox->setLayout(directionGridLayout);
|
||||
|
||||
|
||||
|
||||
|
||||
//SimulScene* theScene = dynamic_cast<SimulScene*>(homoBField->scene());
|
||||
//qDebug()<<theScene;
|
||||
//QPushButton* downButton = new QPushButton("down");
|
||||
//connect( downButton,SIGNAL(clicked()),theScene, SLOT(moveSelectedFieldItemDown()) );
|
||||
|
||||
QVBoxLayout * mainLayout = new QVBoxLayout(this);
|
||||
mainLayout -> addWidget(geometryBox);
|
||||
mainLayout -> addWidget(fieldDirectionBox);
|
||||
mainLayout -> addWidget(fieldConstantsBox);
|
||||
//mainLayout -> addWidget(downButton);
|
||||
mainLayout -> addStretch();
|
||||
|
||||
QWidget::setTabOrder (posXBox, posYBox);
|
||||
|
||||
Reference in New Issue
Block a user