From 88413aaa75cee53adc0477ebdb39f55f867e2a77 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Thu, 4 Nov 2021 12:26:35 +0200 Subject: Added "renamed" signal to KEditListBox. This does not break the existing API, it only adds one new signal. Signed-off-by: Mavridis Philippe --- tdeui/keditlistbox.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tdeui/keditlistbox.cpp') diff --git a/tdeui/keditlistbox.cpp b/tdeui/keditlistbox.cpp index bd7bb76b5..4b224ede0 100644 --- a/tdeui/keditlistbox.cpp +++ b/tdeui/keditlistbox.cpp @@ -174,10 +174,12 @@ void KEditListBox::typedSomething(const TQString& text) // of currentItem() ... like changing it or emitting signals ... // but TT disagree with me on this one (it's been that way since ages ... grrr) bool block = m_listBox->signalsBlocked(); + const TQString& oldText = currentText(); m_listBox->blockSignals( true ); m_listBox->changeItem(text, currentItem()); m_listBox->blockSignals( block ); emit changed(); + emit renamed(oldText, text); } } -- cgit v1.2.1