修改回放
This commit is contained in:
@@ -21,6 +21,16 @@ Tools_Index2::Tools_Index2(QWidget *parent) :
|
||||
|
||||
|
||||
ui->pushButton_Play->setFixedSize(150,50);
|
||||
ui->pushButton_LastFrame->setFixedSize(150,50);
|
||||
ui->pushButton_NextFrame->setFixedSize(150,50);
|
||||
|
||||
|
||||
ui->comboBox_MultiSpeed->addItem("X1",1000);
|
||||
ui->comboBox_MultiSpeed->addItem("X2",500);
|
||||
ui->comboBox_MultiSpeed->addItem("X5",200);
|
||||
ui->comboBox_MultiSpeed->addItem("X10",100);
|
||||
//ui->comboBox_MultiSpeed->addItem("X100",10);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -91,6 +101,7 @@ void Tools_Index2::on_pushButton_file_clicked()
|
||||
ui->pushButton_file->setText(fileName);
|
||||
|
||||
PlayState = false;
|
||||
|
||||
emit setPlay(PlayState);//暂停播放,跟底层关联起来
|
||||
emit setFileName(fileName);
|
||||
|
||||
@@ -109,6 +120,7 @@ void Tools_Index2::resizeEvent(QResizeEvent *event)
|
||||
void Tools_Index2::setCurrentPercentage(float value)
|
||||
{
|
||||
ui->horizontalSlider->setValue(value * ui->horizontalSlider->maximum());
|
||||
ui->doubleSpinBox_Percent->setValue(value * 100);
|
||||
}
|
||||
|
||||
void Tools_Index2::ReplayComplete()
|
||||
@@ -149,6 +161,7 @@ void Tools_Index2::on_horizontalSlider_sliderMoved(int position)
|
||||
{
|
||||
isMove = true;
|
||||
//设置比例
|
||||
//qDebug() << (float)position/ui->horizontalSlider->maximum();
|
||||
emit setPercentage((float)position/ui->horizontalSlider->maximum());
|
||||
}
|
||||
|
||||
@@ -169,3 +182,33 @@ void Tools_Index2::on_pushButton_Play_clicked()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Tools_Index2::on_comboBox_MultiSpeed_currentIndexChanged(int index)
|
||||
{
|
||||
//qDebug() << ui->comboBox_MultiSpeed->currentData(Qt::UserRole).toDouble();
|
||||
emit setMultiple(ui->comboBox_MultiSpeed->currentData(Qt::UserRole).toDouble());
|
||||
}
|
||||
|
||||
void Tools_Index2::on_pushButton_NextFrame_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Tools_Index2::on_pushButton_LastFrame_clicked()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Tools_Index2::on_doubleSpinBox_Percent_valueChanged(double arg1)
|
||||
{
|
||||
//emit setPercentage(arg1);
|
||||
}
|
||||
|
||||
void Tools_Index2::on_pushButton_setPercent_clicked()
|
||||
{
|
||||
double p = ui->doubleSpinBox_setPercent->value() * 0.01;
|
||||
|
||||
qDebug() << "p" << p;
|
||||
|
||||
emit setPercentage(p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user