[yast-commit] r66978 - in /branches/SuSE-Code-11-SP2-Branch/qt: VERSION.cmake package/yast2-qt.changes src/YQRichText.cc src/YQRichText.h
Author: tgoettlicher Date: Thu Dec 1 17:53:25 2011 New Revision: 66978 URL: http://svn.opensuse.org/viewcvs/yast?rev=66978&view=rev Log: - Follow links to anchors in YQTextBrowser (bnc #727330) Modified: branches/SuSE-Code-11-SP2-Branch/qt/VERSION.cmake branches/SuSE-Code-11-SP2-Branch/qt/package/yast2-qt.changes branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.cc branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.h Modified: branches/SuSE-Code-11-SP2-Branch/qt/VERSION.cmake URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/qt/VERSION.cmake?rev=66978&r1=66977&r2=66978&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/qt/VERSION.cmake (original) +++ branches/SuSE-Code-11-SP2-Branch/qt/VERSION.cmake Thu Dec 1 17:53:25 2011 @@ -1,3 +1,3 @@ SET(VERSION_MAJOR "2") SET(VERSION_MINOR "21") -SET(VERSION_PATCH "4") +SET(VERSION_PATCH "5") Modified: branches/SuSE-Code-11-SP2-Branch/qt/package/yast2-qt.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/qt/package/yast2-qt.changes?rev=66978&r1=66977&r2=66978&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/qt/package/yast2-qt.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/qt/package/yast2-qt.changes Thu Dec 1 17:53:25 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Dec 1 17:52:42 CET 2011 - tgoettlicher@suse.de + +- Follow links to anchors in YQTextBrowser (bnc #727330) +- V 2.21.5 + +------------------------------------------------------------------- Wed May 18 17:04:43 CEST 2011 - tgoettlicher@suse.de - Fixed selection in tree widgets (bnc #680107) Modified: branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.cc?rev=66978&r1=66977&r2=66978&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.cc (original) +++ branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.cc Thu Dec 1 17:53:25 2011 @@ -236,5 +236,16 @@ } +void YQTextBrowser::setSource( const QUrl & name ) +{ + // scroll to link if it's available in the current document + // but prevent loading empty pages + + if ( name.toString().startsWith("#") ) + scrollToAnchor( name.toString().mid(1) ); + +} + + #include "YQRichText.moc" Modified: branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.h URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.h?rev=66978&r1=66977&r2=66978&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.h (original) +++ branches/SuSE-Code-11-SP2-Branch/qt/src/YQRichText.h Thu Dec 1 17:53:25 2011 @@ -189,7 +189,7 @@ * Reimplemented from QTextBrowser to avoid having an empty text each time * the user clicks on a hyperlink. **/ - virtual void setSource( const QUrl & name ) {} + virtual void setSource( const QUrl & name ); }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
tgoettlicher@svn2.opensuse.org