Removed limit on opacity setting with recent windows versions on BandwidthGraphDialog

Conflicts:
	retroshare-gui/src/gui/statistics/BandwidthGraphWindow.cpp
This commit is contained in:
hunbernd 2015-08-29 21:45:30 +02:00
parent acc3e4bb62
commit bd3f7f6d38

View File

@ -79,7 +79,7 @@ BandwidthGraph::BandwidthGraph(QWidget *parent, Qt::WindowFlags flags)
/* Turn off opacity group on unsupported platforms */
#if defined(Q_OS_WIN)
if(!(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion && QSysInfo::WindowsVersion <= QSysInfo::WV_2003)) {
if(!(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion)) {
ui.frmOpacity->setVisible(false);
}
#endif
@ -240,7 +240,7 @@ void BandwidthGraph::setOpacity(int value)
this->setWindowOpacity(newValue);
ui.lblPercentOpacity->setText(QString::number(value));
#elif defined(Q_OS_WIN)
if(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion && QSysInfo::WindowsVersion <= QSysInfo::WV_2003) {
if(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion) {
this->setWindowOpacity(newValue);
ui.lblPercentOpacity->setText(QString::number(value));
}