diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2017-03-14 11:48:58 +0100 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2017-03-14 11:48:58 +0100 |
commit | 16e28b16c7079e935097f97788255387352da0aa (patch) | |
tree | 5cdc5975752fb1cbff44b5bfaebbff07030b6146 /lcov/src/qprogressindicator.h.gcov.html | |
parent | e87f5762d4d0927eaeed5988327e7c86839fe485 (diff) |
added lcov
Diffstat (limited to 'lcov/src/qprogressindicator.h.gcov.html')
-rw-r--r-- | lcov/src/qprogressindicator.h.gcov.html | 184 |
1 files changed, 184 insertions, 0 deletions
diff --git a/lcov/src/qprogressindicator.h.gcov.html b/lcov/src/qprogressindicator.h.gcov.html new file mode 100644 index 00000000..41f2850b --- /dev/null +++ b/lcov/src/qprogressindicator.h.gcov.html @@ -0,0 +1,184 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> + +<html lang="en"> + +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>LCOV - .lcov.total - src/qprogressindicator.h</title> + <link rel="stylesheet" type="text/css" href="../gcov.css"> +</head> + +<body> + + <table width="100%" border=0 cellspacing=0 cellpadding=0> + <tr><td class="title">LCOV - code coverage report</td></tr> + <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr> + + <tr> + <td width="100%"> + <table cellpadding=1 border=0 width="100%"> + <tr> + <td width="10%" class="headerItem">Current view:</td> + <td width="35%" class="headerValue"><a href="../index.html">top level</a> - <a href="index.html">src</a> - qprogressindicator.h<span style="font-size: 80%;"> (source / <a href="qprogressindicator.h.func-sort-c.html">functions</a>)</span></td> + <td width="5%"></td> + <td width="15%"></td> + <td width="10%" class="headerCovTableHead">Hit</td> + <td width="10%" class="headerCovTableHead">Total</td> + <td width="15%" class="headerCovTableHead">Coverage</td> + </tr> + <tr> + <td class="headerItem">Test:</td> + <td class="headerValue">.lcov.total</td> + <td></td> + <td class="headerItem">Lines:</td> + <td class="headerCovTableEntry">0</td> + <td class="headerCovTableEntry">3</td> + <td class="headerCovTableEntryLo">0.0 %</td> + </tr> + <tr> + <td class="headerItem">Date:</td> + <td class="headerValue">2017-03-14 11:46:08</td> + <td></td> + <td class="headerItem">Functions:</td> + <td class="headerCovTableEntry">0</td> + <td class="headerCovTableEntry">7</td> + <td class="headerCovTableEntryLo">0.0 %</td> + </tr> + <tr><td><img src="../glass.png" width=3 height=3 alt=""></td></tr> + </table> + </td> + </tr> + + <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr> + </table> + + <table cellpadding=0 cellspacing=0 border=0> + <tr> + <td><br></td> + </tr> + <tr> + <td> +<pre class="sourceHeading"> Line data Source code</pre> +<pre class="source"> +<a name="1"><span class="lineNum"> 1 </span> : #ifndef QPROGRESSINDICATOR_H_</a> +<span class="lineNum"> 2 </span> : #define QPROGRESSINDICATOR_H_ +<span class="lineNum"> 3 </span> : +<span class="lineNum"> 4 </span> : #include <QColor> +<span class="lineNum"> 5 </span> : #include <QWidget> +<span class="lineNum"> 6 </span> : +<span class="lineNum"> 7 </span> : /*! +<span class="lineNum"> 8 </span> : \class QProgressIndicator +<span class="lineNum"> 9 </span> : \brief The QProgressIndicator class lets an application display a progress +<span class="lineNum"> 10 </span> : indicator to show that a lengthy task is under way. +<span class="lineNum"> 11 </span> : +<span class="lineNum"> 12 </span> : Progress indicators are indeterminate and do nothing more than spin to show +<span class="lineNum"> 13 </span> : that the application is busy. +<a name="14"><span class="lineNum"> 14 </span> : \sa QProgressBar</a> +<span class="lineNum"> 15 </span> : */ +<span class="lineNum"> 16 </span><span class="lineNoCov"> 0 : class QProgressIndicator : public QWidget {</span> +<span class="lineNum"> 17 </span> : Q_OBJECT +<span class="lineNum"> 18 </span> : /** +<span class="lineNum"> 19 </span> : * @brief QProgressIndicator::delay in miliseconds. +<span class="lineNum"> 20 </span> : */ +<span class="lineNum"> 21 </span> : Q_PROPERTY(int delay READ animationDelay WRITE setAnimationDelay) +<span class="lineNum"> 22 </span> : /** +<span class="lineNum"> 23 </span> : * @brief QProgressIndicator::displayedWhenStopped render when not spinning. +<span class="lineNum"> 24 </span> : */ +<span class="lineNum"> 25 </span> : Q_PROPERTY(bool displayedWhenStopped READ isDisplayedWhenStopped WRITE +<span class="lineNum"> 26 </span> : setDisplayedWhenStopped) +<span class="lineNum"> 27 </span> : /** +<span class="lineNum"> 28 </span> : * @brief QProgressIndicator::color of the component.. +<span class="lineNum"> 29 </span> : */ +<span class="lineNum"> 30 </span> : Q_PROPERTY(QColor color READ color WRITE setColor) +<span class="lineNum"> 31 </span> : +<span class="lineNum"> 32 </span> : public: +<span class="lineNum"> 33 </span> : explicit QProgressIndicator(QWidget *parent = 0); +<span class="lineNum"> 34 </span> : +<span class="lineNum"> 35 </span> : /*! Returns the delay between animation steps. +<span class="lineNum"> 36 </span> : \return The number of milliseconds between animation steps. By default, +<span class="lineNum"> 37 </span> : the animation delay is set to 40 milliseconds. +<a name="38"><span class="lineNum"> 38 </span> : \sa setAnimationDelay</a> +<span class="lineNum"> 39 </span> : */ +<span class="lineNum"> 40 </span><span class="lineNoCov"> 0 : int animationDelay() const { return m_delay; }</span> +<span class="lineNum"> 41 </span> : +<span class="lineNum"> 42 </span> : /*! Returns a Boolean value indicating whether the component is currently +<span class="lineNum"> 43 </span> : animated. +<span class="lineNum"> 44 </span> : \return Animation state. +<span class="lineNum"> 45 </span> : \sa startAnimation stopAnimation +<span class="lineNum"> 46 </span> : */ +<span class="lineNum"> 47 </span> : bool isAnimated() const; +<span class="lineNum"> 48 </span> : +<span class="lineNum"> 49 </span> : /*! Returns a Boolean value indicating whether the receiver shows itself even +<span class="lineNum"> 50 </span> : when it is not animating. +<span class="lineNum"> 51 </span> : \return Return true if the progress indicator shows itself even when it is +<span class="lineNum"> 52 </span> : not animating. By default, it returns false. +<span class="lineNum"> 53 </span> : \sa setDisplayedWhenStopped +<span class="lineNum"> 54 </span> : */ +<span class="lineNum"> 55 </span> : bool isDisplayedWhenStopped() const; +<span class="lineNum"> 56 </span> : +<span class="lineNum"> 57 </span> : /*! Returns the color of the component. +<a name="58"><span class="lineNum"> 58 </span> : \sa setColor</a> +<span class="lineNum"> 59 </span> : */ +<span class="lineNum"> 60 </span><span class="lineNoCov"> 0 : const QColor &color() const { return m_color; }</span> +<span class="lineNum"> 61 </span> : +<span class="lineNum"> 62 </span> : virtual QSize sizeHint() const; +<span class="lineNum"> 63 </span> : int heightForWidth(int w) const; +<span class="lineNum"> 64 </span> : +<span class="lineNum"> 65 </span> : public slots: +<span class="lineNum"> 66 </span> : /*! Starts the spin animation. +<span class="lineNum"> 67 </span> : \sa stopAnimation isAnimated +<span class="lineNum"> 68 </span> : */ +<span class="lineNum"> 69 </span> : void startAnimation(); +<span class="lineNum"> 70 </span> : +<span class="lineNum"> 71 </span> : /*! Stops the spin animation. +<span class="lineNum"> 72 </span> : \sa startAnimation isAnimated +<span class="lineNum"> 73 </span> : */ +<span class="lineNum"> 74 </span> : void stopAnimation(); +<span class="lineNum"> 75 </span> : +<span class="lineNum"> 76 </span> : /*! Sets the delay between animation steps. +<span class="lineNum"> 77 </span> : Setting the \a delay to a value larger than 40 slows the animation, while +<span class="lineNum"> 78 </span> : setting the \a delay to a smaller value speeds it up. +<span class="lineNum"> 79 </span> : \param delay The delay, in milliseconds. +<span class="lineNum"> 80 </span> : \sa animationDelay +<span class="lineNum"> 81 </span> : */ +<span class="lineNum"> 82 </span> : void setAnimationDelay(int delay); +<span class="lineNum"> 83 </span> : +<span class="lineNum"> 84 </span> : /*! Sets whether the component hides itself when it is not animating. +<span class="lineNum"> 85 </span> : \param state The animation state. Set false to hide the progress indicator +<span class="lineNum"> 86 </span> : when it is not animating; otherwise true. +<span class="lineNum"> 87 </span> : \sa isDisplayedWhenStopped +<span class="lineNum"> 88 </span> : */ +<span class="lineNum"> 89 </span> : void setDisplayedWhenStopped(bool state); +<span class="lineNum"> 90 </span> : +<span class="lineNum"> 91 </span> : /*! Sets the color of the components to the given color. +<span class="lineNum"> 92 </span> : \sa color +<span class="lineNum"> 93 </span> : */ +<span class="lineNum"> 94 </span> : void setColor(const QColor &color); +<span class="lineNum"> 95 </span> : +<span class="lineNum"> 96 </span> : protected: +<span class="lineNum"> 97 </span> : virtual void timerEvent(QTimerEvent *event); +<span class="lineNum"> 98 </span> : virtual void paintEvent(QPaintEvent *event); +<span class="lineNum"> 99 </span> : +<span class="lineNum"> 100 </span> : private: +<span class="lineNum"> 101 </span> : int m_angle; +<span class="lineNum"> 102 </span> : int m_timerId; +<span class="lineNum"> 103 </span> : int m_delay; +<span class="lineNum"> 104 </span> : bool m_displayedWhenStopped; +<span class="lineNum"> 105 </span> : QColor m_color; +<span class="lineNum"> 106 </span> : }; +<span class="lineNum"> 107 </span> : +<span class="lineNum"> 108 </span> : #endif // QPROGRESSINDICATOR_H_ +</pre> + </td> + </tr> + </table> + <br> + + <table width="100%" border=0 cellspacing=0 cellpadding=0> + <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr> + <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.13</a></td></tr> + </table> + <br> + +</body> +</html> |