[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: PATCH: Adding showProgressInfo accessor to ReadOnlyPart
From: Wilco Greven <greven () kde ! org>
Date: 2002-01-30 20:10:15
[Download RAW message or body]
Hi,
The following patch renames ReadOnlyPart::showProgressInfo(bool) to
setProgressInfoEnabled(bool) and adds an accessor isProgressInfoEnabled().
The accessor is useful to have in KGhostView.
Greetings,
Wilco
["part.diff" (text/x-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:
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic