anfaengliche z-index vertauschung

git-svn-id: http://svn.lsim.tuxzone.org/trunk@17 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
catdog2
2008-11-16 22:18:15 +00:00
parent 12fd597883
commit 7c332f2358
8 changed files with 172 additions and 61 deletions

View File

@@ -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);