本文整理汇总了C++中KnobGuiPtr::toolTip方法的典型用法代码示例。如果您正苦于以下问题:C++ KnobGuiPtr::toolTip方法的具体用法?C++ KnobGuiPtr::toolTip怎么用?C++ KnobGuiPtr::toolTip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KnobGuiPtr
的用法示例。
在下文中一共展示了KnobGuiPtr::toolTip方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getKnobGui
void
KnobGuiButton::createWidget(QHBoxLayout* layout)
{
KnobGuiPtr knobUI = getKnobGui();
KnobButtonPtr knob = _knob.lock();
_button = new Button( layout->parentWidget() );
if (knobUI->getLayoutType() == KnobGui::eKnobLayoutTypeTableItemWidget) {
_button->setIconSize( QSize(TO_DPIX(NATRON_SMALL_BUTTON_ICON_SIZE), TO_DPIY(NATRON_SMALL_BUTTON_ICON_SIZE)) );
} else {
_button->setIconSize( QSize(TO_DPIX(NATRON_MEDIUM_BUTTON_ICON_SIZE), TO_DPIY(NATRON_MEDIUM_BUTTON_ICON_SIZE)) );
}
loadPixmaps(false, QColor());
if (!_button->icon().isNull()) {
_button->setFixedSize(TO_DPIX(NATRON_MEDIUM_BUTTON_SIZE), TO_DPIY(NATRON_MEDIUM_BUTTON_SIZE));
}
bool checkable = knob->getIsCheckable();
if (checkable) {
_button->setCheckable(true);
bool checked = knob->getValue();
_button->setChecked(checked);
_button->setDown(checked);
}
QObject::connect( _button, SIGNAL(clicked(bool)), this, SLOT(emitValueChanged(bool)) );
if ( knobUI->hasToolTip() ) {
knobUI->toolTip(_button, getView());
}
layout->addWidget(_button);
} // KnobGuiButton::createWidget
示例2: getKnobGui
void
KnobGuiBool::updateToolTip()
{
KnobGuiPtr knob = getKnobGui();
if ( knob->hasToolTip() ) {
for (int i = 0; i < _knob.lock()->getNDimensions(); ++i) {
knob->toolTip(_checkBox, getView());
}
}
}
示例3: getKnobGui
void
KnobGuiBool::updateToolTip()
{
KnobGuiPtr knobgui = getKnobGui();
if ( knobgui->hasToolTip() ) {
KnobBoolPtr knob = _knob.lock();
if (!knob) {
return;
}
knobgui->toolTip(_checkBox, getView());
}
}
示例4: GroupBoxLabel
void
KnobGuiGroup::createWidget(QHBoxLayout* layout)
{
_button = new GroupBoxLabel( layout->parentWidget() );
KnobGuiPtr knobUI = getKnobGui();
if ( knobUI->hasToolTip() ) {
knobUI->toolTip(_button, getView());
}
_checked = _knob.lock()->getValue(DimIdx(0), getView());
_button->setFixedSize(NATRON_MEDIUM_BUTTON_SIZE, NATRON_MEDIUM_BUTTON_SIZE);
_button->setChecked(_checked);
QObject::connect( _button, SIGNAL(checked(bool)), this, SLOT(onCheckboxChecked(bool)) );
layout->addWidget(_button);
}