void Doors_Controller::enableRightPanel(){ if(!m_selectRightDoors->buttonState()){ updateRight(); }else{ m_closeRightDoors->setClickeable(false); m_openRightDoors->setClickeable(false); m_closeRightDoors->turnOff(); m_openRightDoors->turnOff(); } }
NGLScene::NGLScene() { setTitle("Morph Mesh Demo"); m_weight1=0.0f; m_weight2=0.0f; m_animation=true; m_punchLeft=false; m_punchRight=false; m_timerLeft = new QTimer(); m_timerRight = new QTimer(); connect(m_timerLeft,SIGNAL(timeout()),this,SLOT(updateLeft())); connect(m_timerRight,SIGNAL(timeout()),this,SLOT(updateRight())); }
void WidgetMenuBarMapEditor::mousePressEvent(QMouseEvent *event) { QAction *action = this->actionAt(event->pos()); if (m_selection) { if (action != nullptr && action->isEnabled()) { updateSelection(action); emit selectionChanged(); } } else { if (action != nullptr && action->text() != "|" && action->isEnabled()) updateRight(action); } QMenuBar::mousePressEvent(event); }
void WidgetMenuBarMapEditor::forceRight(int i) { WidgetMenuBarMapEditor *bar = getBarRight(); QAction *action = bar->actions().at(i); updateRight(action); }
inline const glm::vec3& Camera::getRight() const{ SCREEN_DECL_METHOD(getRight); updateRight(); return _right; }