summaryrefslogtreecommitdiffstats
path: root/juk
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-26 18:32:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-27 11:21:35 +0900
commitc282724a2111c15cb624429895f0eab81509d935 (patch)
treebb4d3b2e0546327d68bc72f8031fc8e0ac015abc /juk
parent938578ffc3e80f59646041c2483985f1d70692f6 (diff)
downloadtdemultimedia-c282724a2111c15cb624429895f0eab81509d935.tar.gz
tdemultimedia-c282724a2111c15cb624429895f0eab81509d935.zip
Fix FTBFS caused by taglib as a result of the QString -> TQString remaning
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'juk')
-rw-r--r--juk/playlist.cpp4
-rw-r--r--juk/tag.cpp12
-rw-r--r--juk/tageditor.cpp6
3 files changed, 14 insertions, 8 deletions
diff --git a/juk/playlist.cpp b/juk/playlist.cpp
index 02b00259..32caf879 100644
--- a/juk/playlist.cpp
+++ b/juk/playlist.cpp
@@ -65,6 +65,8 @@
#include "tagtransactionmanager.h"
#include "cache.h"
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
using namespace ActionCollection;
/**
@@ -2168,7 +2170,7 @@ void Playlist::slotRenameTag()
TQStringList genreList;
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- genreList.append(TStringToQString((*it)));
+ genreList.append(TStringToTQString((*it)));
edit->completionObject()->setItems(genreList);
break;
}
diff --git a/juk/tag.cpp b/juk/tag.cpp
index 08a717ea..c5290610 100644
--- a/juk/tag.cpp
+++ b/juk/tag.cpp
@@ -41,6 +41,8 @@
#include "mediafiles.h"
#include "stringshare.h"
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
////////////////////////////////////////////////////////////////////////////////
// public members
////////////////////////////////////////////////////////////////////////////////
@@ -227,11 +229,11 @@ Tag::Tag(const TQString &fileName, bool) :
void Tag::setup(TagLib::File *file)
{
- m_title = TQString(TStringToQString(file->tag()->title())).stripWhiteSpace();
- m_artist = TQString(TStringToQString(file->tag()->artist())).stripWhiteSpace();
- m_album = TQString(TStringToQString(file->tag()->album())).stripWhiteSpace();
- m_genre = TQString(TStringToQString(file->tag()->genre())).stripWhiteSpace();
- m_comment = TQString(TStringToQString(file->tag()->comment())).stripWhiteSpace();
+ m_title = TStringToTQString(file->tag()->title()).stripWhiteSpace();
+ m_artist = TStringToTQString(file->tag()->artist()).stripWhiteSpace();
+ m_album = TStringToTQString(file->tag()->album()).stripWhiteSpace();
+ m_genre = TStringToTQString(file->tag()->genre()).stripWhiteSpace();
+ m_comment = TStringToTQString(file->tag()->comment()).stripWhiteSpace();
m_track = file->tag()->track();
m_year = file->tag()->year();
diff --git a/juk/tageditor.cpp b/juk/tageditor.cpp
index 7862be71..c0b0a183 100644
--- a/juk/tageditor.cpp
+++ b/juk/tageditor.cpp
@@ -44,6 +44,8 @@
#undef KeyRelease
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
using namespace ActionCollection;
class FileNameValidator : public TQValidator
@@ -403,7 +405,7 @@ void TagEditor::updateCollection()
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- genreHash.insert(TStringToQString((*it)));
+ genreHash.insert(TStringToTQString((*it)));
m_genreList = genreHash.values();
m_genreList.sort();
@@ -436,7 +438,7 @@ void TagEditor::readConfig()
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- m_genreList.append(TStringToQString((*it)));
+ m_genreList.append(TStringToTQString((*it)));
m_genreList.sort();
m_genreBox->clear();