mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -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 */
|
/* Turn off opacity group on unsupported platforms */
|
||||||
#if defined(Q_WS_WIN)
|
#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);
|
ui.frmOpacity->setVisible(false);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -154,7 +154,7 @@ BandwidthGraph::createActions()
|
|||||||
|
|
||||||
/** Adds new data to the graph. */
|
/** Adds new data to the graph. */
|
||||||
void
|
void
|
||||||
BandwidthGraph::updateGraph(quint64 bytesRead, quint64 bytesWritten)
|
BandwidthGraph::updateGraph(qreal bytesRead, qreal bytesWritten)
|
||||||
{
|
{
|
||||||
/* Graph only cares about kilobytes */
|
/* Graph only cares about kilobytes */
|
||||||
ui.frmGraph->addPoints(bytesRead/*/1024.0*/, bytesWritten/*/1024.0*/);
|
ui.frmGraph->addPoints(bytesRead/*/1024.0*/, bytesWritten/*/1024.0*/);
|
||||||
@ -294,7 +294,7 @@ BandwidthGraph::setOpacity(int value)
|
|||||||
this->setWindowOpacity(newValue);
|
this->setWindowOpacity(newValue);
|
||||||
ui.lblPercentOpacity->setText(QString::number(value));
|
ui.lblPercentOpacity->setText(QString::number(value));
|
||||||
#elif defined(Q_WS_WIN)
|
#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);
|
this->setWindowOpacity(newValue);
|
||||||
ui.lblPercentOpacity->setText(QString::number(value));
|
ui.lblPercentOpacity->setText(QString::number(value));
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ protected:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
/** Adds new data to the graph */
|
/** Adds new data to the graph */
|
||||||
void updateGraph(quint64 bytesRead, quint64 bytesWritten);
|
void updateGraph(qreal bytesRead, qreal bytesWritten);
|
||||||
/** Called when settings button is toggled */
|
/** Called when settings button is toggled */
|
||||||
void showSettingsFrame(bool show);
|
void showSettingsFrame(bool show);
|
||||||
/** Called when the settings button is toggled */
|
/** Called when the settings button is toggled */
|
||||||
|
Loading…
Reference in New Issue
Block a user