diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-18 23:58:40 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-18 23:58:40 +0800 |
commit | 8ef9703ee2a4b22395935030606fcf69e3acad86 (patch) | |
tree | afebccb5bc50afeed0291569cab993fddafd4d34 /qmidiplayer-desktop/qmpmainwindow.cpp | |
parent | 473470054a4f67c67fb3f40a0438e87aff68703c (diff) | |
download | QMidiPlayer-8ef9703ee2a4b22395935030606fcf69e3acad86.tar.xz |
Finally finish the particle system integration.
Add std::wstring version APIs to avoid wrong encoding.
Update documentation.
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.cpp | 8 |
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() { |