forked from orkblutt/MinerLamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnvocdialog.cpp
43 lines (31 loc) · 828 Bytes
/
nvocdialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "nvocdialog.h"
#include "ui_nvocdialog.h"
#include <QDebug>
nvOCDialog::nvOCDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::nvOCDialog)
{
ui->setupUi(this);
_nvapi = new nvidiaAPI();
ui->horizontalSliderPowerPercent->setValue(_nvapi->getPowerLimit(0));
unsigned int gpuclock = _nvapi->getGpuClock(0);
qDebug() << gpuclock;
_nvapi->getGPUOffset(0);
}
nvOCDialog::~nvOCDialog()
{
delete ui;
delete _nvapi;
}
void nvOCDialog::on_horizontalSliderPowerPercent_valueChanged(int value)
{
ui->lcdNumberPowerPercent->display(value);
}
void nvOCDialog::on_horizontalSliderGpuOffset_valueChanged(int value)
{
ui->lcdNumberGpuOffset->display(value);
}
void nvOCDialog::on_horizontalSliderMemOffset_valueChanged(int value)
{
ui->lcdNumberMemClock->display(value);
}