Bug 78203 - Opening .ui files creates a gray empty window, and opens the dialog once.
Summary: Opening .ui files creates a gray empty window, and opens the dialog once.
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.0.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: geiseri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 13:36 UTC by Diederik van der Boor
Modified: 2004-10-07 17:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diederik van der Boor 2004-03-22 13:36:41 UTC
Version:           3.0.1 (using KDE 3.2.1, Gentoo)
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
OS:          Linux (i686) release 2.6.3-gentoo-r1

When I click on a .ui file in the project tree, kdevelop opens a gray empty editor window/tab (without any contents), and a kuiviewer-like dialog pops up. If I close the popup, an empty gray window stays visible in kdevelop. I have to close it, and re-open the file from the project tree to see the dialog again.
Comment 1 Jens Dagerbo 2004-03-22 19:51:24 UTC
It's not only "kuiviewer-like", it IS KUIViewer. :)

The problem is that KUIViewer doesn't "embed" dialogs, and that dialogs can be closed without the KUIViewer part closing. If this is a bug, it is KUIViewer's bug. 

BTW, for KDevelop use, you probably want to use Qt-Designer instead. This was unfortunately not properly fixed until KDevelop-3.0.2. With 3.0.2 and designer as the preferred handler of ".ui"-files in the KDE file association settings, clicking a .ui in KDevelop will launch Designer.
Comment 2 geiseri 2004-03-22 19:56:13 UTC
KUI Viewer just renders the widget.  If the ui file was a QDialog it will pop up unrooted.  If the widget is not a QDialog, then this is a bug, please post the UI file here and I will resolve it.
Comment 3 Diederik van der Boor 2004-03-22 22:22:37 UTC
Thanks a lot for your clarifications, and quick response.

Should I report a bug for KUIViewer, or will you attempt to address this problem in kdevelop?

I'm not certain whether it's the default setting to open .ui files with KUIViewer, but I hope I don't have to change this setting for Konqueror. I like the option to preview a .ui file quickly without waiting for qtdesigner to load.
Comment 4 Diederik van der Boor 2004-10-07 17:03:07 UTC
This problem appears to be fixed in KDevelop 3.1