class inserts into namespace Latte

pull/1/head
Johan Smith Agudelo Rodriguez 8 years ago committed by Michail Vourlakos
parent 35aafde5b0
commit 335e473a64

@ -72,7 +72,7 @@ int main(int argc, char **argv)
"%{if-critical}\n%{backtrace depth=" DEPTH " separator=\"\n\"}%{endif}" CNORMAL));
// qputenv("QT_QUICK_CONTROLS_1_STYLE", "Desktop");
NowDockCorona corona;
Latte::NowDockCorona corona;
return app.exec();
}

@ -32,6 +32,8 @@
#include <plasma/package.h>
namespace Latte {
NowDockConfigView::NowDockConfigView(Plasma::Containment *containment, NowDockView *dockView, QWindow *parent)
: PlasmaQuick::ConfigView(containment, parent), m_containment(containment), m_dockView(dockView)
{
@ -238,4 +240,5 @@ void NowDockConfigView::immutabilityChanged(Plasma::Types::ImmutabilityType type
}
}
}
// kate: indent-mode cstyle; indent-width 4; replace-tabs on;

@ -34,6 +34,8 @@ class Containment;
class Types;
}
namespace Latte {
class NowDockView;
class NowDockConfigView : public PlasmaQuick::ConfigView {
@ -65,5 +67,7 @@ private:
QTimer m_screenSyncTimer;
};
}
#endif //DOCKCONFIGVIEW_H
// kate: indent-mode cstyle; indent-width 4; replace-tabs on;

@ -38,6 +38,8 @@
#include <KPackage/Package>
#include <KPackage/PackageLoader>
namespace Latte {
NowDockCorona::NowDockCorona(QObject *parent)
: Plasma::Corona(parent)
{
@ -229,3 +231,5 @@ inline void NowDockCorona::qmlRegisterTypes() const
// qmlRegisterUncreatableType<NowDockView>(uri, vMajor, vMinor, "DockView", "class DockView uncreatable");
qmlRegisterType<QScreen>();
}
}

@ -33,6 +33,8 @@ class Containment;
class Types;
}
namespace Latte {
class NowDockCorona : public Plasma::Corona {
Q_OBJECT
@ -63,5 +65,6 @@ private:
std::vector<NowDockView *> m_containments;
};
}
#endif

@ -39,6 +39,7 @@
#include "nowdockcorona.h"
namespace Latte {
NowDockView::NowDockView(Plasma::Corona *corona, QScreen *targetScreen)
: PlasmaQuick::ContainmentView(corona),
@ -81,7 +82,6 @@ NowDockView::NowDockView(Plasma::Corona *corona, QScreen *targetScreen)
m_visibility = new VisibilityManager(this);
}
m_visibility->setContainment(containment());
}, Qt::DirectConnection);
}
@ -417,7 +417,6 @@ void NowDockView::setMaskArea(QRect area)
}
m_maskArea = area;
m_visibility->setMaskArea(area);
setMask(m_maskArea);
@ -577,6 +576,8 @@ void NowDockView::restoreConfig()
// setAlignment(static_cast<Dock::Alignment>(readEntry("alignment", Dock::Center).toInt()));
}
}
//!END SLOTS

@ -47,12 +47,12 @@ class DockConfigView;
class VisibilityManager;
}*/
namespace Latte {
class NowDockView : public PlasmaQuick::ContainmentView {
Q_OBJECT
Q_PROPERTY(bool compositing READ compositing NOTIFY compositingChanged)
Q_PROPERTY(int height READ height NOTIFY heightChanged)
Q_PROPERTY(int length READ length WRITE setLength NOTIFY lengthChanged)
Q_PROPERTY(int maxLength READ maxLength WRITE setMaxLength NOTIFY maxLengthChanged)
@ -61,9 +61,7 @@ class NowDockView : public PlasmaQuick::ContainmentView {
Q_PROPERTY(int width READ width NOTIFY widthChanged)
Q_PROPERTY(QRect maskArea READ maskArea WRITE setMaskArea NOTIFY maskAreaChanged)
Q_PROPERTY(VisibilityManager *visibility READ visibility NOTIFY visibilityChanged)
Q_PROPERTY(QQmlListProperty<QScreen> screens READ screens)
public:
@ -165,4 +163,6 @@ private:
void initWindow();
};
}
#endif

Loading…
Cancel
Save