Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 4b413f6f authored by Michael Pyne's avatar Michael Pyne

Remove deprecated KLocale usage.

parent 25bef6fe
......@@ -15,15 +15,14 @@
*/
#include "historyplaylist.h"
#include "collectionlist.h"
#include "playermanager.h"
#include "juk-exception.h"
#include <QTimer>
#include <klocale.h>
#include <kglobal.h>
#include <KLocale>
#include "collectionlist.h"
#include "playermanager.h"
#include "juk-exception.h"
#include "juk_debug.h"
////////////////////////////////////////////////////////////////////////////////
......@@ -89,25 +88,13 @@ HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *par
PlaylistItem(item, parent, after),
m_dateTime(QDateTime::currentDateTime())
{
setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
}
HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent) :
PlaylistItem(item, parent),
m_dateTime(QDateTime::currentDateTime())
{
setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
}
HistoryPlaylistItem::~HistoryPlaylistItem()
{
setText(0, m_dateTime.toString());
}
void HistoryPlaylistItem::setDateTime(const QDateTime &dt)
{
m_dateTime = dt;
setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
setText(0, m_dateTime.toString());
}
////////////////////////////////////////////////////////////////////////////////
......
......@@ -14,8 +14,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef HISTORYPLAYLIST_H
#define HISTORYPLAYLIST_H
#ifndef JUK_HISTORYPLAYLIST_H
#define JUK_HISTORYPLAYLIST_H
#include <QDateTime>
......@@ -25,9 +25,7 @@
class HistoryPlaylistItem : public PlaylistItem
{
public:
HistoryPlaylistItem(CollectionListItem *item, Playlist *parent, QTreeWidgetItem *after);
HistoryPlaylistItem(CollectionListItem *item, Playlist *parent);
virtual ~HistoryPlaylistItem();
HistoryPlaylistItem(CollectionListItem *item, Playlist *parent, QTreeWidgetItem *after = nullptr);
QDateTime dateTime() const { return m_dateTime; }
void setDateTime(const QDateTime &dt);
......
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