KDDockWidgets API Documentation 1.7
Loading...
Searching...
No Matches
Functions
LayoutSaver.cpp File Reference

Class to save and restore dock widget layouts. More...

#include "LayoutSaver.h"
#include "Config.h"
#include "KDDockWidgets.h"
#include "MainWindowBase.h"
#include "DockWidgetBase.h"
#include "FrameworkWidgetFactory.h"
#include "private/multisplitter/Item_p.h"
#include "private/LayoutSaver_p.h"
#include "private/DockRegistry_p.h"
#include "private/DockWidgetBase_p.h"
#include "private/FloatingWindow_p.h"
#include "private/Frame_p.h"
#include "private/LayoutWidget_p.h"
#include "private/Logging_p.h"
#include "private/Position_p.h"
#include "private/Utils_p.h"
#include <qmath.h>
#include <QDebug>
#include <QFile>
Include dependency graph for LayoutSaver.cpp:

Go to the source code of this file.

Functions

InternalRestoreOptions internalRestoreOptions (RestoreOptions options)
 
static QHash< KDDockWidgets::SideBarLocation, QRectlistToOverlayedGeometries (const QVariantList &list)
 
static QVariantList overlayedGeometriesToList (const QHash< KDDockWidgets::SideBarLocation, QRect > &geometries)
 
static QScreenscreenForMainWindow (MainWindowBase *mw)
 
static QVariantList stringListToVariant (const QStringList &strs)
 
static QStringList variantToStringList (const QVariantList &variantList)
 

Detailed Description

Class to save and restore dock widget layouts.

Author
Sérgio Martins <sergi.nosp@m.o.ma.nosp@m.rtins.nosp@m.@kda.nosp@m.b.com>

Definition in file LayoutSaver.cpp.

Function Documentation

◆ internalRestoreOptions()

InternalRestoreOptions internalRestoreOptions ( RestoreOptions  options)
inline

◆ listToOverlayedGeometries()

static QHash< KDDockWidgets::SideBarLocation, QRect > listToOverlayedGeometries ( const QVariantList &  list)
static

Definition at line 1013 of file LayoutSaver.cpp.

References QHash::insert().

◆ overlayedGeometriesToList()

static QVariantList overlayedGeometriesToList ( const QHash< KDDockWidgets::SideBarLocation, QRect > &  geometries)
static

Definition at line 988 of file LayoutSaver.cpp.

References QHash::cbegin(), QHash::cend(), and QHash::size().

◆ screenForMainWindow()

static QScreen * screenForMainWindow ( MainWindowBase mw)
static

Definition at line 1075 of file LayoutSaver.cpp.

References QWidget::screen(), QWidget::window(), and QWidget::windowHandle().

◆ stringListToVariant()

static QVariantList stringListToVariant ( const QStringList strs)
static

Definition at line 89 of file LayoutSaver.cpp.

References QHash::reserve(), and QList::size().

◆ variantToStringList()

static QStringList variantToStringList ( const QVariantList &  variantList)
static

Definition at line 99 of file LayoutSaver.cpp.

References QList::push_back(), and QList::reserve().


© 2019-2023 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 Wed Nov 1 2023 00:02:31 for KDDockWidgets API Documentation by doxygen 1.9.8