mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
set spinbox value as well when setting sliders up
This commit is contained in:
parent
4a4f5b19ad
commit
840b796903
4
amd.cpp
4
amd.cpp
@ -131,6 +131,7 @@ void amd::calculateUIProperties(int GPUIndex)
|
|||||||
voltageSlider->setRange(GPUList[GPUIndex].minVoltageLimit, GPUList[GPUIndex].maxVoltageLimit);
|
voltageSlider->setRange(GPUList[GPUIndex].minVoltageLimit, GPUList[GPUIndex].maxVoltageLimit);
|
||||||
voltageSpinBox->setRange(GPUList[GPUIndex].minVoltageLimit, GPUList[GPUIndex].maxVoltageLimit);
|
voltageSpinBox->setRange(GPUList[GPUIndex].minVoltageLimit, GPUList[GPUIndex].maxVoltageLimit);
|
||||||
voltageSlider->setValue(GPUList[GPUIndex].corevolts.last());
|
voltageSlider->setValue(GPUList[GPUIndex].corevolts.last());
|
||||||
|
voltageSpinBox->setValue(GPUList[GPUIndex].corevolts.last());
|
||||||
qDebug() << "voltage slider: minimum = " << GPUList[GPUIndex].minVoltageLimit
|
qDebug() << "voltage slider: minimum = " << GPUList[GPUIndex].minVoltageLimit
|
||||||
<< "maximum = " << GPUList[GPUIndex].maxVoltageLimit << "current = " << GPUList[GPUIndex].corevolts.last();
|
<< "maximum = " << GPUList[GPUIndex].maxVoltageLimit << "current = " << GPUList[GPUIndex].corevolts.last();
|
||||||
latestVoltageSlider = GPUList[GPUIndex].corevolts.last();
|
latestVoltageSlider = GPUList[GPUIndex].corevolts.last();
|
||||||
@ -145,6 +146,7 @@ void amd::calculateUIProperties(int GPUIndex)
|
|||||||
coreClockSpinBox->setRange(GPUList[GPUIndex].minCoreClkLimit, GPUList[GPUIndex].maxCoreClkLimit);
|
coreClockSpinBox->setRange(GPUList[GPUIndex].minCoreClkLimit, GPUList[GPUIndex].maxCoreClkLimit);
|
||||||
coreClockSlider->setRange(GPUList[GPUIndex].minCoreClkLimit, GPUList[GPUIndex].maxCoreClkLimit);
|
coreClockSlider->setRange(GPUList[GPUIndex].minCoreClkLimit, GPUList[GPUIndex].maxCoreClkLimit);
|
||||||
coreClockSlider->setValue(GPUList[GPUIndex].coreclocks.last());
|
coreClockSlider->setValue(GPUList[GPUIndex].coreclocks.last());
|
||||||
|
coreClockSpinBox->setValue(GPUList[GPUIndex].coreclocks.last());
|
||||||
qDebug() << "core clock slider: minimum = " << GPUList[GPUIndex].minCoreClkLimit
|
qDebug() << "core clock slider: minimum = " << GPUList[GPUIndex].minCoreClkLimit
|
||||||
<< "maximum = " << GPUList[GPUIndex].maxCoreClkLimit << "current = " << GPUList[GPUIndex].coreclocks.last();
|
<< "maximum = " << GPUList[GPUIndex].maxCoreClkLimit << "current = " << GPUList[GPUIndex].coreclocks.last();
|
||||||
|
|
||||||
@ -153,6 +155,7 @@ void amd::calculateUIProperties(int GPUIndex)
|
|||||||
memClockSlider->setRange(GPUList[GPUIndex].minMemClkLimit, GPUList[GPUIndex].maxMemClkLimit);
|
memClockSlider->setRange(GPUList[GPUIndex].minMemClkLimit, GPUList[GPUIndex].maxMemClkLimit);
|
||||||
memClockSpinBox->setRange(GPUList[GPUIndex].minMemClkLimit, GPUList[GPUIndex].maxMemClkLimit);
|
memClockSpinBox->setRange(GPUList[GPUIndex].minMemClkLimit, GPUList[GPUIndex].maxMemClkLimit);
|
||||||
memClockSlider->setValue(GPUList[GPUIndex].memclocks.last());
|
memClockSlider->setValue(GPUList[GPUIndex].memclocks.last());
|
||||||
|
memClockSpinBox->setValue(GPUList[GPUIndex].memclocks.last());
|
||||||
qDebug() << "mem clock slider: minimum = " << GPUList[GPUIndex].minMemClkLimit
|
qDebug() << "mem clock slider: minimum = " << GPUList[GPUIndex].minMemClkLimit
|
||||||
<< "maximum = " << GPUList[GPUIndex].maxMemClkLimit << "current = " << GPUList[GPUIndex].memclocks.last();
|
<< "maximum = " << GPUList[GPUIndex].maxMemClkLimit << "current = " << GPUList[GPUIndex].memclocks.last();
|
||||||
|
|
||||||
@ -171,6 +174,7 @@ void amd::calculateUIProperties(int GPUIndex)
|
|||||||
powerLimSlider->setRange(static_cast<int>(GPUList[GPUIndex].minPowerLim), static_cast<int>(GPUList[GPUIndex].maxPowerLim));
|
powerLimSlider->setRange(static_cast<int>(GPUList[GPUIndex].minPowerLim), static_cast<int>(GPUList[GPUIndex].maxPowerLim));
|
||||||
powerLimSpinBox->setRange(static_cast<int>(GPUList[GPUIndex].minPowerLim), static_cast<int>(GPUList[GPUIndex].maxPowerLim));
|
powerLimSpinBox->setRange(static_cast<int>(GPUList[GPUIndex].minPowerLim), static_cast<int>(GPUList[GPUIndex].maxPowerLim));
|
||||||
powerLimSlider->setValue(static_cast<int>(GPUList[GPUIndex].powerLim));
|
powerLimSlider->setValue(static_cast<int>(GPUList[GPUIndex].powerLim));
|
||||||
|
powerLimSpinBox->setValue(static_cast<int>(GPUList[GPUIndex].powerLim));
|
||||||
|
|
||||||
latestpowerLimSlider = static_cast<int>(GPUList[GPUIndex].powerLim);
|
latestpowerLimSlider = static_cast<int>(GPUList[GPUIndex].powerLim);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user