Ejemplo n.º 1
0
void QmvListItem::setValue( const QString &v )
{
    if ( !comb )
	return;
    setText( 1, combo()->currentText() );
    QmvItem::setValue( combo()->currentText() );
    notifyValueChange();
    oldInt = currentIntItem();
    oldString = currentItem();
}
Ejemplo n.º 2
0
void QmvBoolItem::setValue()
{
    if ( !comb )
	return;
    setText( 1, combo()->currentText() );
    if ( combo()->currentItem() == 0 )
        QmvItem::setValue( str_true );
    else
        QmvItem::setValue( str_false );
    notifyValueChange();
}
Ejemplo n.º 3
0
void QmvTextItem::setValue()
{
    setText( 1, lined()->text() );
    QString v;
    if ( accel )
	v = QAccel::stringToKey( lined()->text() );
    else
	v = lined()->text();
    QmvItem::setValue( v );
    notifyValueChange();
}
Ejemplo n.º 4
0
void QmvTextItem::getText()
{
    QString txt = QString("Hello there"); //TextEditor::getText( listview, value().toString() );
    if ( !txt.isEmpty() ) {
	setText( 1, txt );
	QmvItem::setValue( txt );
	notifyValueChange();
	lined()->blockSignals( TRUE );
	lined()->setText( txt );
	lined()->blockSignals( FALSE );
    }
}
void ossimQtPropertyNumericItem::setValue()
{
   if(theLineEditor->text() == getOssimProperty()->valueToString().c_str())
   {
      return;
   }
   
   if(getOssimProperty().valid())
   {
      getOssimProperty()->setValue(theLineEditor->text().ascii());

      setText( 1, theLineEditor->text().ascii());
      notifyValueChange();
   }
}