summaryrefslogtreecommitdiff
path: root/ui/qt/sequence_dialog.cpp
diff options
context:
space:
mode:
authorZdeněk Žamberský <zzdevel@seznam.cz>2016-06-04 21:17:46 +0200
committerGuy Harris <guy@alum.mit.edu>2016-06-05 01:59:04 +0000
commitb84b3f9f1d8577255a9d83c81277ebc53bcac68d (patch)
treea151464401ee4f037c472675801c74c0f0a95333 /ui/qt/sequence_dialog.cpp
parentbb246f5cc652aa96b43a57fec775865f4de9d6b4 (diff)
downloadwireshark-b84b3f9f1d8577255a9d83c81277ebc53bcac68d.tar.gz
Qt ui code: fix qreal type problems on ARM platform
fixing problems in qt ui code comming from the fact that qreal type is float on ARM platform and double on other platforms, which causes build errors on ARM (not all casts are probably strictly necessary) Bug: 12483 Change-Id: Ife5e6d3649a7ee1ad4e7eadffe9f4484ff2718de Reviewed-on: https://code.wireshark.org/review/15723 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/qt/sequence_dialog.cpp')
-rw-r--r--ui/qt/sequence_dialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/qt/sequence_dialog.cpp b/ui/qt/sequence_dialog.cpp
index 4f824e9828..732e551b4b 100644
--- a/ui/qt/sequence_dialog.cpp
+++ b/ui/qt/sequence_dialog.cpp
@@ -272,14 +272,14 @@ void SequenceDialog::vScrollBarChanged(int value)
void SequenceDialog::xAxisChanged(QCPRange range)
{
- ui->horizontalScrollBar->setValue(qRound(range.center()*100.0));
- ui->horizontalScrollBar->setPageStep(qRound(range.size()*100.0));
+ ui->horizontalScrollBar->setValue(qRound(qreal(range.center()*100.0)));
+ ui->horizontalScrollBar->setPageStep(qRound(qreal(range.size()*100.0)));
}
void SequenceDialog::yAxisChanged(QCPRange range)
{
- ui->verticalScrollBar->setValue(qRound(range.center()*100.0));
- ui->verticalScrollBar->setPageStep(qRound(range.size()*100.0));
+ ui->verticalScrollBar->setValue(qRound(qreal(range.center()*100.0)));
+ ui->verticalScrollBar->setPageStep(qRound(qreal(range.size()*100.0)));
}
void SequenceDialog::diagramClicked(QMouseEvent *event)