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

@ -19715,3 +19715,5 @@
2020-02-25 Fred Gleason <fredg@paravelsystems.com>
* Fixed the layout of the 'Matching Carts' field in rdlibrary(1)'s
main window when Realtime Filtering is disabled.
2020-02-26 Fred Gleason <fredg@paravelsystems.com>
* Removed the 'Q3ProgressBar' dependency from rdairplay(1).

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);
}

View File

@ -21,10 +21,9 @@
#ifndef LOGLINEBOX_H
#define LOGLINEBOX_H
#include <q3progressbar.h>
#include <qlabel.h>
#include <qpixmap.h>
#include <qprogressbar.h>
#include <rdairplay_conf.h>
#include <rdcartdrag.h>
@ -97,7 +96,7 @@ class LogLineBox : public RDWidget
QLabel *line_up_label;
QLabel *line_down_label;
QLabel *line_comment_label;
Q3ProgressBar *line_position_bar;
QProgressBar *line_position_bar;
QTimer *line_countdown_timer;
QTime line_end_time;
int log_id;