use the plasma namespace consistently
svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=638473
This commit is contained in:
parent
248e733a1f
commit
2bfbce6618
@ -22,6 +22,9 @@
|
|||||||
|
|
||||||
#include "runner.h"
|
#include "runner.h"
|
||||||
|
|
||||||
|
namespace Plasma
|
||||||
|
{
|
||||||
|
|
||||||
class Runner::Private
|
class Runner::Private
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -113,4 +116,6 @@ Runner::List Runner::loadRunners( QWidget* parent )
|
|||||||
return runners;
|
return runners;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // Plasma namespace
|
||||||
|
|
||||||
#include "runner.moc"
|
#include "runner.moc"
|
||||||
|
5
runner.h
5
runner.h
@ -26,6 +26,9 @@
|
|||||||
|
|
||||||
class KActionCollection;
|
class KActionCollection;
|
||||||
|
|
||||||
|
namespace Plasma
|
||||||
|
{
|
||||||
|
|
||||||
class KDE_EXPORT Runner : public QObject
|
class KDE_EXPORT Runner : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -111,6 +114,8 @@ class KDE_EXPORT Runner : public QObject
|
|||||||
void runExactMatch();
|
void runExactMatch();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // Plasma namespace
|
||||||
|
|
||||||
#define K_EXPORT_KRUNNER_RUNNER( libname, classname ) \
|
#define K_EXPORT_KRUNNER_RUNNER( libname, classname ) \
|
||||||
K_EXPORT_COMPONENT_FACTORY( \
|
K_EXPORT_COMPONENT_FACTORY( \
|
||||||
krunner_##libname, \
|
krunner_##libname, \
|
||||||
|
@ -26,7 +26,9 @@
|
|||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
|
|
||||||
#include "lineedit.h"
|
#include "lineedit.h"
|
||||||
#include "lineedit.moc"
|
|
||||||
|
namespace Plasma
|
||||||
|
{
|
||||||
|
|
||||||
class LineEdit::Private
|
class LineEdit::Private
|
||||||
{
|
{
|
||||||
@ -125,7 +127,6 @@ void LineEdit::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||||||
|
|
||||||
if(hasFocus() && d->m_cursorVisible)
|
if(hasFocus() && d->m_cursorVisible)
|
||||||
d->m_textLayout.drawCursor(painter, topLeft, d->m_cursorPos);
|
d->m_textLayout.drawCursor(painter, topLeft, d->m_cursorPos);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LineEdit::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
void LineEdit::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||||
@ -244,3 +245,7 @@ QString LineEdit::getStringValue() const
|
|||||||
return d->m_text;
|
return d->m_text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "lineedit.moc"
|
||||||
|
|
||||||
|
} // Plasma namespace
|
||||||
|
|
||||||
|
@ -29,6 +29,9 @@
|
|||||||
#include <applet.h>
|
#include <applet.h>
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
|
||||||
|
namespace Plasma
|
||||||
|
{
|
||||||
|
|
||||||
class KDE_EXPORT LineEdit : public QObject, public Widget
|
class KDE_EXPORT LineEdit : public QObject, public Widget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -59,4 +62,6 @@ class KDE_EXPORT LineEdit : public QObject, public Widget
|
|||||||
Private *const d;
|
Private *const d;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // Plasma namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
|
|
||||||
#include "widget.h"
|
#include "widget.h"
|
||||||
|
|
||||||
|
namespace Plasma
|
||||||
|
{
|
||||||
|
|
||||||
Widget::Widget(QGraphicsItem *parent, QRectF size)
|
Widget::Widget(QGraphicsItem *parent, QRectF size)
|
||||||
: QGraphicsItem(parent),
|
: QGraphicsItem(parent),
|
||||||
m_boundingBox(size)
|
m_boundingBox(size)
|
||||||
@ -32,3 +35,6 @@ QRectF Widget::boundingRect() const
|
|||||||
{
|
{
|
||||||
return m_boundingBox;
|
return m_boundingBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // Plasma namespace
|
||||||
|
|
||||||
|
@ -23,6 +23,9 @@
|
|||||||
|
|
||||||
#include <kdemacros.h>
|
#include <kdemacros.h>
|
||||||
|
|
||||||
|
namespace Plasma
|
||||||
|
{
|
||||||
|
|
||||||
class KDE_EXPORT Widget : public QGraphicsItem
|
class KDE_EXPORT Widget : public QGraphicsItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -35,4 +38,6 @@ class KDE_EXPORT Widget : public QGraphicsItem
|
|||||||
QRectF m_boundingBox;
|
QRectF m_boundingBox;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // Plasma namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user