ebn fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=691079
This commit is contained in:
parent
cf70eb1f86
commit
dd7b8b306b
@ -331,6 +331,11 @@ void Applet::setFailedToLaunch(bool failed, const QString& reason)
|
|||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Applet::type() const
|
||||||
|
{
|
||||||
|
return Type;
|
||||||
|
}
|
||||||
|
|
||||||
QRectF Applet::boundingRect () const
|
QRectF Applet::boundingRect () const
|
||||||
{
|
{
|
||||||
//FIXME: this should be big enough to allow for the failure text?
|
//FIXME: this should be big enough to allow for the failure text?
|
||||||
|
2
applet.h
2
applet.h
@ -337,7 +337,7 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
|
|||||||
/**
|
/**
|
||||||
* Reimplemented from QGraphicsItem
|
* Reimplemented from QGraphicsItem
|
||||||
**/
|
**/
|
||||||
int type() const { return Type; }
|
int type() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reimplemented from QGraphicsItem
|
* Reimplemented from QGraphicsItem
|
||||||
|
@ -73,14 +73,14 @@ bool Package::isValid()
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach (const QString& dir, d->structure.requiredDirectories()) {
|
foreach (const QString& dir, d->structure.requiredDirectories()) {
|
||||||
if (QFile::exists(d->basePath + "/" + dir)) {
|
if (QFile::exists(d->basePath + '/' + dir)) {
|
||||||
d->valid = false;
|
d->valid = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (const QString& file, d->structure.requiredFiles()) {
|
foreach (const QString& file, d->structure.requiredFiles()) {
|
||||||
if (QFile::exists(d->basePath + "/" + file)) {
|
if (QFile::exists(d->basePath + '/' + file)) {
|
||||||
d->valid = false;
|
d->valid = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
* Boston, MA 02110-1301, USA. *
|
* Boston, MA 02110-1301, USA. *
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
#ifndef PLASMA_PACKAGES
|
#ifndef PLASMA_PACKAGES_H // krazy:exclude=includes
|
||||||
#define PLASMA_PACKAGES
|
#define PLASMA_PACKAGES_H
|
||||||
|
|
||||||
#include <plasma/packagestructure.h>
|
#include <plasma/packagestructure.h>
|
||||||
|
|
||||||
|
@ -17,6 +17,9 @@
|
|||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "icon.h"
|
||||||
|
|
||||||
|
#include <QAction>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QGraphicsSceneMouseEvent>
|
#include <QGraphicsSceneMouseEvent>
|
||||||
@ -38,7 +41,6 @@
|
|||||||
#include "phase.h"
|
#include "phase.h"
|
||||||
#include "svg.h"
|
#include "svg.h"
|
||||||
#include "effects/blur.cpp"
|
#include "effects/blur.cpp"
|
||||||
#include "icon.h"
|
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
@ -20,15 +20,15 @@
|
|||||||
#ifndef ICON_H
|
#ifndef ICON_H
|
||||||
#define ICON_H
|
#define ICON_H
|
||||||
|
|
||||||
#include <QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QGraphicsTextItem>
|
#include <QtGui/QGraphicsTextItem>
|
||||||
#include <QAction>
|
|
||||||
|
|
||||||
#include <plasma/dataengine.h>
|
#include <plasma/dataengine.h>
|
||||||
#include <plasma/phase.h>
|
#include <plasma/phase.h>
|
||||||
#include <plasma/plasma_export.h>
|
#include <plasma/plasma_export.h>
|
||||||
#include <plasma/widgets/layoutitem.h>
|
#include <plasma/widgets/layoutitem.h>
|
||||||
|
|
||||||
|
class QAction;
|
||||||
class KUrl;
|
class KUrl;
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
@ -41,8 +41,8 @@ class PLASMA_EXPORT Icon : public QObject, public QGraphicsItem, public LayoutIt
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Icon(QGraphicsItem *parent = 0);
|
explicit Icon(QGraphicsItem *parent = 0);
|
||||||
Icon(const QString &text, QGraphicsItem *parent = 0);
|
explicit Icon(const QString &text, QGraphicsItem *parent = 0);
|
||||||
Icon(const QIcon & icon, const QString &text, QGraphicsItem *parent = 0);
|
Icon(const QIcon & icon, const QString &text, QGraphicsItem *parent = 0);
|
||||||
virtual ~Icon();
|
virtual ~Icon();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user