mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
second pass over compilation warnings
This commit is contained in:
parent
927f782bef
commit
f55b283887
17 changed files with 28 additions and 28 deletions
|
@ -332,10 +332,10 @@ void RSGraphWidget::paintEvent(QPaintEvent *)
|
|||
_painter->end();
|
||||
}
|
||||
|
||||
QSizeF RSGraphWidget::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const
|
||||
QSizeF RSGraphWidget::sizeHint(Qt::SizeHint which, const QSizeF& /* constraint */) const
|
||||
{
|
||||
float FS = QFontMetricsF(font()).height();
|
||||
float fact = FS/14.0 ;
|
||||
//float fact = FS/14.0 ;
|
||||
|
||||
switch(which)
|
||||
{
|
||||
|
@ -408,7 +408,7 @@ void RSGraphWidget::pointsFromData(const std::vector<QPointF>& values,QVector<QP
|
|||
int x = _rec.width();
|
||||
int y = _rec.height();
|
||||
|
||||
float time_step = 1.0f ; // number of seconds per pixel
|
||||
//float time_step = 1.0f ; // number of seconds per pixel
|
||||
|
||||
/* Translate all data points to points on the graph frame */
|
||||
|
||||
|
@ -522,7 +522,7 @@ void RSGraphWidget::paintLine(const QVector<QPointF>& points, QColor color, Qt::
|
|||
void RSGraphWidget::paintTotals()
|
||||
{
|
||||
float FS = QFontMetricsF(font()).height();
|
||||
float fact = FS/14.0 ;
|
||||
//float fact = FS/14.0 ;
|
||||
|
||||
//int x = SCALE_WIDTH*fact + FS, y = 0;
|
||||
int rowHeight = FS;
|
||||
|
@ -593,12 +593,12 @@ void RSGraphWidget::paintScale2()
|
|||
float FS = QFontMetricsF(font()).height();
|
||||
float fact = FS/14.0 ;
|
||||
|
||||
int bottom = _rec.height();
|
||||
//int bottom = _rec.height();
|
||||
static const int npix = 100*fact ;
|
||||
|
||||
for(int i=_rec.width();i>SCALE_WIDTH*fact;i-=npix)
|
||||
{
|
||||
qreal pos = bottom - FS;
|
||||
//qreal pos = bottom - FS;
|
||||
|
||||
int seconds = (_rec.width()-i)/_time_scale ; // pixels / (pixels per second) => seconds
|
||||
QString text = QString::number(seconds)+ " secs";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue