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"); ...@@ -29,6 +29,9 @@ static const char *tim = I18N_NOOP("GStreamer port");
static const char *stefan = I18N_NOOP("Global keybindings support"); static const char *stefan = I18N_NOOP("Global keybindings support");
static const char *stephan = I18N_NOOP("Track announcement popups"); static const char *stephan = I18N_NOOP("Track announcement popups");
#if KDE_IS_VERSION(3,1,90)
typedef KUniqueApplication Application;
#else
class Application : public KUniqueApplication class Application : public KUniqueApplication
{ {
public: public:
...@@ -41,6 +44,7 @@ public: ...@@ -41,6 +44,7 @@ public:
return KUniqueApplication::newInstance(); return KUniqueApplication::newInstance();
} }
}; };
#endif
static KCmdLineOptions options[] = static KCmdLineOptions options[] =
{ {
......
...@@ -47,6 +47,20 @@ ...@@ -47,6 +47,20 @@
#include "tag.h" #include "tag.h"
#include "genrelistlist.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 // public members
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
...@@ -192,6 +192,12 @@ private: ...@@ -192,6 +192,12 @@ private:
void setup(); void setup();
void applyTag(QListViewItem *item, const QString &text, int column); void applyTag(QListViewItem *item, const QString &text, int column);
int leftMostVisibleColumn() const; 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: private slots:
void slotEmitSelected() { emit signalSelectionChanged(selectedItems()); } void slotEmitSelected() { emit signalSelectionChanged(selectedItems()); }
......
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