Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #10 (reopened defect)

Opened 15 years ago

Last modified 15 years ago

duic includes files with .h suffix

Reported by: mwarning Assigned to: somebody
Priority: major Version:
Keywords: Cc:

Description

When .ui files include xml snippets like these, it will result to "import searchlineedit.h;".

 <customwidgets>
  <customwidget>
   <class>SearchLineEdit</class>
   <extends>QLineEdit</extends>
   <header>searchlineedit.h</header>
  </customwidget>

The question is if the designer appends the .h suffix every time a .ui file is created. If that the case, it has to be stripped by duic.

Attachments

cookies.ui (2.5 kB) - added by mandel on 05/27/09 21:40:56.

Change History

05/27/09 21:40:56 changed by mandel

  • attachment cookies.ui added.

05/27/09 21:59:12 changed by mandel

The designer adds the .h to the .ui when the form input doesn't have a suffix. Since D imports don't allow suffixes, they should be stripped by duic.

05/27/09 22:17:10 changed by mandel

ok, the last statement was wrong.

To summarize the solution from IRC:

Let's strip the suffix (.d, .h, ..) from the header value and replace all directory separators with a dot. This will create a correct and error resistant import path.

06/07/09 19:12:24 changed by Anonymous

  • status changed from new to closed.
  • resolution set to invalid.

06/07/09 23:21:22 changed by eldar

  • status changed from closed to reopened.
  • resolution deleted.