mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
Removed usage of deprecated QSysInfo::WindowsVersion
This commit is contained in:
parent
efe9ac773d
commit
c64cca9954
1 changed files with 2 additions and 10 deletions
|
|
@ -84,12 +84,6 @@ BandwidthGraph::BandwidthGraph(QWidget *parent, Qt::WindowFlags flags)
|
||||||
/* Load the previously saved settings */
|
/* Load the previously saved settings */
|
||||||
|
|
||||||
/* Turn off opacity group on unsupported platforms */
|
/* Turn off opacity group on unsupported platforms */
|
||||||
#if defined(Q_OS_WIN)
|
|
||||||
if(!(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion)) {
|
|
||||||
ui.frmOpacity->setVisible(false);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
ui.frmOpacity->setVisible(false);
|
ui.frmOpacity->setVisible(false);
|
||||||
ui.chkAlwaysOnTop->setVisible(false);
|
ui.chkAlwaysOnTop->setVisible(false);
|
||||||
|
|
@ -283,10 +277,8 @@ void 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_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
if(QSysInfo::WV_2000 <= QSysInfo::WindowsVersion) {
|
|
||||||
this->setWindowOpacity(newValue);
|
this->setWindowOpacity(newValue);
|
||||||
ui.lblPercentOpacity->setText(QString::number(value));
|
ui.lblPercentOpacity->setText(QString::number(value));
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
Q_UNUSED(newValue);
|
Q_UNUSED(newValue);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue