traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/core ViewPort.cpp


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/core ViewPort.cpp
Date: Tue, 12 Feb 2008 18:40:06 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       08/02/12 18:40:06

Modified files:
        src/core       : ViewPort.cpp 

Log message:
        * hide holdcursor text item in reset()

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/core/ViewPort.cpp?cvsroot=traverso&r1=1.33&r2=1.34

Patches:
Index: ViewPort.cpp
===================================================================
RCS file: /sources/traverso/traverso/src/core/ViewPort.cpp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- ViewPort.cpp        12 Feb 2008 17:31:49 -0000      1.33
+++ ViewPort.cpp        12 Feb 2008 18:40:06 -0000      1.34
@@ -332,12 +332,12 @@
        m_text = text;
        
        if (!m_text.isEmpty()) {
+               QString html = "<html><body bgcolor=ghostwhite>" + m_text + 
"</body></html>";
+               m_textItem->setHtml(html);
                m_textItem->show();
        } else {
                m_textItem->hide();
        }
-       QString html = "<html><body bgcolor=ghostwhite>" + m_text + 
"</body></html>";
-       m_textItem->setHtml(html);
 }
 
 void HoldCursor::set_type( const QString & type )
@@ -356,6 +356,7 @@
 void HoldCursor::reset()
 {
        m_text = "";
+       m_textItem->hide();
 }
 
 void HoldCursor::set_pos(QPoint p)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]