|
|
@ -174,10 +174,12 @@ void KEditListBox::typedSomething(const TQString& text)
|
|
|
|
// of currentItem() ... like changing it or emitting signals ...
|
|
|
|
// of currentItem() ... like changing it or emitting signals ...
|
|
|
|
// but TT disagree with me on this one (it's been that way since ages ... grrr)
|
|
|
|
// but TT disagree with me on this one (it's been that way since ages ... grrr)
|
|
|
|
bool block = m_listBox->signalsBlocked();
|
|
|
|
bool block = m_listBox->signalsBlocked();
|
|
|
|
|
|
|
|
const TQString& oldText = currentText();
|
|
|
|
m_listBox->blockSignals( true );
|
|
|
|
m_listBox->blockSignals( true );
|
|
|
|
m_listBox->changeItem(text, currentItem());
|
|
|
|
m_listBox->changeItem(text, currentItem());
|
|
|
|
m_listBox->blockSignals( block );
|
|
|
|
m_listBox->blockSignals( block );
|
|
|
|
emit changed();
|
|
|
|
emit changed();
|
|
|
|
|
|
|
|
emit renamed(oldText, text);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|