summaryrefslogtreecommitdiffstats
path: root/tdeui/keditlistbox.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-11-04 12:26:35 +0200
committerTDE Gitea <gitea@mirror.git.trinitydesktop.org>2021-11-09 08:25:33 +0000
commit88413aaa75cee53adc0477ebdb39f55f867e2a77 (patch)
treea28e185e77edcc107030f9ddc2ef3b5108ab678a /tdeui/keditlistbox.cpp
parent81d495430ddcab805997c3945c195d2844bc1eaa (diff)
downloadtdelibs-88413aaa75cee53adc0477ebdb39f55f867e2a77.tar.gz
tdelibs-88413aaa75cee53adc0477ebdb39f55f867e2a77.zip
Added "renamed" signal to KEditListBox.
This does not break the existing API, it only adds one new signal. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'tdeui/keditlistbox.cpp')
-rw-r--r--tdeui/keditlistbox.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}
}