QGIS/src/gui/qgsdataitemguiprovider.cpp
2019-09-04 07:49:09 +02:00

69 lines
2.0 KiB
C++

/***************************************************************************
qgsdataitemguiprovider.cpp
--------------------------------------
Date : October 2018
Copyright : (C) 2018 by Nyall Dawson
Email : nyall dot dawson at gmail dot com
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "qgsdataitemguiprovider.h"
//
// QgsDataItemGuiContext
//
QgsMessageBar *QgsDataItemGuiContext::messageBar() const
{
return mMessageBar;
}
void QgsDataItemGuiContext::setMessageBar( QgsMessageBar *messageBar )
{
mMessageBar = messageBar;
}
//
// QgsDataItemGuiProvider
//
void QgsDataItemGuiProvider::populateContextMenu( QgsDataItem *, QMenu *, const QList<QgsDataItem *> &, QgsDataItemGuiContext )
{
}
bool QgsDataItemGuiProvider::rename( QgsDataItem *, const QString &, QgsDataItemGuiContext )
{
return false;
}
bool QgsDataItemGuiProvider::deleteLayer( QgsLayerItem *, QgsDataItemGuiContext )
{
return false;
}
bool QgsDataItemGuiProvider::handleDoubleClick( QgsDataItem *, QgsDataItemGuiContext )
{
return false;
}
bool QgsDataItemGuiProvider::acceptDrop( QgsDataItem *, QgsDataItemGuiContext )
{
return false;
}
bool QgsDataItemGuiProvider::handleDrop( QgsDataItem *, QgsDataItemGuiContext, const QMimeData *, Qt::DropAction )
{
return false;
}
QWidget *QgsDataItemGuiProvider::createParamWidget( QgsDataItem *, QgsDataItemGuiContext )
{
return nullptr;
}