This commit is contained in:
parent
24fa0899ba
commit
09ba3c6f47
|
@ -306,6 +306,10 @@ void hg_settingdialog::createUI()
|
||||||
{
|
{
|
||||||
buttonScan->setVisible(false);
|
buttonScan->setVisible(false);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
buttonOk->setVisible(false);
|
||||||
|
}
|
||||||
|
|
||||||
QHBoxLayout *h = new QHBoxLayout();
|
QHBoxLayout *h = new QHBoxLayout();
|
||||||
QVBoxLayout *v1 = new QVBoxLayout(),
|
QVBoxLayout *v1 = new QVBoxLayout(),
|
||||||
|
|
|
@ -235,7 +235,6 @@ void Widget::paintEvent(QPaintEvent *)
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
emit dragPointChecked(false);
|
emit dragPointChecked(false);
|
||||||
}
|
}
|
||||||
painter.end();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::mousePressEvent(QMouseEvent *event)
|
void Widget::mousePressEvent(QMouseEvent *event)
|
||||||
|
@ -619,7 +618,6 @@ void Widget::drawAllPoint(QPainter &painter)
|
||||||
|
|
||||||
void Widget::drawCurveByColor(QPainter &painter)
|
void Widget::drawCurveByColor(QPainter &painter)
|
||||||
{
|
{
|
||||||
qDebug() << selectCol;
|
|
||||||
switch (selectCol) {
|
switch (selectCol) {
|
||||||
case RGB:
|
case RGB:
|
||||||
painter.setPen(QPen(Qt::white,1));
|
painter.setPen(QPen(Qt::white,1));
|
||||||
|
@ -672,7 +670,7 @@ void Widget::drawLineByVector(QPainter &painter,QVector<int> &pVec)
|
||||||
for(int i = 0; i < pVec.size()-1; i++){
|
for(int i = 0; i < pVec.size()-1; i++){
|
||||||
painter.drawLine(QPoint(i,pVec.at(i)),QPoint(i+1,pVec.at(i+1)));
|
painter.drawLine(QPoint(i,pVec.at(i)),QPoint(i+1,pVec.at(i+1)));
|
||||||
}
|
}
|
||||||
update();
|
//update();
|
||||||
}
|
}
|
||||||
|
|
||||||
int Widget::caculateAllMi(int num, int n)
|
int Widget::caculateAllMi(int num, int n)
|
||||||
|
|
Loading…
Reference in New Issue