From kde-core-devel Wed Jan 30 20:10:15 2002 From: Wilco Greven Date: Wed, 30 Jan 2002 20:10:15 +0000 To: kde-core-devel Subject: PATCH: Adding showProgressInfo accessor to ReadOnlyPart X-MARC-Message: https://marc.info/?l=kde-core-devel&m=101242134017417 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------Boundary-00=_3DPRYLLENW6RO7XSEJJH" --------------Boundary-00=_3DPRYLLENW6RO7XSEJJH Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, The following patch renames ReadOnlyPart::showProgressInfo(bool) to=20 setProgressInfoEnabled(bool) and adds an accessor isProgressInfoEnabled()= =2E=20 The accessor is useful to have in KGhostView. Greetings, Wilco --------------Boundary-00=_3DPRYLLENW6RO7XSEJJH Content-Type: text/x-diff; charset="us-ascii"; name="part.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="part.diff" Index: part.cpp =================================================================== RCS file: /home/kde/kdelibs/kparts/part.cpp,v retrieving revision 1.106 retrieving revision 1.107 diff -u -p -b -r1.106 -r1.107 --- part.cpp 2002/01/25 14:57:15 1.106 +++ part.cpp 2002/01/30 19:24:50 1.107 @@ -299,10 +299,22 @@ ReadOnlyPart::~ReadOnlyPart() delete d; } +void ReadOnlyPart::setProgressInfoEnabled( bool show ) +{ + d->m_showProgressInfo = show; +} + +bool ReadOnlyPart::isProgressInfoEnabled() const +{ + return d->m_showProgressInfo; +} + +#ifndef KDE_NO_COMPAT void ReadOnlyPart::showProgressInfo( bool show ) { d->m_showProgressInfo = show; } +#endif bool ReadOnlyPart::openURL( const KURL &url ) { Index: part.h =================================================================== RCS file: /home/kde/kdelibs/kparts/part.h,v retrieving revision 1.87 retrieving revision 1.88 diff -u -p -b -r1.87 -r1.88 --- part.h 2001/10/26 21:54:45 1.87 +++ part.h 2002/01/30 19:24:50 1.88 @@ -295,7 +295,17 @@ public: * signals emitted by this class, and/or those emitted by * the Job given by @ref started. */ + void setProgressInfoEnabled( bool show ); + + /** + * Returns whether the part shows the progress info dialog used by internal + * KIO job. + */ + bool isProgressInfoEnabled() const; + +#ifndef KDE_NO_COMPAT void showProgressInfo( bool show ); +#endif public slots: /** --------------Boundary-00=_3DPRYLLENW6RO7XSEJJH--