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
|
@ -50,7 +50,7 @@ PlaylistShade::PlaylistShade (PlaylistWindow *parent) : QWidget (parent)
|
|||
connect (xmmsh.cache (), SIGNAL (activeEntryChanged (QVariantHash)),
|
||||
this, SLOT (setMediainfo (QVariantHash)));
|
||||
|
||||
connect (qApp, SIGNAL(settingsChanged ()),
|
||||
connect (App, SIGNAL(settingsChanged ()),
|
||||
this, SLOT(settingsChanged ()));
|
||||
|
||||
m_text = "Promoe " PROMOE_VERSION " - A very neat XMMS2 client";
|
||||
|
|
|
@ -138,7 +138,7 @@ PlaylistView::PlaylistView (QWidget *parent) : QListView (parent)
|
|||
|
||||
XMMSHandler &xmmsh = XMMSHandler::getInstance ();
|
||||
|
||||
connect (qApp, SIGNAL (settingsChanged ()),
|
||||
connect (App, SIGNAL (settingsChanged ()),
|
||||
this, SLOT (settingsChanged ()));
|
||||
|
||||
connect (xmmsh.xplayback (), SIGNAL(playbackStatusChanged(Xmms::Playback::Status)),
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include "XMMSHandler.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "mainwindow.h"
|
||||
#include "BrowseDialog.h"
|
||||
#include "playlistwindow.h"
|
||||
|
@ -38,7 +39,6 @@
|
|||
#include <QPoint>
|
||||
#include <QRect>
|
||||
#include <QIcon>
|
||||
#include <QApplication>
|
||||
#include <QSettings>
|
||||
#include <QFileDialog>
|
||||
#include <QPainter>
|
||||
|
@ -235,7 +235,7 @@ PlaylistWidget::PlaylistWidget (PlaylistWindow *parent) : QWidget (parent)
|
|||
client.xplayback (), SLOT (next ()));
|
||||
// TODO: eject
|
||||
connect (m_controls, SIGNAL (toggleTime ()),
|
||||
parent, SIGNAL (toggleTime()));
|
||||
App, SLOT (toggleTime()));
|
||||
connect (parent, SIGNAL (setDisplayTime (int)),
|
||||
m_controls, SIGNAL (setDisplayTime (int)));
|
||||
|
||||
|
|
|
@ -43,8 +43,6 @@ class PlaylistWindow : public BaseWindow {
|
|||
signals:
|
||||
void visibilityChanged(bool visible);
|
||||
|
||||
// connected to
|
||||
void toggleTime (); // toggle the playtime
|
||||
// setTime is used to set playtime in playlistcontrols
|
||||
void setDisplayTime (int seconds);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue