aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpplugin.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-13 23:55:42 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-13 23:55:42 +0800
commita3a51ea01c0c571d0859f1cb5147dcd003bc8c71 (patch)
treeeeb1a7faa41ed2536fd9f55b8c389fab297e8422 /qmidiplayer-desktop/qmpplugin.cpp
parenta84ae874f0334172900d611fc098de8433f54e4c (diff)
downloadQMidiPlayer-a3a51ea01c0c571d0859f1cb5147dcd003bc8c71.tar.xz
Added enumerate integer options support.
Workaroud for different fonts locations in arch linux.
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.cpp')
-rw-r--r--qmidiplayer-desktop/qmpplugin.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp
index d67e08a..79ea93c 100644
--- a/qmidiplayer-desktop/qmpplugin.cpp
+++ b/qmidiplayer-desktop/qmpplugin.cpp
@@ -157,3 +157,7 @@ void qmpPluginAPI::registerOptionString(std::string tab,std::string desc,std::st
{qsw->registerOptionString(tab,desc,key,defaultval);}
std::string qmpPluginAPI::getOptionString(std::string key){return qsw->getOptionString(key);}
void qmpPluginAPI::setOptionString(std::string key,std::string val){return qsw->setOptionString(key,val);}
+void qmpPluginAPI::registerOptionEnumInt(std::string tab,std::string desc,std::string key,std::vector<std::string> options,int defaultval)
+{qsw->registerOptionEnumInt(tab,desc,key,options,defaultval);}
+int qmpPluginAPI::getOptionEnumInt(std::string key){return qsw->getOptionEnumInt(key);}
+void qmpPluginAPI::setOptionEnumInt(std::string key,int val){return qsw->setOptionEnumInt(key,val);}