From 7ed314571a3440931eb38f4837230f62049fd475 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 14 May 2013 18:19:33 +0200 Subject: [PATCH] get rid of Plasma::FormFactor --- scripting/panel.cpp | 4 ++-- view.cpp | 10 +++++----- view.h | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripting/panel.cpp b/scripting/panel.cpp index fc2936b8d..b1135c24f 100644 --- a/scripting/panel.cpp +++ b/scripting/panel.cpp @@ -86,8 +86,8 @@ void Panel::setLocation(const QString &locationString) } const QString lower = locationString.toLower(); - Plasma::Location loc = Plasma::Types::Floating; - Plasma::FormFactor ff = Plasma::Types::Planar; + Plasma::Types::Location loc = Plasma::Types::Floating; + Plasma::Types::FormFactor ff = Plasma::Types::Planar; if (lower == "desktop") { loc = Plasma::Types::Desktop; } else if (lower == "fullscreen") { diff --git a/view.cpp b/view.cpp index 3411078d4..710f5fd3f 100644 --- a/view.cpp +++ b/view.cpp @@ -75,8 +75,8 @@ void View::init() void View::setContainment(Plasma::Containment *cont) { - Plasma::Location oldLoc = (Plasma::Location)location(); - Plasma::FormFactor oldForm = formFactor(); + Plasma::Types::Location oldLoc = (Plasma::Types::Location)location(); + Plasma::Types::FormFactor oldForm = formFactor(); if (m_containment) { disconnect(m_containment.data(), 0, this, 0); @@ -90,7 +90,7 @@ void View::setContainment(Plasma::Containment *cont) m_containment = cont; if (oldLoc != location()) { - emit locationChanged((Plasma::Location)location()); + emit locationChanged((Plasma::Types::Location)location()); } if (oldForm != formFactor()) { emit formFactorChanged(formFactor()); @@ -133,7 +133,7 @@ Plasma::Containment *View::containment() const //FIXME: wrong types void View::setLocation(int location) { - m_containment.data()->setLocation((Plasma::Location)location); + m_containment.data()->setLocation((Plasma::Types::Location)location); } //FIXME: wrong types @@ -145,7 +145,7 @@ int View::location() const return m_containment.data()->location(); } -Plasma::FormFactor View::formFactor() const +Plasma::Types::FormFactor View::formFactor() const { if (!m_containment) { return Plasma::Types::Planar; diff --git a/view.h b/view.h index ff859ee89..1ae339454 100644 --- a/view.h +++ b/view.h @@ -51,7 +51,7 @@ public: int location() const; void setLocation(int location); - Plasma::FormFactor formFactor() const; + Plasma::Types::FormFactor formFactor() const; QRectF screenGeometry(); @@ -59,8 +59,8 @@ protected Q_SLOTS: void showConfigurationInterface(Plasma::Applet *applet); Q_SIGNALS: - void locationChanged(Plasma::Location location); - void formFactorChanged(Plasma::FormFactor formFactor); + void locationChanged(Plasma::Types::Location location); + void formFactorChanged(Plasma::Types::FormFactor formFactor); void containmentChanged(); void screenGeometryChanged();