Commit b0008246 authored by Michael Pyne's avatar Michael Pyne

More krazy fixes for JuK. Although we've not yet been burned by non-explicit ctors

with JuK there's no reason not to add the keywords either.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=666132
parent 39362579
......@@ -37,7 +37,7 @@ public:
QString playlistName;
};
AdvancedSearchDialog(const QString &defaultName,
explicit AdvancedSearchDialog(const QString &defaultName,
const PlaylistSearch &defaultSearch = PlaylistSearch(),
QWidget *parent = 0,
const char *name = 0);
......
......@@ -50,7 +50,7 @@ using CoverUtility::CoverIconViewItem;
class CoverIconView : public K3IconView
{
public:
CoverIconView(QWidget *parent, const char *name = 0);
explicit CoverIconView(QWidget *parent, const char *name = 0);
CoverIconViewItem *currentItem() const;
......
......@@ -32,7 +32,7 @@ class DeleteWidget : public QWidget, public Ui::DeleteDialogBase
Q_OBJECT
public:
DeleteWidget(QWidget *parent = 0, const char *name = 0);
explicit DeleteWidget(QWidget *parent = 0, const char *name = 0);
void setFiles(const QStringList &files);
......@@ -45,7 +45,7 @@ class DeleteDialog : public KDialog
Q_OBJECT
public:
DeleteDialog(QWidget *parent, const char *name = "delete_dialog");
explicit DeleteDialog(QWidget *parent, const char *name = "delete_dialog");
bool confirmDeleteList(const QStringList &condemnedFiles);
void setFiles(const QStringList &files);
......
......@@ -22,7 +22,7 @@ class FolderPlaylist : public Playlist
Q_OBJECT
public:
FolderPlaylist(PlaylistCollection *collection, const QString &folder = QString::null,
explicit FolderPlaylist(PlaylistCollection *collection, const QString &folder = QString::null,
const QString &name = QString::null);
virtual ~FolderPlaylist();
......
......@@ -34,7 +34,7 @@ class KUrl;
class GoogleImage
{
public:
GoogleImage(QString thumbURL = QString::null, QString size = QString::null);
explicit GoogleImage(QString thumbURL = QString::null, QString size = QString::null);
QString imageURL() const { return m_imageURL; }
QString thumbURL() const { return m_thumbURL; }
......
......@@ -32,7 +32,7 @@ public:
/**
* Constructs a KeyDialog called @p name as a child of @p parent.
*/
KeyDialog(KActionCollection *actionCollection, QWidget *parent = 0);
explicit KeyDialog(KActionCollection *actionCollection, QWidget *parent = 0);
/**
* Destructor. Deletes all resources used by a KeyDialog object.
......
......@@ -123,7 +123,7 @@ public:
* Creates and starts a lookup for \a file. If \a autoDelete is set to
* true the lookup will delete itself when it has finished.
*/
KTRMLookup(const QString &file, bool autoDelete = false);
explicit KTRMLookup(const QString &file, bool autoDelete = false);
virtual ~KTRMLookup();
......
......@@ -62,7 +62,7 @@ class Playlist : public K3ListView, public PlaylistInterface
public:
Playlist(PlaylistCollection *collection, const QString &name = QString::null,
explicit Playlist(PlaylistCollection *collection, const QString &name = QString::null,
const QString &iconName = "midi");
Playlist(PlaylistCollection *collection, const PlaylistItemList &items,
const QString &name = QString::null, const QString &iconName = "midi");
......
......@@ -46,7 +46,7 @@ class PlaylistSplitter : public QSplitter
Q_OBJECT
public:
PlaylistSplitter(QWidget *parent, const char *name = 0);
explicit PlaylistSplitter(QWidget *parent, const char *name = 0);
virtual ~PlaylistSplitter();
PlaylistInterface *playlist() const { return m_playlistBox; }
......
......@@ -22,7 +22,7 @@ class SearchPlaylist : public DynamicPlaylist
{
Q_OBJECT
public:
SearchPlaylist(PlaylistCollection *collection,
explicit SearchPlaylist(PlaylistCollection *collection,
const PlaylistSearch &search = PlaylistSearch(),
const QString &name = QString::null,
bool setupPlaylist = true,
......
......@@ -41,7 +41,7 @@ class SearchLine : public Q3HBox
public:
enum Mode { Default = 0, CaseSensitive = 1, Pattern = 2 };
SearchLine(QWidget *parent, bool simple = false, const char *name = 0);
explicit SearchLine(QWidget *parent, bool simple = false, const char *name = 0);
virtual ~SearchLine() {}
PlaylistSearch::Component searchComponent() const;
......@@ -76,7 +76,7 @@ class SearchWidget : public KToolBar
Q_OBJECT
public:
SearchWidget(QWidget *parent, const char *name = 0);
explicit SearchWidget(QWidget *parent, const char *name = 0);
virtual ~SearchWidget();
PlaylistSearch search(const PlaylistList &playlists) const;
......
......@@ -33,7 +33,7 @@ class StatusLabel : public KHBox, public PlaylistObserver
Q_OBJECT
public:
StatusLabel(PlaylistInterface *playlist, QWidget *parent = 0);
explicit StatusLabel(PlaylistInterface *playlist, QWidget *parent = 0);
virtual ~StatusLabel();
virtual void updateCurrent();
......
......@@ -27,7 +27,7 @@ class TagGuesserConfigDlg : public KDialog
{
Q_OBJECT
public:
TagGuesserConfigDlg(QWidget *parent, const char *name = 0);
explicit TagGuesserConfigDlg(QWidget *parent, const char *name = 0);
protected slots:
virtual void accept();
......
......@@ -26,7 +26,7 @@ class TreeViewItemPlaylist : public SearchPlaylist
Q_OBJECT
public:
TreeViewItemPlaylist(PlaylistCollection *collection,
explicit TreeViewItemPlaylist(PlaylistCollection *collection,
const PlaylistSearch &search = PlaylistSearch(),
const QString &name = QString::null);
......
......@@ -52,7 +52,7 @@ public:
* @param collection The PlaylistCollection that owns this playlist.
* @param defaultSize The default number of tracks to place in the playlist.
*/
UpcomingPlaylist(PlaylistCollection *collection, int defaultSize = 15);
explicit UpcomingPlaylist(PlaylistCollection *collection, int defaultSize = 15);
/**
* Destructor for the UpcomingPlaylist. This destructor will restore the
* iterator for the TrackSequenceManager, and if a song is playing when
......
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