added new param-editing to APs and Beacons
changed drawing for better debuging changed layer editing option to add and delete layers some minor changes
This commit is contained in:
@@ -68,11 +68,14 @@ ElementParamWidget::ElementParamWidget(QWidget *parent) : QWidget(parent) {
|
||||
|
||||
this->lay = new QGridLayout(this);
|
||||
|
||||
setMinimumSize(100, 100);
|
||||
setMaximumWidth(250);
|
||||
//setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
|
||||
//lay->setSizeConstraint(QLayout::SetMinAndMaxSize);
|
||||
setMinimumSize(200, 25);
|
||||
setMaximumSize(200, 9999);
|
||||
//setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
||||
|
||||
//setTitle("MapElement Parameters");
|
||||
QGridLayout* lay = new QGridLayout();
|
||||
lay = new QGridLayout();
|
||||
|
||||
// start empty
|
||||
setElement(nullptr);
|
||||
@@ -90,7 +93,6 @@ void ElementParamWidget::refresh() {
|
||||
|
||||
while ( QWidget* w = this->findChild<QWidget*>() ) {delete w;}
|
||||
delete this->layout();
|
||||
|
||||
this->lay = new QGridLayout();
|
||||
this->setLayout(lay);
|
||||
int r = 0;
|
||||
@@ -269,8 +271,20 @@ void ElementParamWidget::refresh() {
|
||||
}
|
||||
}
|
||||
|
||||
//setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
//lay->setSizeConstraint(QLayout::SetMinimumSize);
|
||||
//setLayout(lay);
|
||||
setMinimumSize(150, 30+r*24);
|
||||
setMaximumSize(250, 30+r*24);
|
||||
//resize(100, 20+r*22);
|
||||
//emit update();
|
||||
//setVisible(false);
|
||||
//setVisible(true);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void ElementParamWidget::onMaterialChange() {
|
||||
IHasMaterial* el = dynamic_cast<IHasMaterial*>(this->curElement);
|
||||
if (el) {el->setMaterial( (Floorplan::Material) material.cmb->currentData().toInt() );}
|
||||
|
||||
Reference in New Issue
Block a user