fix spelling
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870322
This commit is contained in:
parent
c4573eae9a
commit
81d09742bb
@ -129,7 +129,7 @@ Applet::~Applet()
|
||||
{
|
||||
if (d->extender) {
|
||||
//This would probably be nicer if it was located in extender. But in it's dtor, this won't
|
||||
//work since when that get's called, the applet's config() isn't accesible anymore. (same
|
||||
//work since when that get's called, the applet's config() isn't accessible anymore. (same
|
||||
//problem with calling saveState(). Doing this in saveState() might be a possibility, but
|
||||
//that would require every extender savestate implementation to call it's parent function,
|
||||
//which isn't very nice.
|
||||
|
@ -371,7 +371,7 @@ void Corona::addOffscreenWidget(QGraphicsWidget *widget)
|
||||
offscreenWidget->setLayout(d->offscreenLayout);
|
||||
}
|
||||
|
||||
//check if the layout allready contains this widget.
|
||||
//check if the layout already contains this widget.
|
||||
//XXX: duplicated from removeOffscreenWidget()
|
||||
for (int i = 0; i < d->offscreenLayout->count(); i++) {
|
||||
QGraphicsWidget *foundWidget = dynamic_cast<QGraphicsWidget*>(d->offscreenLayout->itemAt(i));
|
||||
|
@ -202,7 +202,7 @@ void Extender::itemHoverMoveEvent(ExtenderItem *item, const QPointF &pos)
|
||||
return;
|
||||
}
|
||||
|
||||
//Make sure we remove any spacer that might allready be in the layout.
|
||||
//Make sure we remove any spacer that might already be in the layout.
|
||||
itemHoverLeaveEvent(item);
|
||||
|
||||
d->currentSpacerIndex = insertIndex;
|
||||
|
@ -92,7 +92,7 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget
|
||||
QList<ExtenderItem*> detachedItems() const;
|
||||
|
||||
/**
|
||||
* This function can be used for easily determining if a certain item is allready displayed
|
||||
* This function can be used for easily determining if a certain item is already displayed
|
||||
* in a extender item somewhere, so your applet doesn't duplicate this item. Say the applet
|
||||
* displays 'jobs', from an engine which add's a source for every job. In sourceAdded you
|
||||
* could do something like:
|
||||
@ -104,7 +104,7 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Get's called after an item has been added to this extender. The bookkeeping has allready
|
||||
* Get's called after an item has been added to this extender. The bookkeeping has already
|
||||
* been done when this function get's called. The only thing left to do is put it somewhere
|
||||
* appropriate. The default implementation adds the extenderItem to the appropriate place in
|
||||
* a QGraphicsLinearLayout.
|
||||
@ -115,7 +115,7 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget
|
||||
|
||||
/**
|
||||
* Get's called after an item has been removed from this extender. All bookkeeping has
|
||||
* allready been done when this function get's called.
|
||||
* already been done when this function get's called.
|
||||
* @param item The item that has just been removed.
|
||||
*/
|
||||
virtual void itemRemovedEvent(ExtenderItem *item);
|
||||
@ -131,7 +131,7 @@ class PLASMA_EXPORT Extender : public QGraphicsWidget
|
||||
* to give some visual feedback about what will happen when the mouse button is released at
|
||||
* that position. The default implementation shows a spacer at the appropriate location in
|
||||
* the layout.
|
||||
* @param item The item that's hovering over this extender. Most usefull for obtaining the
|
||||
* @param item The item that's hovering over this extender. Most useful for obtaining the
|
||||
* size of the spacer.
|
||||
* @param pos The location the item is hovering.
|
||||
*/
|
||||
|
@ -315,7 +315,7 @@ ExtenderItem::ExtenderItem(Extender *hostExtender, uint extenderItemId)
|
||||
d->sourceAppletId = hostExtender->d->applet->id();
|
||||
d->sourceApplet = hostExtender->d->applet;
|
||||
} else {
|
||||
//The item allready exists.
|
||||
//The item already exists.
|
||||
d->name = dg.readEntry("extenderItemName", "");
|
||||
d->sourceAppletId = dg.readEntry("sourceAppletId", 0);
|
||||
//Set the sourceapplet.
|
||||
@ -805,7 +805,7 @@ void ExtenderItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
//let's insert spacers in applets we're hovering over for some usefull visual feedback.
|
||||
//let's insert spacers in applets we're hovering over for some useful visual feedback.
|
||||
//check which view we're hovering over and use that information to get the mouse
|
||||
//position in scene coordinates (event->scenePos won't work, since it doesn't take in
|
||||
//consideration that you're leaving the current view).
|
||||
@ -888,7 +888,7 @@ void ExtenderItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
d->toplevel = 0;
|
||||
}
|
||||
|
||||
//let's insert spacers in applets we're hovering over for some usefull visual feedback.
|
||||
//let's insert spacers in applets we're hovering over for some useful visual feedback.
|
||||
//check which view we're hovering over and use that information to get the mouse
|
||||
//position in scene coordinates (event->scenePos won't work, since it doesn't take in
|
||||
//consideration that you're leaving the current view).
|
||||
|
@ -156,7 +156,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
||||
|
||||
if (dialog) {
|
||||
if (dialog->layout() && qWidget) {
|
||||
//we dont want to delete Widget inside the dialog layout
|
||||
//we don't want to delete Widget inside the dialog layout
|
||||
dialog->layout()->removeWidget(qWidget);
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ class PopupAppletPrivate;
|
||||
* widget in a popup when clicked.
|
||||
*
|
||||
* If you use this class as a base class for your extender using applet, the extender will
|
||||
* automaticaly be used for the popup; reimplementing graphicsWidget() is unecessary in this case.
|
||||
* automatically be used for the popup; reimplementing graphicsWidget() is unnecessary in this case.
|
||||
*/
|
||||
|
||||
class PLASMA_EXPORT PopupApplet : public Plasma::Applet
|
||||
|
@ -186,7 +186,7 @@ QRectF Plasma::AppletHandle::boundingRect() const
|
||||
|
||||
QPainterPath AppletHandle::shape() const
|
||||
{
|
||||
//when the containment changes the applet is resetted to 0
|
||||
//when the containment changes the applet is reset to 0
|
||||
if (m_applet) {
|
||||
QPainterPath path = PaintUtils::roundedRectangle(m_decorationRect, 10);
|
||||
return path.united(m_applet->mapToParent(m_applet->shape()));
|
||||
|
@ -31,7 +31,7 @@ namespace Plasma {
|
||||
*
|
||||
* A widget which reserves area for window preview and sets hints on the toplevel
|
||||
* tooltip widget that tells KWin to render the preview in this area. This depends
|
||||
* on KWin's TaskbarThumbnail compositing effect (which is automaticaly detected).
|
||||
* on KWin's TaskbarThumbnail compositing effect (which is automatically detected).
|
||||
*/
|
||||
class WindowPreview : public QWidget
|
||||
{
|
||||
|
@ -195,7 +195,7 @@ public:
|
||||
bool widgetHasToolTip(QGraphicsWidget *widget) const;
|
||||
|
||||
/**
|
||||
* Enable/or disable a Tooltip, this method is usefull is we want
|
||||
* Enable/or disable a Tooltip, this method is useful is we want
|
||||
* to have a tooltip activated on demand.
|
||||
* @param widget the widget to change tooltip behaviour
|
||||
* @param enable if we need the tooltip or not
|
||||
|
2
view.h
2
view.h
@ -134,7 +134,7 @@ public:
|
||||
/**
|
||||
* Set whether or not the view should adjust its size when the associated
|
||||
* containment does.
|
||||
* @arg trackChanges true to syncronize the view's size with the containment's
|
||||
* @arg trackChanges true to synchronize the view's size with the containment's
|
||||
* (this is the default behaviour), false to ignore containment size changes
|
||||
*/
|
||||
void setTrackContainmentChanges(bool trackChanges);
|
||||
|
Loading…
Reference in New Issue
Block a user