fix build
This commit is contained in:
parent
eccf797920
commit
8b627f8c01
@ -5,8 +5,6 @@ set(plasmaview_LIB_SRC
|
|||||||
configview.cpp
|
configview.cpp
|
||||||
containmentconfigview_p.cpp
|
containmentconfigview_p.cpp
|
||||||
currentcontainmentactionsmodel_p.cpp
|
currentcontainmentactionsmodel_p.cpp
|
||||||
shellpluginloader.cpp
|
|
||||||
shellpackage_p.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public:
|
|||||||
void init();
|
void init();
|
||||||
void setContainment(Plasma::Containment *cont);
|
void setContainment(Plasma::Containment *cont);
|
||||||
Plasma::Types::FormFactor formFactor() const;
|
Plasma::Types::FormFactor formFactor() const;
|
||||||
int location() const;
|
Plasma::Types::Location location() const;
|
||||||
void showConfigurationInterface(Plasma::Applet *applet);
|
void showConfigurationInterface(Plasma::Applet *applet);
|
||||||
|
|
||||||
View *q;
|
View *q;
|
||||||
@ -65,8 +65,8 @@ void ViewPrivate::init()
|
|||||||
QSurfaceFormat format;
|
QSurfaceFormat format;
|
||||||
format.setAlphaBufferSize(8);
|
format.setAlphaBufferSize(8);
|
||||||
|
|
||||||
setFormat(format);
|
q->setFormat(format);
|
||||||
setColor(Qt::transparent);
|
q->setColor(Qt::transparent);
|
||||||
|
|
||||||
|
|
||||||
QObject::connect(q->screen(), &QScreen::virtualGeometryChanged,
|
QObject::connect(q->screen(), &QScreen::virtualGeometryChanged,
|
||||||
@ -79,7 +79,7 @@ void ViewPrivate::init()
|
|||||||
q->setResizeMode(View::SizeRootObjectToView);
|
q->setResizeMode(View::SizeRootObjectToView);
|
||||||
q->setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));
|
q->setSource(QUrl::fromLocalFile(corona->package().filePath("views", "Desktop.qml")));
|
||||||
|
|
||||||
connect(m_corona, &Plasma::Corona::packageChanged,
|
QObject::connect(corona, &Plasma::Corona::packageChanged,
|
||||||
q, &View::coronaPackageChanged);
|
q, &View::coronaPackageChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,23 +113,16 @@ void ViewPrivate::setContainment(Plasma::Containment *cont)
|
|||||||
emit q->containmentChanged();
|
emit q->containmentChanged();
|
||||||
|
|
||||||
if (cont) {
|
if (cont) {
|
||||||
connect(cont, &Plasma::Containment::locationChanged,
|
QObject::connect(cont, &Plasma::Containment::locationChanged,
|
||||||
this, &View::locationChanged);
|
q, &View::locationChanged);
|
||||||
connect(cont, &Plasma::Containment::formFactorChanged,
|
QObject::connect(cont, &Plasma::Containment::formFactorChanged,
|
||||||
this, &View::formFactorChanged);
|
q, &View::formFactorChanged);
|
||||||
connect(cont, &Plasma::Containment::configureRequested,
|
QObject::connect(cont, &Plasma::Containment::configureRequested,
|
||||||
this, &View::showConfigurationInterface);
|
q, &View::showConfigurationInterface);
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QObject::connect(cont, &Plasma::Containment::locationChanged,
|
|
||||||
q, &View::locationChanged);
|
|
||||||
QObject::connect(cont, &Plasma::Containment::formFactorChanged,
|
|
||||||
q, &View::formFactorChanged);
|
|
||||||
QObject::connect(cont, &Plasma::Containment::configureRequested,
|
|
||||||
q, &View::showConfigurationInterface);
|
|
||||||
|
|
||||||
QObject *graphicObject = containment.data()->property("graphicObject").value<QObject *>();
|
QObject *graphicObject = containment.data()->property("graphicObject").value<QObject *>();
|
||||||
|
|
||||||
|
|
||||||
@ -147,7 +140,7 @@ void ViewPrivate::setContainment(Plasma::Containment *cont)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ViewPrivate::location() const
|
Plasma::Types::Location ViewPrivate::location() const
|
||||||
{
|
{
|
||||||
if (!containment) {
|
if (!containment) {
|
||||||
return Plasma::Types::Desktop;
|
return Plasma::Types::Desktop;
|
||||||
|
@ -62,23 +62,16 @@ public:
|
|||||||
**/
|
**/
|
||||||
Plasma::Containment *containment() const;
|
Plasma::Containment *containment() const;
|
||||||
|
|
||||||
<<<<<<< HEAD:src/shell/view.h
|
|
||||||
Plasma::Types::Location location() const;
|
|
||||||
void setLocation(Plasma::Types::Location location);
|
|
||||||
=======
|
|
||||||
/**
|
/**
|
||||||
* @return the location of this View
|
* @return the location of this View
|
||||||
**/
|
**/
|
||||||
|
Plasma::Types::Location location() const;
|
||||||
//FIXME: Plasma::Types::Location should be something qml can understand
|
|
||||||
int location() const;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the location of the View
|
* Sets the location of the View
|
||||||
* @param location the location of the View
|
* @param location the location of the View
|
||||||
**/
|
**/
|
||||||
void setLocation(int location);
|
void setLocation(Plasma::Types::Location location);
|
||||||
>>>>>>> plasmaview2:src/plasmaview/view.h
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the formfactor of the View
|
* @return the formfactor of the View
|
||||||
|
@ -57,11 +57,13 @@ set(widgetexplorer_SRC
|
|||||||
|
|
||||||
add_executable(plasma-shell
|
add_executable(plasma-shell
|
||||||
main.cpp
|
main.cpp
|
||||||
desktopcorona.cpp
|
|
||||||
panelview.cpp
|
panelview.cpp
|
||||||
lookandfeelpackage.cpp
|
|
||||||
panelconfigview.cpp
|
panelconfigview.cpp
|
||||||
|
panelshadows.cpp
|
||||||
|
packages.cpp
|
||||||
|
shellcorona.cpp
|
||||||
shellpluginloader.cpp
|
shellpluginloader.cpp
|
||||||
|
shellmanager.cpp
|
||||||
${scripting_SRC}
|
${scripting_SRC}
|
||||||
${widgetexplorer_SRC}
|
${widgetexplorer_SRC}
|
||||||
)
|
)
|
||||||
|
@ -31,8 +31,6 @@
|
|||||||
#include <Plasma/Package>
|
#include <Plasma/Package>
|
||||||
#include <Plasma/PluginLoader>
|
#include <Plasma/PluginLoader>
|
||||||
|
|
||||||
#include "containmentconfigview.h"
|
|
||||||
|
|
||||||
#include "panelview.h"
|
#include "panelview.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
#include "scripting/desktopscriptengine.h"
|
#include "scripting/desktopscriptengine.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user