本文整理汇总了C++中QLCPhysical::setBulbType方法的典型用法代码示例。如果您正苦于以下问题:C++ QLCPhysical::setBulbType方法的具体用法?C++ QLCPhysical::setBulbType怎么用?C++ QLCPhysical::setBulbType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QLCPhysical
的用法示例。
在下文中一共展示了QLCPhysical::setBulbType方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: accept
void EditMode::accept()
{
QLCPhysical physical = m_mode->physical();
physical.setBulbType(m_bulbTypeCombo->currentText());
physical.setBulbLumens(m_bulbLumensSpin->value());
physical.setBulbColourTemperature(m_bulbTempCombo->currentText().toInt());
physical.setWeight(m_weightSpin->value());
physical.setWidth(m_widthSpin->value());
physical.setHeight(m_heightSpin->value());
physical.setDepth(m_depthSpin->value());
physical.setLensName(m_lensNameCombo->currentText());
physical.setLensDegreesMin(m_lensDegreesMinSpin->value());
physical.setLensDegreesMax(m_lensDegreesMaxSpin->value());
physical.setFocusType(m_focusTypeCombo->currentText());
physical.setFocusPanMax(m_panMaxSpin->value());
physical.setFocusTiltMax(m_tiltMaxSpin->value());
physical.setPowerConsumption(m_powerConsumptionSpin->value());
physical.setDmxConnector(m_dmxConnectorCombo->currentText());
m_mode->setPhysical(physical);
m_mode->setName(m_modeNameEdit->text());
QDialog::accept();
}
示例2: physical
void QLCFixtureMode_Test::physical()
{
/* Verify that a QLCPhysical can be set & get for the mode */
QLCFixtureMode* mode = new QLCFixtureMode(m_fixtureDef);
QVERIFY(mode->physical().bulbType().isEmpty());
QLCPhysical p;
p.setBulbType("Foobar");
mode->setPhysical(p);
QVERIFY(mode->physical().bulbType() == "Foobar");
delete mode;
}
示例3: slotBulbTypeChanged
/****************************************************************************
* Physical page functions
****************************************************************************/
void EditMode::slotBulbTypeChanged(const QString &type)
{
QLCPhysical physical = m_mode->physical();
physical.setBulbType(type);
m_mode->setPhysical(physical);
}