void PropertiesPane::setSParent(QString f) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("parentName",f); // qDebug()<<f; }
void LiveViewWindow::showSingleCamera(DVRCamera *camera) { m_liveView->layout()->setGridSize(1, 1); QDeclarativeItem *item = m_liveView->layout()->addItem(0, 0); if (item) item->setProperty("camera", QVariant::fromValue(camera)); }
//ui--->qml void PropertiesPane::setSGameName(QString name) { if(namepr.isEmpty()) return; QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("objectName",name); }
void PropertiesPane::setSScale(double value) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("scale",value); }
void PropertiesPane::setSCol(int col) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("cols",col); }
void PropertiesPane::setSRow(int row) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("rows",row); }
void PropertiesPane::setSVisible(bool value) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("shadowVisible",value); }
void PropertiesPane::setSYanchor(int yanchor) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("anchorY",yanchor); }
void PropertiesPane::setSXanchor(int xanchor) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("anchorX",xanchor); // qDebug()<<"anchorx:"<<xanchor; }
void PropertiesPane::setSH(int h) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("h",h); }
void PropertiesPane::setSW(int w) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("w",w); }
void PropertiesPane::setSY(int y) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("y",y); }
void PropertiesPane::setSX(int x) { QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr); tm->setProperty("x",x); }