void FieldContainerViewCtl::newSlot(void) { QString emptyStr(""); _fieldContainer.clear(); setCaption( trUtf8( "OpenSG Field Container Editor " ) ); nodeNameInput->blockSignals(true); nodeNameInput->setText(emptyStr); nodeNameInput->blockSignals(false); nodeParentInput->blockSignals(true); nodeParentInput->setText(emptyStr); nodeParentInput->blockSignals(false); nodeLibraryInput->blockSignals(true); nodeLibraryInput->setText(emptyStr); nodeLibraryInput->blockSignals(false); pointerFieldTypesCombo->blockSignals(true); pointerFieldTypesCombo->setCurrentItem(0); pointerFieldTypesCombo->blockSignals(false); nodeDescriptionInput->blockSignals(true); nodeDescriptionInput->setText(emptyStr); nodeDescriptionInput->blockSignals(false); partFrame->setEnabled(FALSE); _activePartIndex = -1; _activePart = 0; updateActivePartView(); updateList(); }
void matchStr() const { givenACodeSampleToTokenize noStr1("abc", true); ASSERT_EQUALS(false, Token::Match(noStr1.tokens(), "%str%")); givenACodeSampleToTokenize noStr2("'a'", true); ASSERT_EQUALS(false, Token::Match(noStr2.tokens(), "%str%")); givenACodeSampleToTokenize str("\"abc\"", true); ASSERT_EQUALS(true, Token::Match(str.tokens(), "%str%")); // Empty string givenACodeSampleToTokenize emptyStr("\"\"", true); ASSERT_EQUALS(true, Token::Match(emptyStr.tokens(), "%str%")); }
void QGVSubGraph::setAttribute(const QString &name, const QString &value) { QString emptyStr(""); agsafeset(_sgraph->graph(), name.toLocal8Bit().data(), value.toLocal8Bit().data(), emptyStr.toLocal8Bit().data()); }
void QGVEdge::setAttribute(const QString &name, const QString &value) { QString emptyStr(""); agsafeset(_edge->edge(), name.toLocal8Bit().data(), value.toLocal8Bit().data(), emptyStr.toLocal8Bit().data()); }