Closed Bug 194140 Opened 23 years ago Closed 23 years ago

[QT] Menu hold back events

Categories

(Core Graveyard :: Ports: Qt, defect)

defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: opi, Assigned: opi)

References

Details

Attachments

(2 files, 1 obsolete file)

QTMenu is Modal, but shouldn't.
Attached patch widget/src/qt/nsQWidget.cpp (obsolete) — Splinter Review
Comment on attachment 114995 [details] [diff] [review] widget/src/qt/nsQWidget.cpp Marking this review- because you should not just comment out a line in the source code without explaining why it is still there. Either add a comment why it's there, or remove the line and the case: label altogether. That said - why should popup windows not have the popup window type?
Attachment #114995 - Flags: review-
Excuse ... the line can be removed, cause The QT PopUp flag makes the widget modal but that's not what we want. Will make a new patch at home.
Status: NEW → ASSIGNED
Attachment #114995 - Attachment is obsolete: true
case eWindowType_popup: - w |= Qt::WType_Popup; break; Hm, why do you need to keep the empty case label? Is there a default: label that you don't want to happen?
We have no default ... so I case it to prevent a build warning. We can also remove this and the 2 lines down and add for this a default: If it's better, I'll do this.
ok, the pair works nicely. r=me. from build warnings it isn't uncommon for the qt port not to have default cases, i could go either way.
On QT_REBIRTH_20030222_BRANCH: Checking in nsWindow.cpp; /cvsroot/mozilla/widget/src/qt/Attic/nsWindow.cpp,v <-- nsWindow.cpp new revision: 1.15.10.1; previous revision: 1.15 done Checking in nsQWidget.cpp; /cvsroot/mozilla/widget/src/qt/Attic/nsQWidget.cpp,v <-- nsQWidget.cpp new revision: 1.7.10.1; previous revision: 1.7 done I checked the patches in for opi@gmx.at, fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
well, menus work now and look fine, so I guess I can verify this fix. (latest cvs branch build, Qt 3.1.1, debian unstable)
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: