mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
27 lines
637 B
C++
27 lines
637 B
C++
|
|
#include "amdpstateeditor.h"
|
||
|
|
#include "ui_amdpstateeditor.h"
|
||
|
|
|
||
|
|
amdPstateEditor::amdPstateEditor(QWidget *parent) :
|
||
|
|
QDialog(parent),
|
||
|
|
ui(new Ui::amdPstateEditor)
|
||
|
|
{
|
||
|
|
ui->setupUi(this);
|
||
|
|
generateUI();
|
||
|
|
}
|
||
|
|
|
||
|
|
amdPstateEditor::~amdPstateEditor()
|
||
|
|
{
|
||
|
|
delete ui;
|
||
|
|
}
|
||
|
|
void amdPstateEditor::generateUI()
|
||
|
|
{
|
||
|
|
QHBoxLayout *coreClkPstateLayout = new QHBoxLayout;
|
||
|
|
for (int i=0; i<5; i++) {
|
||
|
|
QSlider *sl = new QSlider;
|
||
|
|
sl->setOrientation(Qt::Vertical);
|
||
|
|
coreClkPstateLayout->addWidget(sl);
|
||
|
|
}
|
||
|
|
ui->coreClkPstateView->setLayout(coreClkPstateLayout);
|
||
|
|
ui->memClkPstateView->setLayout(coreClkPstateLayout);
|
||
|
|
}
|