2020-02-26 Fred Gleason <fredg@paravelsystems.com>

* Removed the 'Q3ProgressBar' dependency from rdairplay(1).
This commit is contained in:
Fred Gleason
2020-02-26 13:52:56 -05:00
parent 847afb55f4
commit ce15a6e3c7
3 changed files with 9 additions and 8 deletions

View File

@@ -139,9 +139,9 @@ LogLineBox::LogLineBox(RDAirPlayConf *conf,QWidget *parent)
//
// Position Slider
//
line_position_bar=new Q3ProgressBar(this);
line_position_bar=new QProgressBar(this);
line_position_bar->setGeometry(75,66,sizeHint().width()-150,13);
line_position_bar->setPercentageVisible(false);
line_position_bar->setTextVisible(false);
line_position_bar->hide();
//
@@ -539,8 +539,8 @@ void LogLineBox::setEvent(int line,RDLogLine::TransType next_type,
line_down_label->
setText(RDGetTimeLength(line_logline->effectiveLength()-
line_logline->playPosition(),true,true));
line_position_bar->setTotalSteps(line_logline->effectiveLength());
line_position_bar->setProgress(line_logline->playPosition());
line_position_bar->setMaximum(line_logline->effectiveLength());
line_position_bar->setValue(line_logline->playPosition());
if(logline->cutNumber()>=0) {
line_cut_label->
setText(QString().sprintf("%03u",logline->cutNumber()));
@@ -687,7 +687,7 @@ void LogLineBox::setTimer(int msecs)
line_up_label->setText(RDGetTimeLength(msecs,true,true));
line_down_label->
setText(RDGetTimeLength(line_logline->effectiveLength()-msecs,true,true));
line_position_bar->setProgress(msecs);
line_position_bar->setValue(msecs);
}