Tome
A generic data editor for games supporting arbitrary input and output formats.
Public Member Functions | List of all members
Tome::Vector2RWidget Class Reference

Allows editing two-dimensional vectors with real components. More...

#include <vector2rwidget.h>

Inheritance diagram for Tome::Vector2RWidget:

Public Member Functions

 Vector2RWidget (QWidget *parent=0)
 Constructs a new widget for editing two-dimensional vectors with real components. More...
 
QVariant getValue () const
 Returns the vector as QVariantMap with keys BuiltInType::Vector::X and BuiltInType::Vector::Y. More...
 
void setValue (const QVariant &v)
 Sets the current vector. More...
 

Detailed Description

Allows editing two-dimensional vectors with real components.

Constructor & Destructor Documentation

◆ Vector2RWidget()

Vector2RWidget::Vector2RWidget ( QWidget *  parent = 0)
explicit

Constructs a new widget for editing two-dimensional vectors with real components.

Parameters
parentOptional owner widget.

Member Function Documentation

◆ getValue()

QVariant Vector2RWidget::getValue ( ) const

Returns the vector as QVariantMap with keys BuiltInType::Vector::X and BuiltInType::Vector::Y.

Returns
Current vector.

◆ setValue()

void Vector2RWidget::setValue ( const QVariant &  v)

Sets the current vector.

Parameters
vVector as QVariantMap with keys BuiltInType::Vector::X and BuiltInType::Vector::Y.

The documentation for this class was generated from the following files: