6#include "RenderPluginModel.h"
8#include "DialogConfigurationInterface.h"
9#include "RenderPlugin.h"
14class Q_DECL_HIDDEN RenderPluginModel::Private
19 static bool renderPluginGuiStringLessThan(RenderPlugin *one, RenderPlugin *two)
28RenderPluginModel::Private::Private()
33RenderPluginModel::RenderPluginModel(
QObject *parent)
39RenderPluginModel::~RenderPluginModel()
42 while (invisibleRootItem()->hasChildren()) {
43 invisibleRootItem()->takeRow(0);
52 while (invisibleRootItem()->hasChildren()) {
53 invisibleRootItem()->takeRow(0);
56 d->m_renderPlugins = renderPlugins;
57 std::sort(d->m_renderPlugins.begin(), d->m_renderPlugins.end(), Private::renderPluginGuiStringLessThan);
70 if (index.
row() < 0 || index.
row() >= d->m_renderPlugins.count())
73 return d->m_renderPlugins.
at(index.
row())->pluginAuthors();
76DialogConfigurationInterface *RenderPluginModel::pluginDialogConfigurationInterface(
const QModelIndex &index)
81 if (index.
row() < 0 || index.
row() >= d->m_renderPlugins.count())
84 RenderPlugin *plugin = d->m_renderPlugins.at(index.
row());
85 return qobject_cast<DialogConfigurationInterface *>(plugin);
88void RenderPluginModel::retrievePluginState()
91 plugin->retrieveItemState();
95void RenderPluginModel::applyPluginState()
98 plugin->applyItemState();
104#include "moc_RenderPluginModel.cpp"
The abstract class that creates a renderable item.
Binds a QML item to a specific geodetic location in screen coordinates.
const_reference at(qsizetype i) const const
bool isValid() const const
void appendRow(QStandardItem *item)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.