remove zoom level
This commit is contained in:
parent
bf17cc308a
commit
666793bff2
18
plasma.cpp
18
plasma.cpp
@ -30,24 +30,6 @@
|
||||
namespace Plasma
|
||||
{
|
||||
|
||||
qreal scalingFactor(ZoomLevel level)
|
||||
{
|
||||
switch (level) {
|
||||
case DesktopZoom:
|
||||
return 1;
|
||||
break;
|
||||
case GroupZoom:
|
||||
return 0.5;
|
||||
break;
|
||||
case OverviewZoom:
|
||||
return 0.2;
|
||||
break;
|
||||
}
|
||||
|
||||
// to make odd compilers not warn like silly beasts
|
||||
return 1;
|
||||
}
|
||||
|
||||
Direction locationToDirection(Location location)
|
||||
{
|
||||
switch (location) {
|
||||
|
26
plasma.h
26
plasma.h
@ -97,14 +97,6 @@ enum Direction {
|
||||
Right /**< Display to the right */
|
||||
};
|
||||
|
||||
/**
|
||||
* The direction of a zoom action.
|
||||
*/
|
||||
enum ZoomDirection {
|
||||
ZoomIn = 0, /**< Zoom in one step */
|
||||
ZoomOut = 1 /**< Zoom out one step */
|
||||
};
|
||||
|
||||
/**
|
||||
* The Location enumeration describes where on screen an element, such as an
|
||||
* Applet or its managing container, is positioned on the screen.
|
||||
@ -168,17 +160,6 @@ enum FlipDirection {
|
||||
};
|
||||
Q_DECLARE_FLAGS(Flip, FlipDirection)
|
||||
|
||||
/**
|
||||
* Zoom levels that Plasma is aware of...
|
||||
**/
|
||||
enum ZoomLevel {
|
||||
DesktopZoom = 0, /**< Normal desktop usage, plasmoids are painted normally
|
||||
and have full interaction */
|
||||
GroupZoom, /**< Plasmoids are shown as icons in visual groups; drag
|
||||
and drop and limited context menu interaction only */
|
||||
OverviewZoom /**< Groups become icons themselves */
|
||||
};
|
||||
|
||||
/**
|
||||
* Possible timing alignments
|
||||
**/
|
||||
@ -207,7 +188,7 @@ enum ImmutabilityType {
|
||||
};
|
||||
|
||||
/**
|
||||
* Defines the aspect ratio used when scaling an applet
|
||||
* Defines the aspect ratio used when resizing an applet
|
||||
*/
|
||||
enum AspectRatioMode {
|
||||
InvalidAspectRatioMode = -1, /**< Unset mode used for dev convenience
|
||||
@ -295,11 +276,6 @@ enum BackgroundHints {
|
||||
};
|
||||
Q_ENUMS(BackgroundHints)
|
||||
|
||||
/**
|
||||
* @return the scaling factor (0..1) for a ZoomLevel
|
||||
**/
|
||||
PLASMA_EXPORT qreal scalingFactor(ZoomLevel level);
|
||||
|
||||
/**
|
||||
* Converts a location to a direction. Handy for figuring out which way to send a popup based on
|
||||
* location or to point arrows and other directional items.
|
||||
|
Loading…
Reference in New Issue
Block a user