Commit d37fe7ea authored by Scott Wheeler's avatar Scott Wheeler

Just added this functionality to kdelibs, so check to see if we're

running post 3.1.

svn path=/trunk/kdemultimedia/juk/; revision=214940
parent df3bb4bf
......@@ -29,6 +29,9 @@ static const char *tim = I18N_NOOP("GStreamer port");
static const char *stefan = I18N_NOOP("Global keybindings support");
static const char *stephan = I18N_NOOP("Track announcement popups");
#if KDE_IS_VERSION(3,1,90)
typedef KUniqueApplication Application;
#else
class Application : public KUniqueApplication
{
public:
......@@ -41,6 +44,7 @@ public:
return KUniqueApplication::newInstance();
}
};
#endif
static KCmdLineOptions options[] =
{
......
......@@ -47,6 +47,20 @@
#include "tag.h"
#include "genrelistlist.h"
class Playlist::SharedSettings
{
public:
static SharedSettings *instance() {
if(!m_instance)
m_instance = new SharedSettings;
return m_instance;
}
private:
static SharedSettings *m_instance;
};
Playlist::SharedSettings* Playlist::SharedSettings::m_instance = 0;
////////////////////////////////////////////////////////////////////////////////
// public members
////////////////////////////////////////////////////////////////////////////////
......
......@@ -193,6 +193,12 @@ private:
void applyTag(QListViewItem *item, const QString &text, int column);
int leftMostVisibleColumn() const;
/**
* This class is used internally to store settings that are shared by all
* of the playlists, such as column order. It is implemented as a singleton.
*/
class SharedSettings;
private slots:
void slotEmitSelected() { emit signalSelectionChanged(selectedItems()); }
void slotEmitDoubleClicked(QListViewItem *) { emit signalDoubleClicked(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment