KDDockWidgets API Documentation 2.1
|
A wrapper to workaround the limitation that QtQuick can't pass arguments through MainWindow's ctor So instead, user instantiates a MainWindowWrapper in QML and calls init. More...
#include <MainWindowMDIInstantiator.h>
Signals | |
void | optionsChanged () |
void | uniqueNameChanged () |
Public Member Functions | |
MainWindowMDIInstantiator () | |
ctor, called by QML engine | |
Q_INVOKABLE void | addDockWidget (QQuickItem *dockWidget, QPoint localPos, const KDDockWidgets::InitialOption &addingOption={}) |
QVector< QString > | affinities () const |
Q_INVOKABLE bool | closeDockWidgets (bool force=false) |
void | setUniqueName (const QString &) |
QString | uniqueName () const |
Protected Member Functions | |
void | classBegin () override |
void | componentComplete () override |
Properties | |
QVector< QString > | affinities |
QString | uniqueName |
A wrapper to workaround the limitation that QtQuick can't pass arguments through MainWindow's ctor So instead, user instantiates a MainWindowWrapper in QML and calls init.
Definition at line 30 of file MainWindowMDIInstantiator.h.
MainWindowMDIInstantiator::MainWindowMDIInstantiator | ( | ) |
ctor, called by QML engine
Definition at line 26 of file MainWindowMDIInstantiator.cpp.
void MainWindowMDIInstantiator::addDockWidget | ( | QQuickItem * | dockWidget, |
QPoint | localPos, | ||
const KDDockWidgets::InitialOption & | addingOption = {} |
||
) |
Definition at line 48 of file MainWindowMDIInstantiator.cpp.
References KDDockWidgets::Core::MDILayout::addDockWidget(), KDDockWidgets::QtQuick::Platform::dockWidgetForItem(), and KDDockWidgets::Core::MainWindow::mdiLayout().
Definition at line 43 of file MainWindowMDIInstantiator.cpp.
References KDDockWidgets::Core::MainWindow::affinities().
|
overrideprotected |
Definition at line 64 of file MainWindowMDIInstantiator.cpp.
bool MainWindowMDIInstantiator::closeDockWidgets | ( | bool | force = false | ) |
Definition at line 59 of file MainWindowMDIInstantiator.cpp.
References KDDockWidgets::Core::MainWindow::closeDockWidgets().
|
overrideprotected |
Definition at line 69 of file MainWindowMDIInstantiator.cpp.
References KDDockWidgets::Core::View::asMainWindowController(), QString::isEmpty(), and KDDockWidgets::DockRegistry::self().
|
signal |
void MainWindowMDIInstantiator::setUniqueName | ( | const QString & | name | ) |
Definition at line 35 of file MainWindowMDIInstantiator.cpp.
References uniqueNameChanged().
QString MainWindowMDIInstantiator::uniqueName | ( | ) | const |
Definition at line 30 of file MainWindowMDIInstantiator.cpp.
|
signal |
Referenced by setUniqueName().
Definition at line 34 of file MainWindowMDIInstantiator.h.
|
readwrite |
Definition at line 33 of file MainWindowMDIInstantiator.h.