#include <Key.h>
Public Member Functions | |
| Key (float index, QVariant value) | |
| Constructor of the Key class. | |
| Key () | |
| Standard constructor of the Key class with inex and value = 0.0. | |
| Key (const Key &key) | |
| Copy constructor of the Key class. | |
| ~Key () | |
| Destructor of the Key class. | |
| float | getIndex () const |
| Returns the key's index. | |
| void | setIndex (float index) |
| Sets the index of the key to the given index. | |
| QVariant | getValue () const |
| Returns the key's value. | |
| void | setValue (QVariant value) |
| Sets the value of the key to the given value. | |
| Key & | operator/= (const float &fScalar) |
| Operators. | |
Private Attributes | |
| float | m_index |
| The key's index. | |
| QVariant | m_value |
| The key's value. | |
| Key::Key | ( | float | index, | |
| QVariant | value | |||
| ) |
| Key::Key | ( | ) |
| Key::Key | ( | const Key & | key | ) |
| Key::~Key | ( | ) |
Destructor of the Key class.
| float Key::getIndex | ( | ) | const |
Returns the key's index.
Public Functions.
| void Key::setIndex | ( | float | index | ) |
Sets the index of the key to the given index.
| index | The index for the key. |
| QVariant Key::getValue | ( | ) | const |
Returns the key's value.
| void Key::setValue | ( | QVariant | value | ) |
Sets the value of the key to the given value.
| value | The value for the key. |
| Key& Key::operator/= | ( | const float & | fScalar | ) | [inline] |
Operators.
Multiplies the Value of the key with the given scalar
| Thie | geven scalar |
float Key::m_index [private] |
The key's index.
QVariant Key::m_value [private] |
The key's value.
1.5.9