[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeui
From: David Faure <faure () kde ! org>
Date: 2009-02-17 20:41:45
Message-ID: 1234903305.382670.16551.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 927543 by dfaure:
test prog for KTextBrowser;
document the trick for calling setSource without calling the protected setSource \
reimplementation, after Dario Andres asked about it.
M +1 -0 tests/CMakeLists.txt
A tests/ktextbrowsertest.cpp [License: LGPL (v2+)]
M +8 -4 widgets/ktextbrowser.h
--- trunk/KDE/kdelibs/kdeui/tests/CMakeLists.txt #927542:927543
@@ -75,6 +75,7 @@
ksystemtraytest
ktreewidgetsearchlinetest
ktextedittest
+ ktextbrowsertest
kmainwindowtest
kmainwindowrestoretest
kcodecactiontest
--- trunk/KDE/kdelibs/kdeui/widgets/ktextbrowser.h #927542:927543
@@ -35,7 +35,7 @@
* invoke the system mailer or the system browser when a link is
* activated, or it can emit the signal urlClick() or mailClick()
* when a link is activated.
- *
+ *
* If the link starts with the text "whatsthis:" a QWhatsThis
* box will appear and then display the rest of the text.
*
@@ -44,7 +44,7 @@
* @author Espen Sand (espensa@online.no)
*/
-class KDEUI_EXPORT KTextBrowser : public QTextBrowser //krazy:exclude=qclasses
+class KDEUI_EXPORT KTextBrowser : public QTextBrowser
{
Q_OBJECT
Q_PROPERTY( bool notifyClick READ isNotifyClick WRITE setNotifyClick )
@@ -79,8 +79,12 @@
protected:
/**
- * Reimplemented to NOT set the source but to do the special handling.
- * Do not call.
+ * Reimplemented to NOT set the source but to do the special handling
+ * of links being clicked. Do not call this.
+ *
+ * If you need to set an initial source url in the text browser, call
+ * the QTextBrowser method explicitely, like this:
+ * <code>myTextBrowser->QTextBrowser::setSource(url)</code>
*/
void setSource( const QUrl& name );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic