Setup dirList access from settings through getter and setters

This commit is contained in:
Maxim Stewart 2017-05-30 21:38:51 -05:00
parent b089fcdaf6
commit e768ae9af8
2 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,7 @@ class SettingsWindow : public QWidget
public: public:
SettingsWindow(QWidget * parent = Q_NULLPTR); SettingsWindow(QWidget * parent = Q_NULLPTR);
~SettingsWindow(); ~SettingsWindow();
QString getDirList();
private: private:
Ui::SettingsWindow* ui; Ui::SettingsWindow* ui;
@ -35,4 +36,4 @@ signals:
void sendZommSpeed(int percent); void sendZommSpeed(int percent);
void changeLightType(int value); void changeLightType(int value);
}; };

View File

@ -63,6 +63,12 @@ SettingsWindow::~SettingsWindow()
///////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////
// functions // functions
QString SettingsWindow::getDirList()
{
return SettingsManager::getInstance()->getListOfDirs();
}
void SettingsWindow::setupConnections() void SettingsWindow::setupConnections()
{ {
// light off // light off