Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Marek Rosa
- Fri, 24 Aug 2012 09:12:10
Show More
0
src/axis/categoryaxis/qcategoryaxis.cpp
src/axis/categoryaxis/qcategoryaxis.cpp
+25
-3
@@
-28,13
+28,26
28
28
QTCOMMERCIALCHART_BEGIN_NAMESPACE
29
29
/*!
30
30
\class QCategoryAxis
31
\brief The QCategoryAxis class is used for manipulating chart's axis.
31
\brief The QCategoryAxis class allows putting a named ranges on the axis.
32
32
\mainclass
33
34
This class can be used when the underlying data needs to be given extra meaning.
35
Unlike with the QBarCategoryAxis the QCategoryAxis allows the categories ranges widths to be specified freely.
33
36
*/
34
37
35
38
/*!
36
39
\qmlclass CategoryAxis QCategoryAxis
37
\brief The Axis element is used for manipulating chart's axes.
40
\brief The QCategoryAxis class allows putting a named ranges on the axis.
41
*/
42
43
/*!
44
\property QCategoryAxis::startValue
45
Defines the low end of the first category on the axis.
46
*/
47
48
/*!
49
\qmlproperty int CategoryAxis::startValue
50
Defines the low end of the first category on the axis.
38
51
*/
39
52
40
53
/*!
@@
-90,7
+103,16
void QCategoryAxis::append(const QString& categoryLabel, qreal categoryHighEnd)
90
103
}
91
104
92
105
/*!
93
Sets to \a min the low end limit of the first category on the axis.
106
Returns the low end limit of the first category on the axis.
107
*/
108
qreal QCategoryAxis :: startValue () const
109
{
110
Q_D ( const QCategoryAxis );
111
return d -> m_categoryMinimum ;
112
}
113
114
/*!
115
Sets \a min to be the low end limit of the first category on the axis.
94
116
*/
95
117
void QCategoryAxis :: setStartValue ( qreal min )
96
118
{
0
src/axis/categoryaxis/qcategoryaxis.h
src/axis/categoryaxis/qcategoryaxis.h
+2
-1
@@
-31,6
+31,7
class QCategoryAxisPrivate;
31
31
class QTCOMMERCIALCHART_EXPORT QCategoryAxis : public QValueAxis
32
32
{
33
33
Q_OBJECT
34
Q_PROPERTY ( qreal startValue READ startValue WRITE setStartValue )
34
35
35
36
public :
36
37
explicit QCategoryAxis ( QObject * parent = 0 );
@@
-46,6
+47,7
public:
46
47
void remove ( const QString & label );
47
48
void replaceLabel ( const QString & oldLabel , const QString & newLabel );
48
49
50
qreal startValue () const ;
49
51
void setStartValue ( qreal min );
50
52
51
53
qreal categoryStart ( const QString & categoryLabel ) const ;
@@
-54,7
+56,6
public:
54
56
QStringList categoriesLabels ();
55
57
int count () const ;
56
58
57
58
59
private :
59
60
Q_DECLARE_PRIVATE ( QCategoryAxis )
60
61
Q_DISABLE_COPY ( QCategoryAxis )
0
src/axis/categoryaxis/qcategoryaxis_p.h
src/axis/categoryaxis/qcategoryaxis_p.h
0
-2
@@
-45,8
+45,6
public:
45
45
QCategoryAxisPrivate ( QCategoryAxis * q );
46
46
~ QCategoryAxisPrivate ();
47
47
48
49
public :
50
48
ChartAxis * createGraphics ( ChartPresenter * presenter );
51
49
int ticksCount () const ;
52
50
0
src/axis/datetimeaxis/qdatetimeaxis.cpp
src/axis/datetimeaxis/qdatetimeaxis.cpp
+2
-4
@@
-33,7
+33,7
QTCOMMERCIALCHART_BEGIN_NAMESPACE
33
33
\mainclass
34
34
35
35
The labels can be configured by setting an appropriate DateTime format.
36
Note that any date before 4800 BCE or after about 1.4 million CE may not be accurately stored.
36
Note that any date before 4714 BCE or after about 1.4 million CE may not be accurately stored.
37
37
QDateTimeAxis can be setup to show axis line with tick marks, grid lines and shades.
38
38
*/
39
39
@@
-42,7
+42,7
QTCOMMERCIALCHART_BEGIN_NAMESPACE
42
42
\brief The DateTimeAxis element is used for manipulating chart's axes
43
43
44
44
The labels can be configured by setting an appropriate DateTime format.
45
Note that any date before 4800 BCE or after about 1.4 million CE may not be accurately stored.
45
Note that any date before 4714 BCE or after about 1.4 million CE may not be accurately stored.
46
46
DateTimeAxis can be setup to show axis line with tick marks, grid lines and shades.
47
47
*/
48
48
@@
-175,8
+175,6
void QDateTimeAxis::setRange(QDateTime min, QDateTime max)
175
175
emit maxChanged ( max );
176
176
}
177
177
178
// if(d->m_niceNumbers) d->looseNiceNumbers(d->m_min, d->m_max, d->m_tickCount);
179
180
178
if ( changed ) {
181
179
emit rangeChanged ( d -> m_min , d -> m_max );
182
180
d -> emitUpdated ();
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages