diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-13 23:55:42 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-13 23:55:42 +0800 |
commit | a3a51ea01c0c571d0859f1cb5147dcd003bc8c71 (patch) | |
tree | eeb1a7faa41ed2536fd9f55b8c389fab297e8422 /qmidiplayer-desktop/qmpsettingswindow.hpp | |
parent | a84ae874f0334172900d611fc098de8433f54e4c (diff) | |
download | QMidiPlayer-a3a51ea01c0c571d0859f1cb5147dcd003bc8c71.tar.xz |
Added enumerate integer options support.
Workaroud for different fonts locations in arch linux.
Diffstat (limited to 'qmidiplayer-desktop/qmpsettingswindow.hpp')
-rw-r--r-- | qmidiplayer-desktop/qmpsettingswindow.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qmidiplayer-desktop/qmpsettingswindow.hpp b/qmidiplayer-desktop/qmpsettingswindow.hpp index 3820279..9f5e6cf 100644 --- a/qmidiplayer-desktop/qmpsettingswindow.hpp +++ b/qmidiplayer-desktop/qmpsettingswindow.hpp @@ -1,7 +1,9 @@ #ifndef QMPSETTINGSWINDOW_H #define QMPSETTINGSWINDOW_H +#include <string> #include <map> +#include <vector> #include <QDialog> #include <QCloseEvent> #include <QSettings> @@ -83,6 +85,9 @@ class qmpSettingsWindow:public QDialog void registerOptionString(std::string tab,std::string desc,std::string key,std::string defaultval); std::string getOptionString(std::string key); void setOptionString(std::string key,std::string val); + void registerOptionEnumInt(std::string tab,std::string desc,std::string key,std::vector<std::string> options,int defaultval); + int getOptionEnumInt(std::string key); + void setOptionEnumInt(std::string key,int val); signals: void dialogClosing(); |