diff -r 7a71a914afdb -r 6d2b32f305f9 branchpropwindow.cpp --- a/branchpropwindow.cpp Thu May 07 08:48:53 2009 +0000 +++ b/branchpropwindow.cpp Wed May 13 08:26:27 2009 +0000 @@ -27,13 +27,14 @@ ui.framePenColorButton->setPixmap (pix); ui.frameBrushColorButton->setPixmap (pix); - // Create Model and View to hold attributes + // Create Model and View to hold attributes + /* attributeModel = new QStandardItemModel (1,3,this); attributeModel->setHeaderData(0, Qt::Horizontal, tr("Name","Branchprop window: Attribute name")); attributeModel->setHeaderData(1, Qt::Horizontal, tr("Value","Branchprop window: Attribute value")); attributeModel->setHeaderData(2, Qt::Horizontal, tr("Type","Branchprop window: Attribute type")); ui.attributeTableView->setModel (attributeModel); - + */ // Load Settings resize (settings.value ( "/satellite/propertywindow/geometry/size", QSize(450,600)).toSize()); @@ -56,7 +57,7 @@ settings.setValue( "/satellite/propertywindow/showWithMain",isVisible() ); } -void BranchPropertyWindow::setBranch (BranchObj *bo) +void BranchPropertyWindow::setBranch (BranchObj *bo) //FIXME-2 maybe do this via signals emitted anyway from model? { disconnectSignals(); branch=bo; @@ -122,10 +123,10 @@ else ui.incImgHor->setCheckState (Qt::Unchecked); +/* // Attributes attributeModel->removeRows(0, attributeModel->rowCount(), QModelIndex()); -/* // FIXME-3 some samples for attribute testing QStringList attrTypes=mapEditor->attributeTable()->getTypes(); for (int i=0; i