Change-Id: I91831390e9e0d97ab28f0e34ca0573fb2c84e954
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
diff --git a/qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm b/qtbase/src/plugins/platforms/cocoa/qcocoacursor.mm
index 06e957c..922809f 100644
a
|
b
|
void QCocoaCursor::setPos(const QPoint &position) |
73 | 73 | pos.x = position.x(); |
74 | 74 | pos.y = position.y(); |
75 | 75 | |
76 | | CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0); |
| 76 | CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, kCGMouseButtonLeft); |
77 | 77 | CGEventPost(kCGHIDEventTap, e); |
78 | 78 | CFRelease(e); |
79 | 79 | } |
Change-Id: I0c838dac872ca2c00bf57c95df17d24edb48007b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
diff --git a/qtbase/src/tools/qlalr/lalr.cpp b/qtbase/src/tools/qlalr/lalr.cpp
index 3d0d5de..3d780cd 100644
a
|
b
|
void Grammar::buildExtendedGrammar () |
238 | 238 | non_terminals.insert (accept_symbol); |
239 | 239 | } |
240 | 240 | |
241 | | struct _Nullable: public std::unary_function<Name, bool> |
| 241 | struct Nullable: public std::unary_function<Name, bool> |
242 | 242 | { |
243 | 243 | Automaton *_M_automaton; |
244 | 244 | |
245 | | _Nullable (Automaton *aut): |
| 245 | Nullable (Automaton *aut): |
246 | 246 | _M_automaton (aut) {} |
247 | 247 | |
248 | 248 | bool operator () (Name name) const |
… |
… |
void Automaton::buildNullables () |
300 | 300 | |
301 | 301 | for (RulePointer rule = _M_grammar->rules.begin (); rule != _M_grammar->rules.end (); ++rule) |
302 | 302 | { |
303 | | NameList::iterator nn = std::find_if (rule->rhs.begin (), rule->rhs.end (), std::not1 (_Nullable (this))); |
| 303 | NameList::iterator nn = std::find_if (rule->rhs.begin (), rule->rhs.end (), std::not1 (Nullable (this))); |
304 | 304 | |
305 | 305 | if (nn == rule->rhs.end ()) |
306 | 306 | changed |= nullables.insert (rule->lhs).second; |
… |
… |
void Automaton::buildIncludesDigraph () |
635 | 635 | if (! _M_grammar->isNonTerminal (*A)) |
636 | 636 | continue; |
637 | 637 | |
638 | | NameList::iterator first_not_nullable = std::find_if (dot, rule->rhs.end (), std::not1 (_Nullable (this))); |
| 638 | NameList::iterator first_not_nullable = std::find_if (dot, rule->rhs.end (), std::not1 (Nullable (this))); |
639 | 639 | if (first_not_nullable != rule->rhs.end ()) |
640 | 640 | continue; |
641 | 641 | |