summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profilegraphics.cpp4
-rw-r--r--qt-ui/profilegraphics.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/profilegraphics.cpp b/qt-ui/profilegraphics.cpp
index 01f627622..9c21028d9 100644
--- a/qt-ui/profilegraphics.cpp
+++ b/qt-ui/profilegraphics.cpp
@@ -550,7 +550,7 @@ void ProfileGraphicsView::plot_cylinder_pressure_text()
}
}
-void ProfileGraphicsView::plot_pressure_value(int mbar, int sec, int xalign, int yalign)
+void ProfileGraphicsView::plot_pressure_value(int mbar, int sec, double xalign, double yalign)
{
int pressure;
const char *unit;
@@ -1234,7 +1234,6 @@ void ToolTipItem::setRect(const QRectF& r)
void ToolTipItem::collapse()
{
- QRectF newRect = childrenBoundingRect();
QPropertyAnimation *animation = new QPropertyAnimation(this, "rect");
animation->setDuration(100);
animation->setStartValue(boundingRect());
@@ -1244,7 +1243,6 @@ void ToolTipItem::collapse()
void ToolTipItem::expand()
{
- QRectF currentRect = rectangle;
QRectF nextRectangle;
double width = 0, height = title->boundingRect().height() + SPACING;
diff --git a/qt-ui/profilegraphics.h b/qt-ui/profilegraphics.h
index 996c5927a..08dffd6a3 100644
--- a/qt-ui/profilegraphics.h
+++ b/qt-ui/profilegraphics.h
@@ -83,7 +83,7 @@ private:
void plot_text_samples();
void plot_depth_sample(struct plot_data *entry, text_render_options_t *tro);
void plot_cylinder_pressure_text();
- void plot_pressure_value(int mbar, int sec, int xalign, int yalign);
+ void plot_pressure_value(int mbar, int sec, double xalign, double yalign);
void plot_deco_text();
void plot_pp_gas_profile();
void plot_pp_text();