summaryrefslogtreecommitdiffstats
path: root/lcov/src/qprogressindicator.h.gcov.html
blob: 41f2850be0f5f3c8e0e7a9790408f9b2b09efc37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
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 &lt;QColor&gt;
<span class="lineNum">       5 </span>            : #include &lt;QWidget&gt;
<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 &amp;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 &amp;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>