Example #1
0
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));
}
Example #3
0
//ui--->qml
void PropertiesPane::setSGameName(QString name)
{
    if(namepr.isEmpty())
        return;
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("objectName",name);
}
Example #4
0
void PropertiesPane::setSScale(double value)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("scale",value);
}
Example #5
0
void PropertiesPane::setSCol(int col)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("cols",col);
}
Example #6
0
void PropertiesPane::setSRow(int row)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("rows",row);
}
Example #7
0
void PropertiesPane::setSVisible(bool value)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("shadowVisible",value);
}
Example #8
0
void PropertiesPane::setSYanchor(int yanchor)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("anchorY",yanchor);
}
Example #9
0
void PropertiesPane::setSXanchor(int xanchor)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("anchorX",xanchor);
//    qDebug()<<"anchorx:"<<xanchor;
}
Example #10
0
void PropertiesPane::setSH(int h)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("h",h);
}
Example #11
0
void PropertiesPane::setSW(int w)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("w",w);
}
Example #12
0
void PropertiesPane::setSY(int y)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("y",y);
}
Example #13
0
void PropertiesPane::setSX(int x)
{
    QDeclarativeItem* tm = root->findChild<QDeclarativeItem *>(namepr);
    tm->setProperty("x",x);
}