Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleConfig.cpp
Show All 13 Lines | |||||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "SpectacleConfig.h" | 20 | #include "SpectacleConfig.h" | ||
21 | 21 | | |||
22 | #include <QStandardPaths> | | |||
23 | | ||||
24 | SpectacleConfig::SpectacleConfig(QObject *parent) : | 22 | SpectacleConfig::SpectacleConfig(QObject *parent) : | ||
25 | QObject(parent) | 23 | QObject(parent) | ||
26 | { | 24 | { | ||
27 | mConfig = KSharedConfig::openConfig(QStringLiteral("spectaclerc")); | 25 | mConfig = KSharedConfig::openConfig(QStringLiteral("spectaclerc")); | ||
28 | mGeneralConfig = KConfigGroup(mConfig, "General"); | 26 | mGeneralConfig = KConfigGroup(mConfig, "General"); | ||
29 | mGuiConfig = KConfigGroup(mConfig, "GuiConfig"); | 27 | mGuiConfig = KConfigGroup(mConfig, "GuiConfig"); | ||
30 | } | 28 | } | ||
31 | 29 | | |||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |