mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
revert something that broke removing points from the plot
This commit is contained in:
parent
f42caa2bad
commit
5d72355dcc
@ -259,14 +259,8 @@ void editProfile::dragPoint(int index_x, int index_y, QMouseEvent* event)
|
||||
palette.setCurrentColorGroup(QPalette::Active);
|
||||
QColor textColor = palette.color(QPalette::Text);
|
||||
|
||||
//coordText->position->setType(QCPItemPosition::ptPlotCoords);
|
||||
if (ui->curvePlot->xAxis->pixelToCoord(point.x()) < x_upper*0.1) {
|
||||
coordText->position->setCoords(x_upper*0.1, qv_y[index_y] + 4);
|
||||
} else if (ui->curvePlot->xAxis->pixelToCoord(point.x()) > x_upper*0.9) {
|
||||
coordText->position->setCoords(x_upper*0.9, qv_y[index_y] + 4);
|
||||
} else {
|
||||
coordText->position->setCoords(qv_x[index_x], qv_y[index_y] + 4);
|
||||
}
|
||||
coordText->position->setType(QCPItemPosition::ptPlotCoords);
|
||||
coordText->position->setCoords(qv_x[index_x], qv_y[index_y] + 4);
|
||||
QString xString = QString::number(qv_x[index_x]);
|
||||
QString yString = QString::number(qv_y[index_y]);
|
||||
coordText->setText(xString + ", " + yString);
|
||||
@ -321,7 +315,7 @@ void editProfile::on_saveButton_clicked()
|
||||
yString.append(y + ", ");
|
||||
|
||||
}
|
||||
/*MainWindow mw;
|
||||
MainWindow mw;
|
||||
QVariant xarray = xString;
|
||||
QVariant yarray = yString;
|
||||
qDebug() << xarray.toString() << yarray.toString();
|
||||
@ -331,17 +325,7 @@ void editProfile::on_saveButton_clicked()
|
||||
ysetting.append("/ypoints");
|
||||
xsetting.append("/xpoints");
|
||||
settings.setValue(xsetting, xarray);
|
||||
settings.setValue(ysetting, yarray); */
|
||||
QSettings settings("nvfancurve");
|
||||
settings.beginGroup("General");
|
||||
QString currentProfile = settings.value("currentProfile").toString();
|
||||
QString latestUUID = settings.value("latestUUID").toString();
|
||||
qDebug() << latestUUID;
|
||||
settings.endGroup();
|
||||
settings.beginGroup(currentProfile);
|
||||
settings.beginGroup(latestUUID);
|
||||
settings.setValue("ypoints", yString);
|
||||
settings.setValue("xpoints", xString);
|
||||
settings.setValue(ysetting, yarray);
|
||||
}
|
||||
|
||||
void editProfile::on_clearButton_clicked()
|
||||
|
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>437</width>
|
||||
<height>457</height>
|
||||
<width>663</width>
|
||||
<height>565</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
Loading…
Reference in New Issue
Block a user