| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
... and not the screenRect
|
|\
| |
| |
| |
| | |
Conflicts:
src/gui/graphicsview/qgraphicsitem_p.h
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Keep track of whether the depth clip has actually changed between
states, so that when QPainter::restore() is called we don't call the
potentially expensive updateDepthClip() function when not needed.
Task-number: 254658
Reviewed-by: Trond
|
| |
| |
| |
| |
| |
| |
| |
| | |
When setState() is called right after createState() it means that none
of the OpenGL state needs changing, so we can simply return.
Task-number: 254658
Reviewed-by: Trond
|
| |
| |
| |
| |
| |
| |
| |
| | |
An item without menu could stay highlighted even when the mouse left
the menu bar.
Task-number: 256322
Reviewed-by: alexis
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The QtSVG module failed to link because it includes qgraphicsitem_p.h,
which had an inlined function (updateHelper) that called an undeclared
function (QGraphicViewPrivate::update(Region|Rect))...Resulting in
unresolved symbols.
Reviewed-by: MariusSO
|
| |
| |
| |
| |
| |
| |
| |
| | |
The QStringBuilder class documentation is marked \internal.
A section has been added to the documentation for QString
that explains how to use the reimplemented '%' operator of
QStringBuilder to obtain more efficient string concatenation
operations.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the widget under mouse is hidden, Qt can generate a synthetic mouse move
event which gets delivered to the already hidden widget. This can then result
in the wrong item being selected.
Workaround: in QListView, ignore mouse move events when the widget is hidden.
Reviewed-by: Denis
|
| |
| |
| |
| |
| | |
I changed the logic in e920c83084b48db7fe1925c7b98e34794eec6d55 and this
negation incidentally snuck in.
|
| |\ |
|
| | | |
|
| |/
| |
| |
| | |
Reviewed-by: Trust Me
|
| |
| |
| |
| |
| |
| | |
used to only remove one item in Qt3, while it removes all occurrences of the item in Qt4 (remove==removeAll). To catch it I commented out remove(T) in my qlist.h, which caught this.
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Make sure we always set w, h and d.
See fa8030a935acaacee570eee320e7510a4cfdc853
Reviewed-by: TrustMe
|
| |
| |
| |
| | |
We save three function calls by calling item->paint() directly.
|
| |
| |
| |
| | |
Avoid QTransform copy in common case.
|
| |
| |
| |
| | |
Don't calculate dirty scene transforms for invisible items.
|
| |
| |
| |
| |
| |
| | |
Broken after: 85f811b849f3b0e0b79e0f1b7bf41512d7f53414
QPainter::worldTransform returns a const reference(!) so we have to make
a copy.
|
| |
| |
| |
| |
| |
| |
| | |
The view is usually untransformed, and in that case there's no need to
call QGraphicsView::viewportTransform() and QPainter::setWorldTransform().
Reviewed-by: Andreas
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The accelerate scrolling work-around is fixed by:
8ebe882b077fffedc3ff80fb80d2e181d5e56ab8
The other case was trying to avoid doing expensive QRegion calculations
when everything must be repainted anyways. However, it was not entirely
correct to assume all paintEvents are triggered by GV itself. Anyways,
we don't need it anymore :-)
Reviewed-by: Andreas
|
| |
| |
| |
| |
| |
| |
| | |
Renamed some classes and member variables.
Their names were causing confusion before because.
Reviewed-by: Peter Hartmann
|
| |
| |
| |
| | |
Explicit casts make aCC happy.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Rewrote the usage of XCheckTypedWindowEvent to now use a XCheckIfEvent
based scanner.
Using XCheckTypedWindowEvent caused us to sometimes hop over relevant events
while doing compression. So we could end up merging a tablet move event
with another tablet move event even while there was a mouse-release event
between them.
This rewrite makes sure we stop merging when needed.
Task: 249606
Reviewed-by: Bradley T. Hughes
|
| |
| |
| |
| |
| | |
Child items must ignore visible/opacity if parent does.
Broke after: c9ab7a8b8504101c06456b706a84e0eb0693c77e
|
| |
| |
| |
| | |
I mixed this up several times before, so here is the comment for it.
|
| |
| |
| |
| | |
Change doc that refered to functions that got renamed
|
| |
| |
| |
| |
| |
| |
| |
| | |
Don't process invisible items or items with no contents. I've also added
cut-offs to QGraphicsViewPrivate::update(Region|Rect) to make sure
update areas outside the viewport are discarded immediately.
Reviewed-by: lars
|
| |
| |
| |
| | |
Task-number: 256184
|
| |
| |
| |
| |
| |
| |
| | |
function
Merge-request: 554
Reviewed-by: Kent Hansen <khansen@trolltech.com>
|
| | |
|
| |
| |
| |
| |
| |
| | |
If the engine was deleted, the agent will be 0, but we still
want to fall through rather than return immediately, so that
the other variables are reset correctly.
|
| | |
|
| | |
|
| |
| |
| |
| | |
The debugger is completely abstracted from QScriptEngine, whee
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
gger is suspended or not
Merge-request: 555
Reviewed-by: Kent Hansen <khansen@trolltech.com>
|
| | |
|
| |
| |
| |
| |
| | |
added a new example to show how to enable touch for an existing widget (QDial in this case), and that
the mouse event emulation of QWidget does the Right Thing (tm)
|
| |
| |
| |
| |
| |
| |
| |
| | |
We now send both types of events, i.e. accepting TouchBegin doesn't block mouse events anymore. We
are also introducing the idea of a "primary" touch point, which is the one that the system is also
generating mouse events for.
This lets us reuse existing mouse event code while still being able to add multi-touch support.
|
|\ \
| |/
| |
| |
| | |
Conflicts:
src/gui/graphicsview/qgraphicsscene_p.h
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The problem is that it was relying on button->isVisible whereas
it should rely on isHidden. isVisible returns false initially when the
whole widget is not yet shown.
I also added an autotest for it.
Task-number: 256331
|
| | |
| | |
| | |
| | |
| | |
| | | |
widgets.
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
|
| |/
| |
| |
| |
| |
| | |
stacked widgets.
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change moves the w, h, d variables to QPixmapData and introduces
is_null to keep track of nullness. This is possible only because
QPixmapData is internal API; otherwise we'd have to be smarter.
The optimization makes the QPixmap::width() function take 7 instructions,
down from 34 before. For the calculator demo in the declarative ui branch
this reduces a block of 750000 instructions (out of 30000000) to around
100000-150000 instructions.
Tested on Windows, Linux, Mac. Raster, X11 and OpenGL paint engines. Have
not tested the DirectFB engine.
Reviewed-by: Trond
|
| |
| |
| |
| |
| |
| | |
If the machine's initial state is nested, a set of states will
be entered, and we need to do the property assignments of all
of them.
|
| |
| |
| |
| |
| |
| |
| | |
This stops QWebPage from loading the OpenSSL libs,
certificates etc. when they are not needed for the non-HTTPS case.
Reviewed-by: Simon Hausmann
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
It's been requested by several users. Since we have
QAbstractState::{entered,exited}() signals, we should have this one
as well.
|