[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/libs/plasma/widgets
From: Alexis Ménard <darktears31 () gmail ! com>
Date: 2008-04-14 14:18:19
Message-ID: 1208182699.863852.10691.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 796903 by menard:
API clean : bye bye cache mode wich is managed by qt
M +1 -17 widget.cpp
M +0 -27 widget.h
--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/widget.cpp #796902:796903
@@ -125,8 +125,7 @@
{
setFlag(QGraphicsItem::ItemClipsToShape, true);
setFlag(QGraphicsItem::ItemClipsChildrenToShape, true);
- setCacheMode(DeviceCoordinateCache);
-
+
Widget *w = dynamic_cast<Widget *>(parent);
if (w) {
w->addChild(this);
@@ -141,21 +140,6 @@
delete d;
}
-void Widget::setCachePaintMode(CachePaintMode mode, const QSize &size)
-{
- setCacheMode(CacheMode(mode), size);
-}
-
-Widget::CachePaintMode Widget::cachePaintMode() const
-{
- return CachePaintMode(cacheMode());
-}
-
-void Widget::update(const QRectF &rect)
-{
- QGraphicsWidget::update(rect);
-}
-
Qt::Orientations Widget::expandingDirections() const
{
return Qt::Horizontal | Qt::Vertical;
--- trunk/KDE/kdebase/workspace/libs/plasma/widgets/widget.h #796902:796903
@@ -69,13 +69,6 @@
Q_PROPERTY( QRectF geometry READ geometry WRITE setGeometry )
Q_PROPERTY( QSizeF size READ size WRITE resize )
public:
- enum CachePaintMode {
- NoCacheMode,
- ItemCoordinateCacheMode,
- DeviceCoordinateCacheMode
- };
-
-
/**
* Creates a new Plasma::Widget.
* @param parent the QGraphicsItem this icon is parented to.
@@ -151,26 +144,6 @@
*/
Q_INVOKABLE void addChild(Widget *widget);
- /**
- * Sets the widget's cache paint mode and cache size.
- * @param mode the new cache paint mode
- * @param size the new cache size, only applies to ItemCoordinateCacheMode
- */
- void setCachePaintMode(CachePaintMode mode, const QSize &size = QSize());
-
- /**
- * The current cache paint mode.
- */
- CachePaintMode cachePaintMode() const;
-
- /**
- * Invalidates the widget's cache paint mode for a given item rectangle.
- * @param rect the optional invalidated rectangle; if null, defaults to boundingRect().
- */
- void update(const QRectF &rect = QRectF());
- inline void update(qreal _x, qreal _y, qreal w, qreal h)
- { update(QRectF(_x, _y, w, h)); }
-
virtual QGraphicsItem* graphicsItem();
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic