mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Added the skeleton for the Ruler Item,
The ruler will deliver the Time and the Depth, later. it should be vertical or horizontal, and will have ticks Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
52a0e6c82d
commit
636550d413
2 changed files with 60 additions and 0 deletions
|
|
@ -189,3 +189,42 @@ void DivePlanner::mouseReleaseEvent(QMouseEvent* event)
|
|||
DiveHandler::DiveHandler(): QGraphicsEllipseItem(), from(0), to(0)
|
||||
{
|
||||
}
|
||||
|
||||
void Ruler::setMaximum(double maximum)
|
||||
{
|
||||
qDeleteAll(ticks);
|
||||
max = maximum;
|
||||
updateTicks();
|
||||
}
|
||||
|
||||
void Ruler::setMinimum(double minimum)
|
||||
{
|
||||
qDeleteAll(ticks);
|
||||
min = minimum;
|
||||
updateTicks();
|
||||
}
|
||||
|
||||
Ruler::Ruler() : orientation(Qt::Horizontal)
|
||||
{
|
||||
}
|
||||
|
||||
void Ruler::setOrientation(Qt::Orientation o)
|
||||
{
|
||||
orientation = o;
|
||||
updateTicks();
|
||||
}
|
||||
|
||||
void Ruler::updateTicks()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Ruler::setLine(qreal x1, qreal y1, qreal x2, qreal y2)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Ruler::setTickInterval(double interval)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue