void QtPropertyDataIntrospection::CreateCustomButtonsForRenderObject()
{
	if(NULL != info && (info->Type() == DAVA::MetaInfo::Instance<DAVA::RenderObject>()))
	{
		QPushButton *bakeButton = new QPushButton(QIcon(":/QtIcons/transform_bake.png"), "");
		bakeButton->setToolTip("Bake Transform");
		bakeButton->setIconSize(QSize(12, 12));
		AddOW(QtPropertyOW(bakeButton));
		QObject::connect(bakeButton, SIGNAL(pressed()), this, SLOT(BakeTransform()));
	}
}
Ejemplo n.º 2
0
QtPropertyDataDavaKeyedArcive::QtPropertyDataDavaKeyedArcive(DAVA::KeyedArchive *archive)
    : curArchive(archive)
    , lastAddedType(DAVA::VariantType::TYPE_STRING)
{
    if(NULL != curArchive)
    {
        curArchive->Retain();
    }

    SetFlags(FLAG_IS_DISABLED);
    ChildsSync();

    // add optional widget (button) to add new key
    QPushButton *addButton = new QPushButton(QIcon(":/QtIcons/keyplus.png"), "");
    addButton->setIconSize(QSize(12, 12));
    AddOW(QtPropertyOW(addButton));
    QObject::connect(addButton, SIGNAL(pressed()), this, SLOT(AddKeyedArchiveField()));
}