get rid of Plasma::FormFactor

wilder-5.14
Marco Martin 13 years ago
parent 4e1a87b648
commit 7ed314571a
  1. 4
      scripting/panel.cpp
  2. 10
      view.cpp
  3. 6
      view.h

@ -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") {

@ -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;

@ -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();

Loading…
Cancel
Save