OTHER: move togglePlaytime to Application class and some other small fixes
This commit is contained in:
parent
461106eb43
commit
786b745d55
17 changed files with 59 additions and 45 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "xclientcache.h"
|
||||
#include "xplayback.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "shadeddisplay.h"
|
||||
#include "titlebar.h"
|
||||
#include "pixmapbutton.h"
|
||||
|
@ -45,7 +46,7 @@ ShadedDisplay::ShadedDisplay (QWidget *parent) : SkinDisplay (parent)
|
|||
|
||||
m_time = new SmallTimeDisplay (this);
|
||||
m_time->move (130, 4);
|
||||
connect (m_time, SIGNAL(clicked()), m_mw, SLOT(toggleTime()));
|
||||
connect (m_time, SIGNAL(clicked()), App, SLOT(toggleTime()));
|
||||
|
||||
m_title = new TextScroller (this, 39, 7, "shaded");
|
||||
m_title->move (79, 4);
|
||||
|
@ -129,7 +130,7 @@ void
|
|||
ShadedDisplay::setPlaytime (uint32_t time)
|
||||
{
|
||||
int32_t showtime;
|
||||
if (m_mw->isTimemodeReverse()) {
|
||||
if (App->isTimemodeReverse()) {
|
||||
showtime = (time/1000 - m_duration/1000);
|
||||
} else {
|
||||
showtime = time/1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue