]> git.sesse.net Git - kdenlive/commitdiff
#596: Clearing unicode number clears char overview too
authorSimon A. Eugster <simon.eu@gmail.com>
Fri, 19 Jun 2009 06:55:10 +0000 (06:55 +0000)
committerSimon A. Eugster <simon.eu@gmail.com>
Fri, 19 Jun 2009 06:55:10 +0000 (06:55 +0000)
svn path=/trunk/kdenlive/; revision=3588

src/unicodedialog.cpp
src/unicodedialog.h

index 1f588b05550117eb07fd5f23197075ffdf3b00e1..173cb5dc460fc22a1828cedb916d051ba0071de6 100644 (file)
@@ -192,6 +192,12 @@ void UnicodeDialog::updateOverviewChars(uint unicode)
        
 }
 
+void UnicodeDialog::clearOverviewChars()
+{
+       leftChars->setText("");
+       rightChars->setText("");
+}
+
 QString UnicodeDialog::nextUnicode(QString text, Direction direction)
 {
        uint value = 0;
@@ -237,6 +243,7 @@ void UnicodeDialog::slotTextChanged(QString text)
        if (newText.length() == 0) {
                unicodeChar->setText("");
                unicodeNumber->setText("");
+               clearOverviewChars();
                lastCursorPos = 0;
                lastUnicodeNumber = "";
                labelInfoText->setText(unicodeInfo(""));
index 697cee96656d62ca2493a294d3ae529c49744774..0a790931f0873073562ba9a4d503ed3be0a85b5c 100644 (file)
@@ -50,6 +50,7 @@ private:
        
        /** \brief Paints previous and next characters around current char */
        void updateOverviewChars(uint unicode);
+       void clearOverviewChars();
        
        int lastCursorPos;
        QString lastUnicodeNumber;