Fix minor EBN issues and typos
This commit is contained in:
parent
9b6c2cddc7
commit
72ca2f79e0
@ -42,9 +42,9 @@
|
|||||||
#ifndef MODELTEST_H
|
#ifndef MODELTEST_H
|
||||||
#define MODELTEST_H
|
#define MODELTEST_H
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
#include <QtCore/QAbstractItemModel>
|
#include <QAbstractItemModel>
|
||||||
#include <QtCore/QStack>
|
#include <QStack>
|
||||||
|
|
||||||
class ModelTest : public QObject
|
class ModelTest : public QObject
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,20 @@
|
|||||||
|
/*
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef DAYDATA_H
|
#ifndef DAYDATA_H
|
||||||
#define DAYDATA_H
|
#define DAYDATA_H
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include <QQuickItem>
|
#include <QQuickItem>
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QtCore/QVariant>
|
#include <QVariant>
|
||||||
#include <Plasma/Plasma>
|
#include <Plasma/Plasma>
|
||||||
#include <Plasma/Theme>
|
#include <Plasma/Theme>
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ class FrameSvgItem : public QQuickItem
|
|||||||
/**
|
/**
|
||||||
* Set a color group for the FrameSvgItem.
|
* Set a color group for the FrameSvgItem.
|
||||||
* if the Svg uses stylesheets and has elements
|
* if the Svg uses stylesheets and has elements
|
||||||
* that are eithe TextColor or BackgroundColor class,
|
* that are either TextColor or BackgroundColor class,
|
||||||
* make them use ButtonTextColor/ButtonBackgroundColor
|
* make them use ButtonTextColor/ButtonBackgroundColor
|
||||||
* or ViewTextColor/ViewBackgroundColor, ComplementaryTextColor etc.
|
* or ViewTextColor/ViewBackgroundColor, ComplementaryTextColor etc.
|
||||||
*/
|
*/
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <QQuickItem>
|
#include <QQuickItem>
|
||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QtCore/QVariant>
|
#include <QVariant>
|
||||||
#include <Plasma/Plasma>
|
#include <Plasma/Plasma>
|
||||||
|
|
||||||
class QQuickItem;
|
class QQuickItem;
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QQuickWindow>
|
#include <QQuickWindow>
|
||||||
#include <QtCore/QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
class QQuickItem;
|
class QQuickItem;
|
||||||
class QGraphicsWidget;
|
class QGraphicsWidget;
|
||||||
|
@ -185,7 +185,7 @@ void FullScreenWindow::setMainItem(QGraphicsObject *mainItem)
|
|||||||
mainItem->installEventFilter(this);
|
mainItem->installEventFilter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
//if this is called in Compenent.onCompleted we have to wait a loop the item is added to a scene
|
//if this is called in Component.onCompleted we have to wait a loop the item is added to a scene
|
||||||
QTimer::singleShot(0, this, SLOT(syncViewToMainItem()));
|
QTimer::singleShot(0, this, SLOT(syncViewToMainItem()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -196,7 +196,7 @@ void FullScreenWindow::syncViewToMainItem()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//not have a scene? go up in the hyerarchy until we find something with a scene
|
//not have a scene? go up in the hierarchy until we find something with a scene
|
||||||
QGraphicsScene *scene = m_mainItem.data()->scene();
|
QGraphicsScene *scene = m_mainItem.data()->scene();
|
||||||
if (!scene) {
|
if (!scene) {
|
||||||
QObject *parent = m_mainItem.data();
|
QObject *parent = m_mainItem.data();
|
||||||
|
@ -225,7 +225,7 @@ Item {
|
|||||||
// The number of ongoing transitions.
|
// The number of ongoing transitions.
|
||||||
property int ongoingTransitionCount: 0
|
property int ongoingTransitionCount: 0
|
||||||
|
|
||||||
//FIXME: there should be a way to access to theh without storing it in an ugly way
|
//FIXME: there should be a way to access to them without storing it in an ugly way
|
||||||
property bool completed: false
|
property bool completed: false
|
||||||
|
|
||||||
// Sets the page status.
|
// Sets the page status.
|
||||||
@ -298,7 +298,7 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handles state change depening on transition animation status
|
// Handles state change depending on transition animation status
|
||||||
function setState(newState)
|
function setState(newState)
|
||||||
{
|
{
|
||||||
if (transitionAnimationRunning)
|
if (transitionAnimationRunning)
|
||||||
|
@ -171,7 +171,7 @@ Item{
|
|||||||
fill: parent
|
fill: parent
|
||||||
leftMargin: -margins.left
|
leftMargin: -margins.left
|
||||||
rightMargin: -margins.right
|
rightMargin: -margins.right
|
||||||
//FIXME: difference between actial border and shadow
|
//FIXME: difference between actual border and shadow
|
||||||
topMargin: toolBar.y <= 0 ? -margins.top : -margins.top/2
|
topMargin: toolBar.y <= 0 ? -margins.top : -margins.top/2
|
||||||
bottomMargin: toolBar.y >= toolBar.parent.height - toolBar.height ? -margins.bottom : -margins.bottom/2
|
bottomMargin: toolBar.y >= toolBar.parent.height - toolBar.height ? -margins.bottom : -margins.bottom/2
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ Item {
|
|||||||
property variant parentPos
|
property variant parentPos
|
||||||
imagePath: fallbackComponent.svgPath
|
imagePath: fallbackComponent.svgPath
|
||||||
property bool under: root.visualParent ? internal.parentPos.y + root.visualParent.height + height < dismissArea.height : true
|
property bool under: root.visualParent ? internal.parentPos.y + root.visualParent.height + height < dismissArea.height : true
|
||||||
//bindings won't work inside anchers definition
|
//bindings won't work inside anchors definition
|
||||||
onUnderChanged: {
|
onUnderChanged: {
|
||||||
if (under) {
|
if (under) {
|
||||||
tipSvg.anchors.top = undefined
|
tipSvg.anchors.top = undefined
|
||||||
|
@ -177,7 +177,7 @@ Item {
|
|||||||
// The number of ongoing transitions.
|
// The number of ongoing transitions.
|
||||||
property int ongoingTransitionCount: 0
|
property int ongoingTransitionCount: 0
|
||||||
|
|
||||||
//FIXME: there should be a way to access to theh without storing it in an ugly way
|
//FIXME: there should be a way to access to them without storing it in an ugly way
|
||||||
property bool completed: false
|
property bool completed: false
|
||||||
|
|
||||||
// Duration of transition animation (in ms)
|
// Duration of transition animation (in ms)
|
||||||
@ -354,7 +354,7 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handles state change depening on transition animation status
|
// Handles state change depending on transition animation status
|
||||||
function setState(newState)
|
function setState(newState)
|
||||||
{
|
{
|
||||||
if (transitionAnimationRunning)
|
if (transitionAnimationRunning)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2014 by Marco MArtin <mart@kde.org>
|
* Copyright (C) 2014 by Marco Martin <mart@kde.org>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Library General Public License as
|
* it under the terms of the GNU Library General Public License as
|
||||||
@ -37,7 +37,7 @@ QtQuickControlStyle.TextFieldStyle {
|
|||||||
placeholderTextColor: Qt.rgba(theme.viewTextColor.r, theme.viewTextColor.g, theme.viewTextColor.b, 0.5)
|
placeholderTextColor: Qt.rgba(theme.viewTextColor.r, theme.viewTextColor.g, theme.viewTextColor.b, 0.5)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Since the password echo is a circle woithout vertical or horizontal lines, it won't be
|
* Since the password echo is a circle without vertical or horizontal lines, it won't be
|
||||||
* more blurred with different rendring types.
|
* more blurred with different rendring types.
|
||||||
* Using Qt rendering, the dots will look more aligned and equally spaced.
|
* Using Qt rendering, the dots will look more aligned and equally spaced.
|
||||||
* Also if we are on mobile, make sure we use QtRendering
|
* Also if we are on mobile, make sure we use QtRendering
|
||||||
@ -52,7 +52,7 @@ QtQuickControlStyle.TextFieldStyle {
|
|||||||
|
|
||||||
background: Item {
|
background: Item {
|
||||||
//QQC button heights are max(backgroundHeight, label + margins).
|
//QQC button heights are max(backgroundHeight, label + margins).
|
||||||
//QQC lineedits are only from the background (and if background is not set, just an arbirtary value of 25)
|
//QQC lineedits are only from the background (and if background is not set, just an arbirtrary value of 25)
|
||||||
//Why? I don't know
|
//Why? I don't know
|
||||||
|
|
||||||
//In order to get the same height in both buttons and lineedits we need to apply the same rule here
|
//In order to get the same height in both buttons and lineedits we need to apply the same rule here
|
||||||
|
@ -527,7 +527,7 @@ void Applet::flushPendingConstraintsEvents()
|
|||||||
d->constraintsTimer.stop();
|
d->constraintsTimer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
//qCDebug(LOG_PLASMA) << "fushing constraints: " << d->pendingConstraints << "!!!!!!!!!!!!!!!!!!!!!!!!!!!";
|
//qCDebug(LOG_PLASMA) << "flushing constraints: " << d->pendingConstraints << "!!!!!!!!!!!!!!!!!!!!!!!!!!!";
|
||||||
Plasma::Types::Constraints c = d->pendingConstraints;
|
Plasma::Types::Constraints c = d->pendingConstraints;
|
||||||
d->pendingConstraints = Types::NoConstraint;
|
d->pendingConstraints = Types::NoConstraint;
|
||||||
|
|
||||||
@ -578,7 +578,7 @@ void Applet::flushPendingConstraintsEvents()
|
|||||||
action->setEnabled(canConfig);
|
action->setEnabled(canConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
//an immutable constraint will alwasy happen at startup
|
//an immutable constraint will always happen at startup
|
||||||
//make sure don't emit a change signal for nothing
|
//make sure don't emit a change signal for nothing
|
||||||
if (d->oldImmutability != immutability()) {
|
if (d->oldImmutability != immutability()) {
|
||||||
emit immutabilityChanged(immutability());
|
emit immutabilityChanged(immutability());
|
||||||
@ -586,7 +586,7 @@ void Applet::flushPendingConstraintsEvents()
|
|||||||
d->oldImmutability = immutability();
|
d->oldImmutability = immutability();
|
||||||
}
|
}
|
||||||
|
|
||||||
// now take care of constraints in special subclass: Contaiment
|
// now take care of constraints in special subclass: Containment
|
||||||
Containment *containment = qobject_cast<Plasma::Containment *>(this);
|
Containment *containment = qobject_cast<Plasma::Containment *>(this);
|
||||||
if (containment) {
|
if (containment) {
|
||||||
containment->d->containmentConstraintsEvent(c);
|
containment->d->containmentConstraintsEvent(c);
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include <qtemporaryfile.h>
|
#include <qtemporaryfile.h>
|
||||||
#include <qmimedatabase.h>
|
#include <qmimedatabase.h>
|
||||||
|
|
||||||
#include <QDebug>
|
|
||||||
#include <kauthorized.h>
|
#include <kauthorized.h>
|
||||||
#include <klocalizedstring.h>
|
#include <klocalizedstring.h>
|
||||||
#include <KConfigSkeleton>
|
#include <KConfigSkeleton>
|
||||||
|
@ -42,7 +42,7 @@ class ContainmentPrivate;
|
|||||||
* Containment objects provide the means to group applets into functional sets.
|
* Containment objects provide the means to group applets into functional sets.
|
||||||
* They also provide the following:
|
* They also provide the following:
|
||||||
*
|
*
|
||||||
* creation of focussing event
|
* creation of focusing event
|
||||||
* - drawing of the background image (which can be interactive)
|
* - drawing of the background image (which can be interactive)
|
||||||
* - form factors (e.g. panel, desktop, full screen, etc)
|
* - form factors (e.g. panel, desktop, full screen, etc)
|
||||||
* - applet layout management
|
* - applet layout management
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QWheelEvent>
|
#include <QWheelEvent>
|
||||||
#include <QContextMenuEvent>
|
#include <QContextMenuEvent>
|
||||||
#include <QMouseEvent>
|
|
||||||
#include <QWheelEvent>
|
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <klocalizedstring.h>
|
#include <klocalizedstring.h>
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
#include <QScreen>
|
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
@ -222,7 +222,7 @@ public:
|
|||||||
QList<Plasma::Types::Location> freeEdges(int screen) const;
|
QList<Plasma::Types::Location> freeEdges(int screen) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The actions assocated with this Corona
|
* The actions associated with this Corona
|
||||||
*/
|
*/
|
||||||
KActionCollection *actions() const;
|
KActionCollection *actions() const;
|
||||||
|
|
||||||
@ -391,10 +391,10 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* Loads a containment with delayed initialization, primarily useful
|
* Loads a containment with delayed initialization, primarily useful
|
||||||
* for implementations of loadDefaultLayout. The caller is responsible
|
* for implementations of loadDefaultLayout. The caller is responsible
|
||||||
* for all initializating, saving and notification of a new containment.
|
* for all initialization, saving and notification of a new containment.
|
||||||
*
|
*
|
||||||
* @param name the plugin name for the containment, as given by
|
* @param name the plugin name for the containment, as given by
|
||||||
* KPluginInfo::pluginName(). If an empty string is passed in, the defalt
|
* KPluginInfo::pluginName(). If an empty string is passed in, the default
|
||||||
* containment plugin will be used (usually DesktopContainment). If the
|
* containment plugin will be used (usually DesktopContainment). If the
|
||||||
* string literal "null" is passed in, then no plugin will be loaded and
|
* string literal "null" is passed in, then no plugin will be loaded and
|
||||||
* a simple Containment object will be created instead.
|
* a simple Containment object will be created instead.
|
||||||
|
@ -175,7 +175,7 @@ void DataContainer::connectVisualization(QObject *visualization, uint pollingInt
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//qCDebug(LOG_PLASMA) << " connecting to a relay";
|
//qCDebug(LOG_PLASMA) << " connecting to a relay";
|
||||||
// we only want to do an imediate update if this is not the first object to connect to us
|
// we only want to do an immediate update if this is not the first object to connect to us
|
||||||
// if it is the first visualization, then the source will already have been populated
|
// if it is the first visualization, then the source will already have been populated
|
||||||
// engine's sourceRequested method
|
// engine's sourceRequested method
|
||||||
bool immediateUpdate = connected || d->relayObjects.count() > 1;
|
bool immediateUpdate = connected || d->relayObjects.count() > 1;
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef PLASMA_DATACONTAINER_H
|
#ifndef PLASMA_DATACONTAINER_H
|
||||||
#define PLASMA_DATACONTAINER_H
|
#define PLASMA_DATACONTAINER_H
|
||||||
|
|
||||||
#include <QtCore/QHash>
|
#include <QHash>
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
#include <QtCore/QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include <kjob.h>
|
#include <kjob.h>
|
||||||
#include <plasma/plasma_export.h>
|
#include <plasma/plasma_export.h>
|
||||||
@ -113,7 +113,7 @@ public:
|
|||||||
* that is intended to be a long list of items.
|
* that is intended to be a long list of items.
|
||||||
*
|
*
|
||||||
* The ownership of the model is transferred to the DataContainer,
|
* The ownership of the model is transferred to the DataContainer,
|
||||||
* so the model will be deletd when a new one is set or when the
|
* so the model will be deleted when a new one is set or when the
|
||||||
* DataContainer itself is deleted, so it will be deleted when there won't be any
|
* DataContainer itself is deleted, so it will be deleted when there won't be any
|
||||||
* visualization associated to this source.
|
* visualization associated to this source.
|
||||||
*
|
*
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
#include "service.h"
|
#include "service.h"
|
||||||
#include "scripting/dataenginescript.h"
|
#include "scripting/dataenginescript.h"
|
||||||
|
|
||||||
#include "private/datacontainer_p.h"
|
|
||||||
#include "private/service_p.h"
|
#include "private/service_p.h"
|
||||||
#include "private/storage_p.h"
|
#include "private/storage_p.h"
|
||||||
#include "config-plasma.h"
|
#include "config-plasma.h"
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef PLASMA_DATAENGINE_H
|
#ifndef PLASMA_DATAENGINE_H
|
||||||
#define PLASMA_DATAENGINE_H
|
#define PLASMA_DATAENGINE_H
|
||||||
|
|
||||||
#include <QtCore/QHash>
|
#include <QHash>
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
#include <QtCore/QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include <kplugininfo.h>
|
#include <kplugininfo.h>
|
||||||
#include <kservice.h>
|
#include <kservice.h>
|
||||||
@ -321,7 +321,7 @@ protected:
|
|||||||
* doesn't exist then it is created. The source will have the key "HasModel" to easily indicate there is a model present.
|
* doesn't exist then it is created. The source will have the key "HasModel" to easily indicate there is a model present.
|
||||||
*
|
*
|
||||||
* The ownership of the model is transferred to the DataContainer,
|
* The ownership of the model is transferred to the DataContainer,
|
||||||
* so the model will be deletd when a new one is set or when the
|
* so the model will be deleted when a new one is set or when the
|
||||||
* DataContainer itself is deleted. As the DataContainer, it will be
|
* DataContainer itself is deleted. As the DataContainer, it will be
|
||||||
* deleted when there won't be any
|
* deleted when there won't be any
|
||||||
* visualization associated to this source.
|
* visualization associated to this source.
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef PLASMA_DATAENGINECONSUMER_H
|
#ifndef PLASMA_DATAENGINECONSUMER_H
|
||||||
#define PLASMA_DATAENGINECONSUMER_H
|
#define PLASMA_DATAENGINECONSUMER_H
|
||||||
|
|
||||||
#include <QtCore/QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
#include <plasma/plasma_export.h>
|
#include <plasma/plasma_export.h>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef PLASMA_PACKAGE_H
|
#ifndef PLASMA_PACKAGE_H
|
||||||
#define PLASMA_PACKAGE_H
|
#define PLASMA_PACKAGE_H
|
||||||
|
|
||||||
#include <QtCore/QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include <kplugininfo.h>
|
#include <kplugininfo.h>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef PLASMA_PACKAGESTRUCTURE_H
|
#ifndef PLASMA_PACKAGESTRUCTURE_H
|
||||||
#define PLASMA_PACKAGESTRUCTURE_H
|
#define PLASMA_PACKAGESTRUCTURE_H
|
||||||
|
|
||||||
#include <QtCore/QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include <kplugininfo.h>
|
#include <kplugininfo.h>
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include <plasma/plasma.h>
|
#include <plasma/plasma.h>
|
||||||
|
|
||||||
#include <QtWidgets/QAction>
|
#include <QAction>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#include "containment.h"
|
#include "containment.h"
|
||||||
|
@ -106,13 +106,13 @@ public:
|
|||||||
Q_ENUM(ContainmentType)
|
Q_ENUM(ContainmentType)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A descriptrive type for QActions, to help categorizing them when presented to the user
|
* A descriptive type for QActions, to help categorizing them when presented to the user
|
||||||
*/
|
*/
|
||||||
enum ActionType {
|
enum ActionType {
|
||||||
AddAction = 0, /**< The action will cause something new being created*/
|
AddAction = 0, /**< The action will cause something new being created*/
|
||||||
ConfigureAction = 100, /**< The Action will make some kind of configuration ui to appear */
|
ConfigureAction = 100, /**< The Action will make some kind of configuration ui to appear */
|
||||||
ControlAction = 200, /**< Generic control, similar to ConfigureAction TODO: better doc */
|
ControlAction = 200, /**< Generic control, similar to ConfigureAction TODO: better doc */
|
||||||
MiscAction = 300, /**< A type of action that doesn't fit in the oher categories */
|
MiscAction = 300, /**< A type of action that doesn't fit in the other categories */
|
||||||
DestructiveAction = 400, /**< A dangerous action, such as deletion of objects, plasmoids and files. They are intended to be shown separated from other actions */
|
DestructiveAction = 400, /**< A dangerous action, such as deletion of objects, plasmoids and files. They are intended to be shown separated from other actions */
|
||||||
UserAction = DestructiveAction + 1000 /**< If new types are needed in a C++ implementation, define them as ids more than UserAction*/
|
UserAction = DestructiveAction + 1000 /**< If new types are needed in a C++ implementation, define them as ids more than UserAction*/
|
||||||
};
|
};
|
||||||
@ -122,7 +122,7 @@ public:
|
|||||||
* The Direction enumeration describes in which direction, relative to the
|
* The Direction enumeration describes in which direction, relative to the
|
||||||
* Applet (and its managing container), popup menus, expanders, balloons,
|
* Applet (and its managing container), popup menus, expanders, balloons,
|
||||||
* message boxes, arrows and other such visually associated widgets should
|
* message boxes, arrows and other such visually associated widgets should
|
||||||
* appear in. This is usually the oposite of the Location.
|
* appear in. This is usually the opposite of the Location.
|
||||||
**/
|
**/
|
||||||
enum Direction {
|
enum Direction {
|
||||||
Down = 0, /**< Display downards */
|
Down = 0, /**< Display downards */
|
||||||
|
@ -91,7 +91,7 @@ QString PluginLoaderPrivate::s_containmentActionsPluginDir = QStringLiteral("pla
|
|||||||
|
|
||||||
QSet<QString> PluginLoaderPrivate::knownCategories()
|
QSet<QString> PluginLoaderPrivate::knownCategories()
|
||||||
{
|
{
|
||||||
// this is to trick the tranlsation tools into making the correct
|
// this is to trick the translation tools into making the correct
|
||||||
// strings for translation
|
// strings for translation
|
||||||
QSet<QString> categories = s_customCategories;
|
QSet<QString> categories = s_customCategories;
|
||||||
categories << QStringLiteral(I18N_NOOP("Accessibility")).toLower()
|
categories << QStringLiteral(I18N_NOOP("Accessibility")).toLower()
|
||||||
@ -563,7 +563,7 @@ KPluginInfo::List PluginLoader::listAppletInfo(const QString &category, const QS
|
|||||||
const auto plugins = listAppletMetaData(category, parentApp);
|
const auto plugins = listAppletMetaData(category, parentApp);
|
||||||
|
|
||||||
//NOTE: it still produces kplugininfos from KServices because some user code expects
|
//NOTE: it still produces kplugininfos from KServices because some user code expects
|
||||||
//info.sevice() to be valid and would crash ohtherwise
|
//info.service() to be valid and would crash otherwise
|
||||||
foreach (auto& md, plugins) {
|
foreach (auto& md, plugins) {
|
||||||
auto pi = md.metaDataFileName().endsWith(QLatin1String(".json")) ? KPluginInfo(md) : KPluginInfo(KService::serviceByStorageId(md.metaDataFileName()));
|
auto pi = md.metaDataFileName().endsWith(QLatin1String(".json")) ? KPluginInfo(md) : KPluginInfo(KService::serviceByStorageId(md.metaDataFileName()));
|
||||||
if (!pi.isValid()) {
|
if (!pi.isValid()) {
|
||||||
|
@ -138,7 +138,7 @@ public:
|
|||||||
* @param parent the parent containment. @since 4.6 null is allowed.
|
* @param parent the parent containment. @since 4.6 null is allowed.
|
||||||
* @param name the plugin name, as returned by KPluginInfo::pluginName()
|
* @param name the plugin name, as returned by KPluginInfo::pluginName()
|
||||||
* @param args to send the containmentactions extra arguments
|
* @param args to send the containmentactions extra arguments
|
||||||
* @return a ContaimentActions object
|
* @return a ContainmentActions object
|
||||||
**/
|
**/
|
||||||
ContainmentActions *loadContainmentActions(Containment *parent, const QString &containmentActionsName,
|
ContainmentActions *loadContainmentActions(Containment *parent, const QString &containmentActionsName,
|
||||||
const QVariantList &args = QVariantList());
|
const QVariantList &args = QVariantList());
|
||||||
@ -160,7 +160,7 @@ public:
|
|||||||
* Returns a list of all known applets.
|
* Returns a list of all known applets.
|
||||||
* This may skip applets based on security settings and ExcludeCategories in the application's config.
|
* This may skip applets based on security settings and ExcludeCategories in the application's config.
|
||||||
*
|
*
|
||||||
* @param category Only applets matchin this category will be returned.
|
* @param category Only applets matching this category will be returned.
|
||||||
* Useful in conjunction with knownCategories.
|
* Useful in conjunction with knownCategories.
|
||||||
* If "Misc" is passed in, then applets without a
|
* If "Misc" is passed in, then applets without a
|
||||||
* Categories= entry are also returned.
|
* Categories= entry are also returned.
|
||||||
@ -290,7 +290,7 @@ public:
|
|||||||
* @param type Only containments with this string in X-Plasma-ContainmentType
|
* @param type Only containments with this string in X-Plasma-ContainmentType
|
||||||
* in their .desktop files will be returned. Common values are panel and
|
* in their .desktop files will be returned. Common values are panel and
|
||||||
* desktop
|
* desktop
|
||||||
* @param category Only containments matchin this category will be returned.
|
* @param category Only containments matching this category will be returned.
|
||||||
* Useful in conjunction with knownCategories.
|
* Useful in conjunction with knownCategories.
|
||||||
* If "Miscellaneous" is passed in, then containments without a
|
* If "Miscellaneous" is passed in, then containments without a
|
||||||
* Categories= entry are also returned.
|
* Categories= entry are also returned.
|
||||||
@ -414,7 +414,7 @@ protected:
|
|||||||
* @param parent the parent containment. @since 4.6 null is allowed.
|
* @param parent the parent containment. @since 4.6 null is allowed.
|
||||||
* @param name the plugin name, as returned by KPluginInfo::pluginName()
|
* @param name the plugin name, as returned by KPluginInfo::pluginName()
|
||||||
* @param args to send the containmentactions extra arguments
|
* @param args to send the containmentactions extra arguments
|
||||||
* @return a ContaimentActions object
|
* @return a ContainmentActions object
|
||||||
**/
|
**/
|
||||||
virtual ContainmentActions *internalLoadContainmentActions(Containment *parent, const QString &containmentActionsName, const QVariantList &args);
|
virtual ContainmentActions *internalLoadContainmentActions(Containment *parent, const QString &containmentActionsName, const QVariantList &args);
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ public:
|
|||||||
KConfigGroup *mainConfig;
|
KConfigGroup *mainConfig;
|
||||||
Plasma::Types::Constraints pendingConstraints;
|
Plasma::Types::Constraints pendingConstraints;
|
||||||
|
|
||||||
// sripting and package stuff
|
// scripting and package stuff
|
||||||
AppletScript *script;
|
AppletScript *script;
|
||||||
KPackage::Package package;
|
KPackage::Package package;
|
||||||
KConfigLoader *configLoader;
|
KConfigLoader *configLoader;
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
#include "config-plasma.h"
|
#include "config-plasma.h"
|
||||||
|
|
||||||
#include <QtCore/QMap>
|
#include <QMap>
|
||||||
#include <QtCore/QString>
|
#include <QString>
|
||||||
|
|
||||||
#if ENABLE_REMOTE_WIDGETS
|
#if ENABLE_REMOTE_WIDGETS
|
||||||
#include <QtCrypto>
|
#include <QtCrypto>
|
||||||
|
@ -23,9 +23,9 @@
|
|||||||
#include "servicejob.h"
|
#include "servicejob.h"
|
||||||
#include "storage_p.h"
|
#include "storage_p.h"
|
||||||
|
|
||||||
#include <QtCore/QTimerEvent>
|
#include <QTimerEvent>
|
||||||
#include <QtCore/QElapsedTimer>
|
#include <QElapsedTimer>
|
||||||
#include <QtCore/QBasicTimer>
|
#include <QBasicTimer>
|
||||||
|
|
||||||
#include <QAbstractItemModel>
|
#include <QAbstractItemModel>
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ void DataEngineManager::timerEvent(QTimerEvent *)
|
|||||||
QString path = QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QStringLiteral("/plasma_dataenginemanager_log");
|
QString path = QStandardPaths::writableLocation(QStandardPaths::DataLocation) + QStringLiteral("/plasma_dataenginemanager_log");
|
||||||
QFile f(path);
|
QFile f(path);
|
||||||
if (!f.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)) {
|
if (!f.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)) {
|
||||||
// qCDebug(LOG_PLASMA) << "faild to open" << path;
|
// qCDebug(LOG_PLASMA) << "failed to open" << path;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef PLASMA_SHAREDTIMER_P_H
|
#ifndef PLASMA_SHAREDTIMER_P_H
|
||||||
#define PLASMA_SHAREDTIMER_P_H
|
#define PLASMA_SHAREDTIMER_P_H
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef PLASMA_APPLETSCRIPT_H
|
#ifndef PLASMA_APPLETSCRIPT_H
|
||||||
#define PLASMA_APPLETSCRIPT_H
|
#define PLASMA_APPLETSCRIPT_H
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
#include <QtCore/QRect>
|
#include <QRect>
|
||||||
#include <QtCore/QSizeF>
|
#include <QSizeF>
|
||||||
|
|
||||||
#include <kplugininfo.h>
|
#include <kplugininfo.h>
|
||||||
|
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
#include <plasma/plasma_export.h>
|
#include <plasma/plasma_export.h>
|
||||||
#include <plasma/plasma.h>
|
#include <plasma/plasma.h>
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
#include <QtCore/QRect>
|
#include <QRect>
|
||||||
#include <QtCore/QSizeF>
|
#include <QSizeF>
|
||||||
|
|
||||||
class QPainter;
|
class QPainter;
|
||||||
|
|
||||||
|
@ -20,9 +20,9 @@
|
|||||||
#ifndef PLASMA_SERVICE_H
|
#ifndef PLASMA_SERVICE_H
|
||||||
#define PLASMA_SERVICE_H
|
#define PLASMA_SERVICE_H
|
||||||
|
|
||||||
#include <QtCore/QHash>
|
#include <QHash>
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
#include <QtCore/QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
#include <kconfiggroup.h>
|
#include <kconfiggroup.h>
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ protected:
|
|||||||
* Enables a given service by name
|
* Enables a given service by name
|
||||||
*
|
*
|
||||||
* @param operation the name of the operation to enable or disable
|
* @param operation the name of the operation to enable or disable
|
||||||
* @param enable true if the operation should be enabld, false if disabled
|
* @param enable true if the operation should be enabled, false if disabled
|
||||||
*/
|
*/
|
||||||
void setOperationEnabled(const QString &operation, bool enable);
|
void setOperationEnabled(const QString &operation, bool enable);
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef PLASMA_SERVICEJOB_H
|
#ifndef PLASMA_SERVICEJOB_H
|
||||||
#define PLASMA_SERVICEJOB_H
|
#define PLASMA_SERVICEJOB_H
|
||||||
|
|
||||||
#include <QtCore/QVariant>
|
#include <QVariant>
|
||||||
|
|
||||||
#include <kjob.h>
|
#include <kjob.h>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#ifndef PLASMA_SVG_H
|
#ifndef PLASMA_SVG_H
|
||||||
#define PLASMA_SVG_H
|
#define PLASMA_SVG_H
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
|
|
||||||
#include <plasma/plasma_export.h>
|
#include <plasma/plasma_export.h>
|
||||||
@ -104,14 +104,14 @@ public:
|
|||||||
qreal devicePixelRatio();
|
qreal devicePixelRatio();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Settng a scale factor greater than one it will result in final images scaled by it.
|
* Setting a scale factor greater than one it will result in final images scaled by it.
|
||||||
* Unlike devicePixelRatio, every size and element rect will be scaled accordingly.
|
* Unlike devicePixelRatio, every size and element rect will be scaled accordingly.
|
||||||
* @return how much to scale the rendered image.
|
* @return how much to scale the rendered image.
|
||||||
*/
|
*/
|
||||||
qreal scaleFactor() const;
|
qreal scaleFactor() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Settng a scale factor greater than one it will result in final images scaled by it.
|
* Setting a scale factor greater than one it will result in final images scaled by it.
|
||||||
* Unlike devicePixelRatio, every size and element rect will be scaled accordingly.
|
* Unlike devicePixelRatio, every size and element rect will be scaled accordingly.
|
||||||
* The default value is 1.0 and the scale will be done rounded to the floor integer.
|
* The default value is 1.0 and the scale will be done rounded to the floor integer.
|
||||||
* @param how much to scale the Svg
|
* @param how much to scale the Svg
|
||||||
@ -121,7 +121,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Set a color group for the Svg.
|
* Set a color group for the Svg.
|
||||||
* if the Svg uses stylesheets and has elements
|
* if the Svg uses stylesheets and has elements
|
||||||
* that are eithe TextColor or BackgroundColor class,
|
* that are either TextColor or BackgroundColor class,
|
||||||
* make them use ButtonTextColor/ButtonBackgroundColor
|
* make them use ButtonTextColor/ButtonBackgroundColor
|
||||||
* or ViewTextColor/ViewBackgroundColor
|
* or ViewTextColor/ViewBackgroundColor
|
||||||
*/
|
*/
|
||||||
|
@ -78,7 +78,7 @@ Theme::Theme(const QString &themeName, QObject *parent)
|
|||||||
ThemePrivate::themesRefCount[themeName].ref();
|
ThemePrivate::themesRefCount[themeName].ref();
|
||||||
d = ThemePrivate::themes[themeName];
|
d = ThemePrivate::themes[themeName];
|
||||||
|
|
||||||
// turn off caching so we don't accidently trigger unnecessary disk activity at this point
|
// turn off caching so we don't accidentally trigger unnecessary disk activity at this point
|
||||||
bool useCache = d->cacheTheme;
|
bool useCache = d->cacheTheme;
|
||||||
d->cacheTheme = false;
|
d->cacheTheme = false;
|
||||||
d->setThemeName(themeName, false, false);
|
d->setThemeName(themeName, false, false);
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
#include <QtCore/QObject>
|
#include <QObject>
|
||||||
|
|
||||||
#include <kplugininfo.h>
|
#include <kplugininfo.h>
|
||||||
#include <ksharedconfig.h>
|
#include <ksharedconfig.h>
|
||||||
@ -242,7 +242,7 @@ public:
|
|||||||
* overwritten.
|
* overwritten.
|
||||||
* The actual insert is delayed for optimization reasons and the id
|
* The actual insert is delayed for optimization reasons and the id
|
||||||
* parameter is used to discard repeated inserts in the delay time, useful
|
* parameter is used to discard repeated inserts in the delay time, useful
|
||||||
* when for instance the graphics to inser comes from a quickly resizing
|
* when for instance the graphics to insert comes from a quickly resizing
|
||||||
* object: the frames between the start and destination sizes aren't
|
* object: the frames between the start and destination sizes aren't
|
||||||
* useful in the cache and just cause overhead.
|
* useful in the cache and just cause overhead.
|
||||||
*
|
*
|
||||||
@ -300,16 +300,16 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Discards all the information about a given image from the rectangle disk cache
|
* Discards all the information about a given image from the rectangle disk cache
|
||||||
*
|
*
|
||||||
* @param image the path to the image the cache is assoiated with
|
* @param image the path to the image the cache is associated with
|
||||||
**/
|
**/
|
||||||
void invalidateRectsCache(const QString &image);
|
void invalidateRectsCache(const QString &image);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Frees up memory used by cached information for a given image without removing
|
* Frees up memory used by cached information for a given image without removing
|
||||||
* the permenant record of it on disk.
|
* the permanent record of it on disk.
|
||||||
* @see invalidateRectsCache
|
* @see invalidateRectsCache
|
||||||
*
|
*
|
||||||
* @param image the path to the image the cache is assoiated with
|
* @param image the path to the image the cache is associated with
|
||||||
*/
|
*/
|
||||||
void releaseRectsCache(const QString &image);
|
void releaseRectsCache(const QString &image);
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ class PLASMAQUICK_EXPORT AppletQuickItem : public QQuickItem
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* True when the applet wants the activation signal act in toggle mode, i.e. while being expanded
|
* True when the applet wants the activation signal act in toggle mode, i.e. while being expanded
|
||||||
* the signal shrinks the applet to its not exanded state instead of reexpanding it.
|
* the signal shrinks the applet to its not expanded state instead of reexpanding it.
|
||||||
*/
|
*/
|
||||||
Q_PROPERTY(bool activationTogglesExpanded WRITE setActivationTogglesExpanded READ isActivationTogglesExpanded NOTIFY activationTogglesExpandedChanged)
|
Q_PROPERTY(bool activationTogglesExpanded WRITE setActivationTogglesExpanded READ isActivationTogglesExpanded NOTIFY activationTogglesExpandedChanged)
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
Q_INVOKABLE void appendCategory(const QString &iconName, const QString &name,
|
Q_INVOKABLE void appendCategory(const QString &iconName, const QString &name,
|
||||||
const QString &path, const QString &pluginName, bool visible);
|
const QString &path, const QString &pluginName, bool visible);
|
||||||
// QML Engine isn't particulary smart resolving namespaces, hence fully qualified signature
|
// QML Engine isn't particularily smart resolving namespaces, hence fully qualified signature
|
||||||
Q_INVOKABLE void appendCategory(PlasmaQuick::ConfigCategory *category);
|
Q_INVOKABLE void appendCategory(PlasmaQuick::ConfigCategory *category);
|
||||||
|
|
||||||
Q_INVOKABLE void removeCategory(PlasmaQuick::ConfigCategory *category);
|
Q_INVOKABLE void removeCategory(PlasmaQuick::ConfigCategory *category);
|
||||||
|
@ -94,7 +94,7 @@ void ContainmentViewPrivate::setContainment(Plasma::Containment *cont)
|
|||||||
|
|
||||||
//we are QuickViewSharedEngine::SizeRootObjectToView, but that's not enough, as
|
//we are QuickViewSharedEngine::SizeRootObjectToView, but that's not enough, as
|
||||||
//the root object isn't immediately resized (done at the resizeEvent handler).
|
//the root object isn't immediately resized (done at the resizeEvent handler).
|
||||||
//by resising it just before restoring the containment, it removes a chain of resizes at startup
|
//by resizing it just before restoring the containment, it removes a chain of resizes at startup
|
||||||
if (q->rootObject()) {
|
if (q->rootObject()) {
|
||||||
q->rootObject()->setSize(q->size());
|
q->rootObject()->setSize(q->size());
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,6 @@
|
|||||||
#include <KWayland/Client/surface.h>
|
#include <KWayland/Client/surface.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <config-plasma.h>
|
|
||||||
#if HAVE_XCB_SHAPE
|
#if HAVE_XCB_SHAPE
|
||||||
#include <QX11Info>
|
#include <QX11Info>
|
||||||
#include <xcb/shape.h>
|
#include <xcb/shape.h>
|
||||||
@ -191,7 +190,7 @@ QRect DialogPrivate::availableScreenGeometryForPosition(const QPoint& pos) const
|
|||||||
* more reliable anyways (could be tried to remove the whole Q_FOREACH
|
* more reliable anyways (could be tried to remove the whole Q_FOREACH
|
||||||
* at this point)
|
* at this point)
|
||||||
*
|
*
|
||||||
* imporant: screen can be a nullptr... see bug 345173
|
* important: screen can be a nullptr... see bug 345173
|
||||||
*/
|
*/
|
||||||
if (avail.isEmpty() && q->screen()) {
|
if (avail.isEmpty() && q->screen()) {
|
||||||
avail = q->screen()->availableGeometry();
|
avail = q->screen()->availableGeometry();
|
||||||
|
@ -208,7 +208,7 @@ void AppletInterface::destroyedChanged(bool destroyed)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isAncestor) {
|
if (isAncestor) {
|
||||||
//Found? remove focus for the whole hierachy
|
//Found? remove focus for the whole hierarchy
|
||||||
candidate = focus;
|
candidate = focus;
|
||||||
|
|
||||||
while (candidate && candidate != this) {
|
while (candidate && candidate != this) {
|
||||||
@ -294,8 +294,8 @@ QString AppletInterface::toolTipMainText() const
|
|||||||
|
|
||||||
void AppletInterface::setToolTipMainText(const QString &text)
|
void AppletInterface::setToolTipMainText(const QString &text)
|
||||||
{
|
{
|
||||||
//Here we are abusing the differentce between a null and and empty string.
|
//Here we are abusing the difference between a null and an empty string.
|
||||||
//by default is null so fallsback to the name
|
//by default is null so falls back to the name
|
||||||
//the fist time it gets set, an empty non null one is set, and won't fallback anymore
|
//the fist time it gets set, an empty non null one is set, and won't fallback anymore
|
||||||
if (!m_toolTipMainText.isNull() && m_toolTipMainText == text) {
|
if (!m_toolTipMainText.isNull() && m_toolTipMainText == text) {
|
||||||
return;
|
return;
|
||||||
|
@ -519,7 +519,7 @@ void ContainmentInterface::processMimeData(QMimeData *mimeData, int x, int y, KI
|
|||||||
|
|
||||||
if (seenPlugins.isEmpty()) {
|
if (seenPlugins.isEmpty()) {
|
||||||
// do nothing
|
// do nothing
|
||||||
//directly create if only one offer only if the conteinment didn't pass an existing plugin
|
//directly create if only one offer only if the containment didn't pass an existing plugin
|
||||||
} else if (seenPlugins.count() == 1) {
|
} else if (seenPlugins.count() == 1) {
|
||||||
selectedPlugin = seenPlugins.constBegin().key();
|
selectedPlugin = seenPlugins.constBegin().key();
|
||||||
Plasma::Applet *applet = createApplet(selectedPlugin, QVariantList(), QRect(x, y, -1, -1));
|
Plasma::Applet *applet = createApplet(selectedPlugin, QVariantList(), QRect(x, y, -1, -1));
|
||||||
|
@ -16,7 +16,7 @@ GNU General Public License for more details.
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ ColumnLayout {
|
|||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.maximumWidth: mainLayout.width
|
Layout.maximumWidth: mainLayout.width
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: "Click on each coloured box to make a dialog popup. It should popup in the correct position. The popup should also move from one rectanlge to the other on hovering"
|
text: "Click on each coloured box to make a dialog popup. It should popup in the correct position. The popup should also move from one rectangle to the other on hovering"
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
|
|
||||||
#include "testengine.h"
|
#include "testengine.h"
|
||||||
|
|
||||||
#include <QtCore/QBitArray>
|
#include <QBitArray>
|
||||||
#include <QtCore/QDate>
|
#include <QDate>
|
||||||
#include <QtCore/QLocale>
|
#include <QLocale>
|
||||||
#include <QtCore/QUrl>
|
#include <QUrl>
|
||||||
#include <QBitmap>
|
#include <QBitmap>
|
||||||
#include <QBrush>
|
#include <QBrush>
|
||||||
#include <QCursor>
|
#include <QCursor>
|
||||||
@ -117,7 +117,7 @@ void TestEngine::init()
|
|||||||
setData(dsn, QStringLiteral("QPixmap"), QVariant(QPixmap(12, 34)));
|
setData(dsn, QStringLiteral("QPixmap"), QVariant(QPixmap(12, 34)));
|
||||||
// QVariant::Point
|
// QVariant::Point
|
||||||
setData(dsn, QStringLiteral("QPoint"), QVariant(QPoint(12, 34)));
|
setData(dsn, QStringLiteral("QPoint"), QVariant(QPoint(12, 34)));
|
||||||
// QVariant::PointArray (obsoloted in Qt4, see QPolygon)
|
// QVariant::PointArray (obsoleted in Qt4, see QPolygon)
|
||||||
// QVariant::PointF
|
// QVariant::PointF
|
||||||
setData(dsn, QStringLiteral("QPointF"), QVariant(QPointF(12.34, 56.78)));
|
setData(dsn, QStringLiteral("QPointF"), QVariant(QPointF(12.34, 56.78)));
|
||||||
// QVariant::Polygon
|
// QVariant::Polygon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user