KDDockWidgets API Documentation  1.5
LayoutSaverInstantiator.cpp
Go to the documentation of this file.
1 /*
2  This file is part of KDDockWidgets.
3 
4  SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
5  Author: SĂ©rgio Martins <sergio.martins@kdab.com>
6 
7  SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8 
9  Contact KDAB at <info@kdab.com> for commercial licensing options.
10 */
11 
19 #include "LayoutSaverInstantiator_p.h"
20 
21 
22 using namespace KDDockWidgets;
23 
24 LayoutSaverInstantiator::LayoutSaverInstantiator(QObject *parent)
25  : QObject(parent)
26  , LayoutSaver()
27 {
28 }
29 
30 LayoutSaverInstantiator::~LayoutSaverInstantiator()
31 {
32 }
33 
34 bool LayoutSaverInstantiator::saveToFile(const QString &jsonFilename)
35 {
36  return LayoutSaver::saveToFile(jsonFilename);
37 }
38 
39 bool LayoutSaverInstantiator::restoreFromFile(const QString &jsonFilename)
40 {
41  return LayoutSaver::restoreFromFile(jsonFilename);
42 }
KDDockWidgets::LayoutSaver
LayoutSaver allows to save or restore layouts.
Definition: LayoutSaver.h:55
QObject
QString
KDDockWidgets::LayoutSaver::restoreFromFile
bool restoreFromFile(const QString &jsonFilename)
restores the layout from a JSON file
Definition: LayoutSaver.cpp:123
KDDockWidgets
Definition: Config.cpp:36
KDDockWidgets::LayoutSaver::saveToFile
bool saveToFile(const QString &jsonFilename)
saves the layout to JSON file
Definition: LayoutSaver.cpp:109

© 2019-2022 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated on Mon Mar 7 2022 02:01:20 for KDDockWidgets API Documentation by doxygen 1.8.20