2009-03-23 17:30:32 +01:00
|
|
|
/*
|
|
|
|
* Copyright 2009 by Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2009-04-02 18:40:28 +02:00
|
|
|
#include "extendergroup.h"
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
#include <QAction>
|
2010-04-10 18:15:52 +02:00
|
|
|
#include <QApplication>
|
2009-03-23 17:30:32 +01:00
|
|
|
#include <QString>
|
|
|
|
#include <QList>
|
2011-01-18 20:03:33 +01:00
|
|
|
#include <QTimer>
|
2009-03-23 17:30:32 +01:00
|
|
|
#include <QtGui/QGraphicsWidget>
|
2010-04-01 13:43:51 +02:00
|
|
|
#include <QtGui/QGraphicsLinearLayout>
|
2010-04-10 18:15:52 +02:00
|
|
|
#include <QtGui/QGraphicsSceneDragDropEvent>
|
2009-03-23 17:30:32 +01:00
|
|
|
|
|
|
|
#include "applet.h"
|
|
|
|
#include "extender.h"
|
|
|
|
#include "extenderitem.h"
|
2009-04-02 18:40:28 +02:00
|
|
|
#include "theme.h"
|
2010-04-01 13:43:51 +02:00
|
|
|
#include "widgets/scrollwidget.h"
|
2009-03-23 17:30:32 +01:00
|
|
|
|
2010-04-10 18:15:52 +02:00
|
|
|
#include "private/extender_p.h"
|
2009-03-25 14:03:04 +01:00
|
|
|
#include "private/extendergroup_p.h"
|
2010-04-10 18:15:52 +02:00
|
|
|
#include "private/extenderitemmimedata_p.h"
|
2009-03-23 17:30:32 +01:00
|
|
|
|
2009-03-25 14:03:04 +01:00
|
|
|
namespace Plasma
|
2009-03-23 17:30:32 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
ExtenderGroup::ExtenderGroup(Extender *parent, uint groupId)
|
|
|
|
: ExtenderItem(parent, groupId),
|
|
|
|
d(new ExtenderGroupPrivate(this))
|
|
|
|
{
|
|
|
|
connect(extender(), SIGNAL(itemAttached(Plasma::ExtenderItem*)),
|
|
|
|
this, SLOT(addItemToGroup(Plasma::ExtenderItem*)));
|
|
|
|
connect(extender(), SIGNAL(itemDetached(Plasma::ExtenderItem*)),
|
|
|
|
this, SLOT(removeItemFromGroup(Plasma::ExtenderItem*)));
|
|
|
|
|
2011-01-18 20:03:33 +01:00
|
|
|
//this isn't actually connected to anything, we will just check if it's running or not
|
|
|
|
d->resizeTimer = new QTimer(this);
|
|
|
|
d->resizeTimer->setSingleShot(true);
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
config().writeEntry("isGroup", true);
|
|
|
|
|
2010-04-10 18:15:52 +02:00
|
|
|
setAcceptDrops(true);
|
|
|
|
|
2010-04-01 13:43:51 +02:00
|
|
|
QGraphicsLinearLayout *lay = static_cast<QGraphicsLinearLayout *>(layout());
|
2010-10-11 21:17:19 +02:00
|
|
|
d->childsWidget = new QGraphicsWidget(this);
|
2010-04-08 17:49:00 +02:00
|
|
|
d->childsWidget->installEventFilter(this);
|
2010-04-01 13:43:51 +02:00
|
|
|
d->layout = new QGraphicsLinearLayout(Qt::Vertical, d->childsWidget);
|
2010-04-09 15:05:48 +02:00
|
|
|
d->childsWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
2010-10-11 21:17:19 +02:00
|
|
|
lay->addItem(d->childsWidget);
|
2010-04-01 13:43:51 +02:00
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
QAction *expand = new QAction(this);
|
2010-10-12 13:02:09 +02:00
|
|
|
expand->setVisible(false);
|
2009-03-23 17:30:32 +01:00
|
|
|
expand->setToolTip(i18n("Show this group."));
|
|
|
|
connect(expand, SIGNAL(triggered()), this, SLOT(expandGroup()));
|
|
|
|
addAction("expand", expand);
|
|
|
|
|
|
|
|
QAction *collapse = new QAction(this);
|
2010-10-12 13:02:09 +02:00
|
|
|
collapse->setVisible(true);
|
2009-03-23 17:30:32 +01:00
|
|
|
collapse->setToolTip(i18n("Hide this group."));
|
|
|
|
connect(collapse, SIGNAL(triggered()), this, SLOT(collapseGroup()));
|
|
|
|
addAction("collapse", collapse);
|
|
|
|
|
2009-04-02 18:40:28 +02:00
|
|
|
d->themeChanged();
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
QString groupName;
|
|
|
|
foreach (ExtenderItem *item, extender()->attachedItems()) {
|
|
|
|
groupName = item->config().readEntry("group", "");
|
2009-04-02 18:40:28 +02:00
|
|
|
if (!groupName.isEmpty() && groupName == name()) {
|
2009-03-23 17:30:32 +01:00
|
|
|
item->setGroup(this);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-17 19:58:49 +02:00
|
|
|
if (items().isEmpty() && d->autoHide && !isDetached()) {
|
2009-03-23 17:30:32 +01:00
|
|
|
extender()->itemRemovedEvent(this);
|
2009-04-26 19:03:15 +02:00
|
|
|
hide();
|
2009-03-23 17:30:32 +01:00
|
|
|
}
|
2009-04-02 18:40:28 +02:00
|
|
|
|
2009-04-27 01:49:22 +02:00
|
|
|
if (!config().readEntry("groupCollapsed", true)) {
|
|
|
|
expandGroup();
|
|
|
|
}
|
|
|
|
|
2009-04-02 18:40:28 +02:00
|
|
|
connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()),
|
|
|
|
this, SLOT(themeChanged()));
|
2010-05-18 11:28:06 +02:00
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ExtenderGroup::~ExtenderGroup()
|
|
|
|
{
|
|
|
|
delete d;
|
|
|
|
}
|
|
|
|
|
|
|
|
QList<ExtenderItem*> ExtenderGroup::items() const
|
|
|
|
{
|
|
|
|
QList<ExtenderItem*> result;
|
|
|
|
foreach (ExtenderItem *item, extender()->attachedItems()) {
|
|
|
|
if (item->group() == this) {
|
|
|
|
result.append(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2009-04-17 19:58:49 +02:00
|
|
|
bool ExtenderGroup::autoHide() const
|
2009-03-23 17:30:32 +01:00
|
|
|
{
|
2009-04-17 19:58:49 +02:00
|
|
|
return d->autoHide;
|
2009-03-23 17:30:32 +01:00
|
|
|
}
|
|
|
|
|
2009-04-17 19:58:49 +02:00
|
|
|
void ExtenderGroup::setAutoHide(bool autoHide)
|
2009-03-23 17:30:32 +01:00
|
|
|
{
|
2009-04-17 19:58:49 +02:00
|
|
|
d->autoHide = autoHide;
|
2009-04-26 19:03:15 +02:00
|
|
|
if (autoHide && items().isEmpty()) {
|
2009-03-23 17:30:32 +01:00
|
|
|
extender()->itemRemovedEvent(this);
|
2009-04-26 19:03:15 +02:00
|
|
|
hide();
|
2009-04-17 19:58:49 +02:00
|
|
|
} else if (!autoHide && !isVisible()) {
|
2009-04-04 18:42:59 +02:00
|
|
|
extender()->itemAddedEvent(this);
|
|
|
|
show();
|
2009-03-23 17:30:32 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-12-26 14:02:53 +01:00
|
|
|
bool ExtenderGroup::isAutoCollapse() const
|
|
|
|
{
|
|
|
|
return d->autoCollapse;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExtenderGroup::setAutoCollapse(bool collapse)
|
|
|
|
{
|
|
|
|
d->autoCollapse = collapse;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool ExtenderGroup::isGroupCollapsed() const
|
|
|
|
{
|
|
|
|
return d->collapsed;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExtenderGroup::setGroupCollapsed(bool collapsed)
|
|
|
|
{
|
|
|
|
if (collapsed) {
|
|
|
|
collapseGroup();
|
|
|
|
} else {
|
|
|
|
expandGroup();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
void ExtenderGroup::expandGroup()
|
|
|
|
{
|
2009-12-26 14:02:53 +01:00
|
|
|
if (d->autoCollapse) {
|
|
|
|
setCollapsed(false);
|
|
|
|
}
|
2009-12-26 13:16:45 +01:00
|
|
|
if (d->collapsed == false) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
d->collapsed = false;
|
2009-04-27 01:49:22 +02:00
|
|
|
config().writeEntry("groupCollapsed", d->collapsed);
|
2009-03-23 17:30:32 +01:00
|
|
|
action("collapse")->setVisible(true);
|
|
|
|
action("expand")->setVisible(false);
|
2010-10-16 13:08:25 +02:00
|
|
|
|
|
|
|
d->childsWidget->show();
|
|
|
|
static_cast<QGraphicsLinearLayout *>(layout())->addItem(d->childsWidget);
|
|
|
|
updateGeometry();
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
foreach (ExtenderItem *item, extender()->attachedItems()) {
|
|
|
|
if (item->group() == this) {
|
|
|
|
item->show();
|
|
|
|
extender()->itemAddedEvent(item);
|
|
|
|
}
|
|
|
|
}
|
2010-10-16 13:08:25 +02:00
|
|
|
|
|
|
|
//extender()->resize(extender()->effectiveSizeHint(Qt::PreferredSize));
|
2009-03-23 17:30:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void ExtenderGroup::collapseGroup()
|
|
|
|
{
|
2009-12-26 14:02:53 +01:00
|
|
|
if (d->autoCollapse) {
|
|
|
|
setCollapsed(true);
|
|
|
|
}
|
2009-12-26 13:16:45 +01:00
|
|
|
if (d->collapsed == true) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
d->collapsed = true;
|
2009-04-27 01:49:22 +02:00
|
|
|
config().writeEntry("groupCollapsed", d->collapsed);
|
2009-03-23 17:30:32 +01:00
|
|
|
action("collapse")->setVisible(false);
|
|
|
|
action("expand")->setVisible(true);
|
2010-10-16 13:08:25 +02:00
|
|
|
|
|
|
|
d->childsWidget->hide();
|
|
|
|
static_cast<QGraphicsLinearLayout *>(layout())->removeItem(d->childsWidget);
|
|
|
|
updateGeometry();
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
foreach (ExtenderItem *item, extender()->attachedItems()) {
|
|
|
|
if (item != this && item->group() == this) {
|
|
|
|
item->hide();
|
|
|
|
extender()->itemRemovedEvent(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-04-01 13:43:51 +02:00
|
|
|
void ExtenderGroup::resizeEvent(QGraphicsSceneResizeEvent *event)
|
|
|
|
{
|
|
|
|
ExtenderItem::resizeEvent(event);
|
|
|
|
}
|
2009-03-25 14:03:04 +01:00
|
|
|
|
2010-04-08 17:49:00 +02:00
|
|
|
bool ExtenderGroup::eventFilter(QObject *watched, QEvent *event)
|
|
|
|
{
|
|
|
|
if (watched == d->childsWidget && event->type() == QEvent::GraphicsSceneResize) {
|
2010-12-10 21:00:18 +01:00
|
|
|
static_cast<QGraphicsLayoutItem *>(extender()->d->scrollWidget)->updateGeometry();
|
2011-01-18 20:03:33 +01:00
|
|
|
if (!d->resizeTimer->isActive()) {
|
|
|
|
static_cast<QGraphicsLayoutItem *>(extender())->updateGeometry();
|
|
|
|
extender()->d->adjustSize();
|
|
|
|
d->resizeTimer->start(0);
|
|
|
|
}
|
2010-04-08 17:49:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return ExtenderItem::eventFilter(watched, event);
|
|
|
|
}
|
|
|
|
|
2010-04-10 18:15:52 +02:00
|
|
|
void ExtenderGroup::dragEnterEvent(QGraphicsSceneDragDropEvent *event)
|
|
|
|
{
|
|
|
|
if (event->mimeData()->hasFormat(ExtenderItemMimeData::mimeType())) {
|
|
|
|
event->accept();
|
|
|
|
|
|
|
|
dragMoveEvent(event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExtenderGroup::dragMoveEvent(QGraphicsSceneDragDropEvent *event)
|
|
|
|
{
|
|
|
|
if (event->mimeData()->hasFormat(ExtenderItemMimeData::mimeType())) {
|
|
|
|
const ExtenderItemMimeData *mimeData =
|
|
|
|
qobject_cast<const ExtenderItemMimeData*>(event->mimeData());
|
|
|
|
|
|
|
|
if (mimeData) {
|
|
|
|
QPointF pos(event->pos());
|
|
|
|
if (d->spacerWidget && d->spacerWidget->geometry().contains(pos)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
//Make sure we remove any spacer that might already be in the layout.
|
|
|
|
if (d->spacerWidget) {
|
|
|
|
d->layout->removeItem(d->spacerWidget);
|
|
|
|
}
|
|
|
|
|
|
|
|
int insertIndex = d->insertIndexFromPos(pos);
|
|
|
|
|
|
|
|
//Create a widget that functions as spacer, and add that to the layout.
|
|
|
|
if (!d->spacerWidget) {
|
|
|
|
Spacer *widget = new Spacer(this);
|
|
|
|
ExtenderItem *item = mimeData->extenderItem();
|
|
|
|
qreal left, top, right, bottom;
|
|
|
|
extender()->d->background->getMargins(left, top, right, bottom);
|
|
|
|
widget->setMargins(left, 4, right, 4);
|
|
|
|
|
|
|
|
widget->setMinimumSize(item->minimumSize());
|
|
|
|
widget->setPreferredSize(item->preferredSize());
|
|
|
|
widget->setMaximumSize(item->maximumSize());
|
|
|
|
widget->setSizePolicy(item->sizePolicy());
|
|
|
|
d->spacerWidget = widget;
|
|
|
|
}
|
|
|
|
d->layout->insertItem(insertIndex, d->spacerWidget);
|
2010-10-16 19:41:59 +02:00
|
|
|
|
|
|
|
extender()->d->setPositionFromDragPosition(event->scenePos());
|
2010-04-10 18:15:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExtenderGroup::dropEvent(QGraphicsSceneDragDropEvent *event)
|
|
|
|
{
|
|
|
|
if (event->mimeData()->hasFormat(ExtenderItemMimeData::mimeType())) {
|
|
|
|
const ExtenderItemMimeData *mimeData =
|
|
|
|
qobject_cast<const ExtenderItemMimeData*>(event->mimeData());
|
|
|
|
|
|
|
|
if (mimeData) {
|
2010-04-10 18:43:56 +02:00
|
|
|
mimeData->extenderItem()->setGroup(this, event->pos());
|
2010-04-10 18:15:52 +02:00
|
|
|
QApplication::restoreOverrideCursor();
|
|
|
|
d->layout->removeItem(d->spacerWidget);
|
|
|
|
d->spacerWidget->deleteLater();
|
2010-10-16 14:35:42 +02:00
|
|
|
d->spacerWidget = 0;
|
2010-04-10 18:15:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExtenderGroup::dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
|
|
|
|
{
|
|
|
|
if (event->mimeData()->hasFormat(ExtenderItemMimeData::mimeType())) {
|
|
|
|
if (d->spacerWidget) {
|
|
|
|
d->layout->removeItem(d->spacerWidget);
|
2010-10-16 14:49:55 +02:00
|
|
|
d->spacerWidget->deleteLater();
|
|
|
|
d->spacerWidget = 0;
|
2010-04-10 18:15:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-03-25 14:03:04 +01:00
|
|
|
ExtenderGroupPrivate::ExtenderGroupPrivate(ExtenderGroup *group)
|
2009-04-30 02:46:57 +02:00
|
|
|
: q(group),
|
2010-04-10 18:15:52 +02:00
|
|
|
spacerWidget(0),
|
2009-04-30 02:46:57 +02:00
|
|
|
svg(new Svg(group)),
|
2010-10-12 13:02:09 +02:00
|
|
|
collapsed(false),
|
2009-12-26 14:02:53 +01:00
|
|
|
autoHide(true),
|
2009-12-28 13:02:42 +01:00
|
|
|
autoCollapse(false)
|
2009-03-25 14:03:04 +01:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
ExtenderGroupPrivate::~ExtenderGroupPrivate()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-04-10 18:43:56 +02:00
|
|
|
void ExtenderGroupPrivate::addItemToGroup(Plasma::ExtenderItem *item, const QPointF &pos)
|
2009-03-25 14:03:04 +01:00
|
|
|
{
|
|
|
|
if (item->group() == q) {
|
2010-04-01 13:43:51 +02:00
|
|
|
item->setParentItem(childsWidget);
|
2010-04-09 15:05:48 +02:00
|
|
|
item->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
2010-04-10 18:43:56 +02:00
|
|
|
layout->insertItem(insertIndexFromPos(pos), item);
|
2010-04-08 15:19:17 +02:00
|
|
|
layout->activate();
|
2010-04-08 17:49:00 +02:00
|
|
|
|
2009-04-26 19:03:15 +02:00
|
|
|
if (!q->isVisible() && !q->items().isEmpty()) {
|
|
|
|
q->extender()->itemAddedEvent(q);
|
|
|
|
q->show();
|
|
|
|
}
|
2010-10-29 22:19:05 +02:00
|
|
|
childsWidget->setVisible(!q->isGroupCollapsed());
|
2010-12-10 21:00:18 +01:00
|
|
|
|
|
|
|
if (!q->isGroupCollapsed()) {
|
|
|
|
layout->updateGeometry();
|
|
|
|
static_cast<QGraphicsLayoutItem *>(q)->updateGeometry();
|
|
|
|
static_cast<QGraphicsLayoutItem *>(childsWidget)->updateGeometry();
|
|
|
|
static_cast<QGraphicsLayoutItem *>(q->extender()->d->scrollWidget)->updateGeometry();
|
|
|
|
}
|
|
|
|
|
2010-12-15 15:35:11 +01:00
|
|
|
q->extender()->d->adjustSize();
|
2009-03-25 14:03:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void ExtenderGroupPrivate::removeItemFromGroup(Plasma::ExtenderItem *item)
|
|
|
|
{
|
|
|
|
if (item->group() == q) {
|
2009-04-26 19:03:15 +02:00
|
|
|
if (q->items().isEmpty() && autoHide && !q->isDetached()) {
|
2009-03-25 14:03:04 +01:00
|
|
|
q->extender()->itemRemovedEvent(q);
|
|
|
|
q->hide();
|
|
|
|
}
|
2010-04-01 13:43:51 +02:00
|
|
|
layout->removeItem(item);
|
2010-04-09 15:05:48 +02:00
|
|
|
item->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
2010-12-10 21:00:18 +01:00
|
|
|
|
|
|
|
layout->updateGeometry();
|
|
|
|
static_cast<QGraphicsLayoutItem *>(q)->updateGeometry();
|
|
|
|
static_cast<QGraphicsLayoutItem *>(childsWidget)->updateGeometry();
|
|
|
|
static_cast<QGraphicsLayoutItem *>(q->extender()->d->scrollWidget)->updateGeometry();
|
|
|
|
|
2010-12-15 15:35:11 +01:00
|
|
|
q->extender()->d->adjustSize();
|
2009-03-25 14:03:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-02 18:40:28 +02:00
|
|
|
void ExtenderGroupPrivate::themeChanged()
|
|
|
|
{
|
|
|
|
svg->setImagePath("widgets/configuration-icons");
|
|
|
|
svg->resize();
|
|
|
|
|
|
|
|
q->action("expand")->setIcon(QIcon(svg->pixmap("restore")));
|
|
|
|
q->action("collapse")->setIcon(QIcon(svg->pixmap("collapse")));
|
|
|
|
}
|
|
|
|
|
2010-04-10 18:15:52 +02:00
|
|
|
int ExtenderGroupPrivate::insertIndexFromPos(const QPointF &pos) const
|
|
|
|
{
|
|
|
|
int insertIndex = -1;
|
|
|
|
|
|
|
|
//XXX: duplicated from panel
|
|
|
|
if (pos != QPointF(-1, -1)) {
|
|
|
|
for (int i = 0; i < layout->count(); ++i) {
|
|
|
|
QRectF siblingGeometry = layout->itemAt(i)->geometry();
|
|
|
|
qreal middle = (siblingGeometry.top() + siblingGeometry.bottom()) / 2.0;
|
|
|
|
if (pos.y() < middle) {
|
|
|
|
insertIndex = i;
|
|
|
|
break;
|
|
|
|
} else if (pos.y() <= siblingGeometry.bottom()) {
|
|
|
|
insertIndex = i + 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return insertIndex;
|
|
|
|
}
|
|
|
|
|
2009-03-23 17:30:32 +01:00
|
|
|
} // Plasma namespace
|
|
|
|
|
|
|
|
#include "extendergroup.moc"
|