diff --git a/runner.cpp b/runner.cpp index 400c05e58..4c9dd1bd9 100644 --- a/runner.cpp +++ b/runner.cpp @@ -22,6 +22,9 @@ #include "runner.h" +namespace Plasma +{ + class Runner::Private { public: @@ -113,4 +116,6 @@ Runner::List Runner::loadRunners( QWidget* parent ) return runners; } +} // Plasma namespace + #include "runner.moc" diff --git a/runner.h b/runner.h index 9719a7b17..6a3f106aa 100644 --- a/runner.h +++ b/runner.h @@ -26,6 +26,9 @@ class KActionCollection; +namespace Plasma +{ + class KDE_EXPORT Runner : public QObject { Q_OBJECT @@ -111,6 +114,8 @@ class KDE_EXPORT Runner : public QObject void runExactMatch(); }; +} // Plasma namespace + #define K_EXPORT_KRUNNER_RUNNER( libname, classname ) \ K_EXPORT_COMPONENT_FACTORY( \ krunner_##libname, \ diff --git a/widgets/lineedit.cpp b/widgets/lineedit.cpp index 3c499a79c..0b4ad17a3 100644 --- a/widgets/lineedit.cpp +++ b/widgets/lineedit.cpp @@ -26,7 +26,9 @@ #include #include "lineedit.h" -#include "lineedit.moc" + +namespace Plasma +{ class LineEdit::Private { @@ -125,7 +127,6 @@ void LineEdit::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, if(hasFocus() && d->m_cursorVisible) d->m_textLayout.drawCursor(painter, topLeft, d->m_cursorPos); - } void LineEdit::mousePressEvent(QGraphicsSceneMouseEvent *event) @@ -244,3 +245,7 @@ QString LineEdit::getStringValue() const return d->m_text; } +#include "lineedit.moc" + +} // Plasma namespace + diff --git a/widgets/lineedit.h b/widgets/lineedit.h index 8fe8f3e77..b76a1acf0 100644 --- a/widgets/lineedit.h +++ b/widgets/lineedit.h @@ -29,6 +29,9 @@ #include #include "widget.h" +namespace Plasma +{ + class KDE_EXPORT LineEdit : public QObject, public Widget { Q_OBJECT @@ -59,4 +62,6 @@ class KDE_EXPORT LineEdit : public QObject, public Widget Private *const d; }; +} // Plasma namespace + #endif diff --git a/widgets/widget.cpp b/widgets/widget.cpp index eedee99d7..60a2c9aea 100644 --- a/widgets/widget.cpp +++ b/widgets/widget.cpp @@ -18,6 +18,9 @@ #include "widget.h" +namespace Plasma +{ + Widget::Widget(QGraphicsItem *parent, QRectF size) : QGraphicsItem(parent), m_boundingBox(size) @@ -32,3 +35,6 @@ QRectF Widget::boundingRect() const { return m_boundingBox; } + +} // Plasma namespace + diff --git a/widgets/widget.h b/widgets/widget.h index d9c50b79d..ad1156881 100644 --- a/widgets/widget.h +++ b/widgets/widget.h @@ -23,6 +23,9 @@ #include +namespace Plasma +{ + class KDE_EXPORT Widget : public QGraphicsItem { public: @@ -35,4 +38,6 @@ class KDE_EXPORT Widget : public QGraphicsItem QRectF m_boundingBox; }; +} // Plasma namespace + #endif