OTHER: move togglePlaytime to Application class and some other small fixes

This commit is contained in:
Thomas Frauendorfer 2008-11-04 14:26:19 +01:00
parent 461106eb43
commit 786b745d55
17 changed files with 59 additions and 45 deletions

View file

@ -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";

View file

@ -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)),

View file

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

View file

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