mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
Show and calculate the transfered bytes in the Bandwith Graph.
Removed compiler warnings. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3714 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
634dbca14f
commit
fa9451c072
@ -80,7 +80,7 @@ BandwidthGraph::BandwidthGraph(QWidget *parent, Qt::WFlags flags)
|
||||
|
||||
/* Turn off opacity group on unsupported platforms */
|
||||
#if defined(Q_WS_WIN)
|
||||
if(!(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion <= QSysInfo::WV_2003)) {
|
||||
if(!(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion && QSysInfo::WindowsVersion <= QSysInfo::WV_2003)) {
|
||||
ui.frmOpacity->setVisible(false);
|
||||
}
|
||||
#endif
|
||||
@ -154,7 +154,7 @@ BandwidthGraph::createActions()
|
||||
|
||||
/** Adds new data to the graph. */
|
||||
void
|
||||
BandwidthGraph::updateGraph(quint64 bytesRead, quint64 bytesWritten)
|
||||
BandwidthGraph::updateGraph(qreal bytesRead, qreal bytesWritten)
|
||||
{
|
||||
/* Graph only cares about kilobytes */
|
||||
ui.frmGraph->addPoints(bytesRead/*/1024.0*/, bytesWritten/*/1024.0*/);
|
||||
@ -294,7 +294,7 @@ BandwidthGraph::setOpacity(int value)
|
||||
this->setWindowOpacity(newValue);
|
||||
ui.lblPercentOpacity->setText(QString::number(value));
|
||||
#elif defined(Q_WS_WIN)
|
||||
if(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion <= QSysInfo::WV_2003) {
|
||||
if(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion && QSysInfo::WindowsVersion <= QSysInfo::WV_2003) {
|
||||
this->setWindowOpacity(newValue);
|
||||
ui.lblPercentOpacity->setText(QString::number(value));
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ protected:
|
||||
|
||||
private slots:
|
||||
/** Adds new data to the graph */
|
||||
void updateGraph(quint64 bytesRead, quint64 bytesWritten);
|
||||
void updateGraph(qreal bytesRead, qreal bytesWritten);
|
||||
/** Called when settings button is toggled */
|
||||
void showSettingsFrame(bool show);
|
||||
/** Called when the settings button is toggled */
|
||||
|
Loading…
Reference in New Issue
Block a user