OTHER: Make the settingsdialog emit a settingsChanged Signal
It's now no longer necessary to restart promoe for new settings to take effect. The Signal is piped through Application. Updated the classes that are affected by settings changes Removed some now unused code from XMMSHandler
This commit is contained in:
parent
97707922c9
commit
d0d07f7553
11 changed files with 47 additions and 95 deletions
|
@ -18,6 +18,7 @@
|
|||
#include "XMMSHandler.h"
|
||||
#include "xplayback.h"
|
||||
|
||||
#include "application.h"
|
||||
#include "playlistview.h"
|
||||
#include "playlistmodel.h"
|
||||
#include "playlistwidget.h"
|
||||
|
@ -137,8 +138,8 @@ PlaylistView::PlaylistView (QWidget *parent) : QListView (parent)
|
|||
|
||||
XMMSHandler &xmmsh = XMMSHandler::getInstance ();
|
||||
|
||||
connect (&xmmsh, SIGNAL(settingsSaved()),
|
||||
this, SLOT(settingsSaved()));
|
||||
connect (qApp, SIGNAL (settingsChanged ()),
|
||||
this, SLOT (settingsChanged ()));
|
||||
|
||||
connect (xmmsh.xplayback (), SIGNAL(playbackStatusChanged(Xmms::Playback::Status)),
|
||||
this, SLOT(handleStatus(Xmms::Playback::Status)));
|
||||
|
@ -219,7 +220,7 @@ PlaylistView::handleStatus (const Xmms::Playback::Status st)
|
|||
}
|
||||
|
||||
void
|
||||
PlaylistView::settingsSaved ()
|
||||
PlaylistView::settingsChanged ()
|
||||
{
|
||||
QSettings s;
|
||||
m_font->setPixelSize (s.value ("playlist/fontsize").toInt ());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue