changed PluginsDir type from string to QDir