KDDockWidgets API Documentation
2.1
Loading...
Searching...
No Matches
source
src
qtquick
LayoutSaverInstantiator.cpp
Go to the documentation of this file.
1
/*
2
This file is part of KDDockWidgets.
3
4
SPDX-FileCopyrightText: 2019 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
12
#include "
LayoutSaverInstantiator.h
"
13
#include "core/LayoutSaver_p.h"
14
15
using namespace
KDDockWidgets
;
16
17
LayoutSaverInstantiator::LayoutSaverInstantiator
(
QObject
*parent)
18
:
QObject
(parent)
19
{
20
}
21
22
LayoutSaverInstantiator::~LayoutSaverInstantiator
()
23
{
24
}
25
26
bool
LayoutSaverInstantiator::saveToFile
(
const
QString
&jsonFilename)
27
{
28
return
LayoutSaver::saveToFile
(jsonFilename);
29
}
30
31
bool
LayoutSaverInstantiator::restoreFromFile
(
const
QString
&jsonFilename)
32
{
33
return
LayoutSaver::restoreFromFile
(jsonFilename);
34
}
35
36
QVector<QString>
LayoutSaverInstantiator::affinities
()
const
37
{
38
return
dptr
()->m_affinityNames;
39
}
40
41
void
LayoutSaverInstantiator::setAffinities
(
const
QVector<QString>
&affinities)
42
{
43
setAffinityNames
(
affinities
);
44
Q_EMIT
affinitiesChanged
();
45
}
LayoutSaverInstantiator.h
KDDockWidgets::LayoutSaverInstantiator::LayoutSaverInstantiator
LayoutSaverInstantiator(QObject *parent=nullptr)
Definition
LayoutSaverInstantiator.cpp:17
KDDockWidgets::LayoutSaverInstantiator::affinities
QVector< QString > affinities
Definition
LayoutSaverInstantiator.h:36
KDDockWidgets::LayoutSaverInstantiator::setAffinities
void setAffinities(const QVector< QString > &)
Definition
LayoutSaverInstantiator.cpp:41
KDDockWidgets::LayoutSaverInstantiator::affinitiesChanged
void affinitiesChanged()
KDDockWidgets::LayoutSaverInstantiator::saveToFile
Q_INVOKABLE bool saveToFile(const QString &jsonFilename)
Definition
LayoutSaverInstantiator.cpp:26
KDDockWidgets::LayoutSaverInstantiator::~LayoutSaverInstantiator
~LayoutSaverInstantiator() override
Definition
LayoutSaverInstantiator.cpp:22
KDDockWidgets::LayoutSaverInstantiator::restoreFromFile
Q_INVOKABLE bool restoreFromFile(const QString &jsonFilename)
Definition
LayoutSaverInstantiator.cpp:31
KDDockWidgets::LayoutSaver::setAffinityNames
void setAffinityNames(const Vector< QString > &affinityNames)
Sets the list of affinity names for which restore and save will be applied on. Allows to save/restore...
Definition
LayoutSaver.cpp:596
KDDockWidgets::LayoutSaver::saveToFile
bool saveToFile(const QString &jsonFilename)
saves the layout to JSON file
Definition
LayoutSaver.cpp:386
KDDockWidgets::LayoutSaver::restoreFromFile
bool restoreFromFile(const QString &jsonFilename)
restores the layout from a JSON file
Definition
LayoutSaver.cpp:401
KDDockWidgets::LayoutSaver::dptr
Private * dptr() const
Definition
LayoutSaver.cpp:605
KDDockWidgets
Class to abstract QAction, so code still works with QtQuick and Flutter.
Definition
KDStlContainerAdaptor.h:427
QObject
QObject::Q_EMIT
Q_EMITQ_EMIT
QString
QVector
© 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 by doxygen 1.9.8