aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp
index ed3c884..f634375 100644
--- a/qmidiplayer-desktop/qmpmainwindow.cpp
+++ b/qmidiplayer-desktop/qmpmainwindow.cpp
@@ -306,6 +306,14 @@ std::string qmpMainWindow::getTitle()
toString().toStdString().c_str())->
toUnicode(player->getTitle()).toStdString();
}
+std::wstring qmpMainWindow::getWTitle()
+{
+ if(!qmpSettingsWindow::getSettingsIntf())return L"";
+ return QTextCodec::codecForName(
+ qmpSettingsWindow::getSettingsIntf()->value("Midi/TextEncoding","").
+ toString().toStdString().c_str())->
+ toUnicode(player->getTitle()).toStdWString();
+}
void qmpMainWindow::playerSetup()
{