plasma: mark Plasma::Corona::appletMimeType() as const

could batch such changes but - meh..

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-08-31 00:41:42 +03:00
parent 1d07019215
commit c800e36a5e
4 changed files with 14 additions and 15 deletions

View file

@ -22,9 +22,9 @@
#ifndef PLASMA_CONTAINMENT_H
#define PLASMA_CONTAINMENT_H
#include <QtGui/QGraphicsItem>
#include <QtGui/QWidget>
#include <QtGui/qstyleoption.h>
#include <QGraphicsItem>
#include <QWidget>
#include <QStyleOptionGraphicsItem>
#include <kplugininfo.h>
#include <ksharedconfig.h>

View file

@ -21,6 +21,7 @@
#define PLASMA_CONTAINMENTACTIONS_H
#include <QList>
#include <QAction>
#include <kplugininfo.h>
#include <kdeversion.h>
@ -28,8 +29,6 @@
#include <plasma/plasma.h>
#include <plasma/packagestructure.h>
#include <QAction>
namespace Plasma
{

View file

@ -85,7 +85,7 @@ void Corona::setAppletMimeType(const QString &type)
d->mimetype = type;
}
QString Corona::appletMimeType()
QString Corona::appletMimeType() const
{
return d->mimetype;
}

View file

@ -51,7 +51,7 @@ class PLASMA_EXPORT Corona : public QGraphicsScene
//typedef QHash<QString, QList<Plasma::Applet*> > layouts;
public:
explicit Corona(QObject * parent = 0);
explicit Corona(QObject *parent = nullptr);
~Corona();
/**
@ -63,7 +63,7 @@ public:
/**
* The current mime type of Drag/Drop items.
*/
QString appletMimeType();
QString appletMimeType() const;
/**
* @return the default containment plugin type
@ -195,13 +195,13 @@ public:
/**
* @since 4.4
* Recommended position for a popup window like a menu or a tooltip
* given its size
* @param item the item that the popup should appear adjacent to (an applet, say)
* @param size size of the popup
* @param alignment alignment of the popup, valid flags are Qt::AlignLeft, Qt::AlignRight and Qt::AlignCenter
* @returns reccomended position
*/
* Recommended position for a popup window like a menu or a tooltip
* given its size
* @param item the item that the popup should appear adjacent to (an applet, say)
* @param size size of the popup
* @param alignment alignment of the popup, valid flags are Qt::AlignLeft, Qt::AlignRight and Qt::AlignCenter
* @returns reccomended position
*/
QPoint popupPosition(const QGraphicsItem *item, const QSize &size, Qt::AlignmentFlag alignment = Qt::AlignLeft);
/**