|
a/GUI/progresswidget/progresswidget.cpp |
|
b/GUI/progresswidget/progresswidget.cpp |
|
... |
|
... |
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#include "progresswidget.h"
|
17 |
#include "progresswidget.h"
|
18 |
|
18 |
|
19 |
#include "HelperStructs/Helper.h"
|
19 |
#include "HelperStructs/Helper.h"
|
20 |
|
|
|
21 |
#include <QDebug>
|
|
|
22 |
|
20 |
|
23 |
ProgressWidget::ProgressWidget(QWidget *parent)
|
21 |
ProgressWidget::ProgressWidget(QWidget *parent)
|
24 |
: ProgressWidgetIF(parent), m_totalsecs(0), m_step_pc(2), m_step_secs(-1)
|
22 |
: ProgressWidgetIF(parent), m_totalsecs(0), m_step_pc(2), m_step_secs(-1)
|
25 |
{
|
23 |
{
|
26 |
setupUi(this);
|
24 |
setupUi(this);
|
|
... |
|
... |
106 |
} else if (pc < 0) {
|
104 |
} else if (pc < 0) {
|
107 |
pc = 0;
|
105 |
pc = 0;
|
108 |
}
|
106 |
}
|
109 |
int secs = (pc * m_totalsecs) / 100;
|
107 |
int secs = (pc * m_totalsecs) / 100;
|
110 |
showTimes(secs);
|
108 |
showTimes(secs);
|
111 |
qDebug() << "ProgressWidget: emitting seekRequested(" << secs << ")";
|
|
|
112 |
emit seekRequested(secs);
|
109 |
emit seekRequested(secs);
|
113 |
}
|
110 |
}
|