mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-10 09:57:35 +03:00
add edge in view data
This commit is contained in:
parent
386e1bf284
commit
065a3ee9c4
@ -35,6 +35,7 @@ View::View(View &&o)
|
||||
onPrimary(o.onPrimary),
|
||||
screen(o.screen),
|
||||
maxLength(o.maxLength),
|
||||
edge(o.edge),
|
||||
alignment(o.alignment),
|
||||
originType(o.originType),
|
||||
originFile(o.originFile),
|
||||
@ -45,8 +46,9 @@ View::View(View &&o)
|
||||
View::View(const View &o)
|
||||
: Generic(o),
|
||||
onPrimary(o.onPrimary),
|
||||
screen(o.screen),
|
||||
screen(o.screen),
|
||||
maxLength(o.maxLength),
|
||||
edge(o.edge),
|
||||
alignment(o.alignment),
|
||||
originType(o.originType),
|
||||
originFile(o.originFile),
|
||||
@ -61,6 +63,7 @@ View &View::operator=(const View &rhs)
|
||||
onPrimary = rhs.onPrimary;
|
||||
screen = rhs.screen;
|
||||
maxLength = rhs.maxLength;
|
||||
edge = rhs.edge;
|
||||
alignment = rhs.alignment;
|
||||
originType = rhs.originType;
|
||||
originFile = rhs.originFile;
|
||||
@ -76,6 +79,7 @@ View &View::operator=(View &&rhs)
|
||||
onPrimary = rhs.onPrimary;
|
||||
screen = rhs.screen;
|
||||
maxLength = rhs.maxLength;
|
||||
edge = rhs.edge;
|
||||
alignment = rhs.alignment;
|
||||
originType = rhs.originType;
|
||||
originFile = rhs.originFile;
|
||||
@ -91,6 +95,7 @@ bool View::operator==(const View &rhs) const
|
||||
&& (onPrimary == rhs.onPrimary)
|
||||
&& (screen == rhs.screen)
|
||||
&& (maxLength == rhs.maxLength)
|
||||
&& (edge == rhs.edge)
|
||||
&& (alignment == rhs.alignment)
|
||||
&& (originType == rhs.originType)
|
||||
&& (originFile == rhs.originFile)
|
||||
|
@ -26,11 +26,13 @@
|
||||
#include "genericdata.h"
|
||||
#include "../screenpool.h"
|
||||
|
||||
|
||||
//! Qt
|
||||
// Qt
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
// Plasma
|
||||
#include <Plasma>
|
||||
|
||||
|
||||
namespace Latte {
|
||||
namespace Data {
|
||||
@ -52,6 +54,7 @@ public:
|
||||
bool onPrimary{true};
|
||||
int screen{Latte::ScreenPool::FIRSTSCREENID};
|
||||
float maxLength{1.0};
|
||||
Plasma::Types::Location edge{Plasma::Types::BottomEdge};
|
||||
Latte::Types::Alignment alignment{Latte::Types::Center};
|
||||
|
||||
bool hasViewTemplateOrigin() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user