Bug 547450 - qt-devel doesn't include files in ./include/QtSql/private
Summary: qt-devel doesn't include files in ./include/QtSql/private
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: qt
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-14 17:40 UTC by Marie Henri Beyle
Modified: 2009-12-14 18:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-14 17:51:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
./include/QtSql/private/cachedresult_p.h (57 bytes, text/plain)
2009-12-14 17:40 UTC, Marie Henri Beyle
no flags Details
../../../src/sql/kernel/qsqlcachedresult_p.h (3.13 KB, text/plain)
2009-12-14 17:42 UTC, Marie Henri Beyle
no flags Details

Description Marie Henri Beyle 2009-12-14 17:40:32 UTC
Created attachment 378282 [details]
 ./include/QtSql/private/cachedresult_p.h

Description of problem:

Some header files from QtSql drivers include private files that are not in the bundle qt-devel.
For example, qsqlcachedresult_p.h is referenced in qsql_sqlite.h and compiler will never be able to find it unless it is copied manually from sources. 
In development package from Nokia, these files are in ../../../src/sql/kernel/[...].h and there are header files in include/QtSql/private that point to real private headers.

I don't know if this problem is a real problem and copy the files is the only thing that I can do to resolve the dependecies. I'm sorry if this question must go in another place.

Version-Release number of selected component (if applicable):

qt-devel-4.5.3

How reproducible:

100%

Steps to Reproduce:
1.yum install qt-devel
2.
3.
  
Actual results:

/usr/include/QtSql/private/[file].h does not exist.

Expected results:

rpm-bundle that includes the dependencies.

Comment 1 Marie Henri Beyle 2009-12-14 17:42:01 UTC
Created attachment 378284 [details]
../../../src/sql/kernel/qsqlcachedresult_p.h

Comment 2 Kevin Kofler 2009-12-14 17:51:04 UTC
Applications are not supposed to include qsql_sqlite.h at all, they are expected to use the QSqlDatabase class (the public interface) instead. QSQLiteDriver is not documented at all and the documentation for the QSqlDriver base class says "This class should not be used directly. Use QSqlDatabase instead.". Applications cannot use undocumented classes.

Comment 3 Marie Henri Beyle 2009-12-14 18:55:50 UTC
Ok. Thank you. I had unnecessarily included QSQLiteDriver in one source file in addition to the QSqlDatabase class. That was the real problem. Your comment has helped me to find the problem.
Excuse me for the inconveniences.


Note You need to log in before you can comment on or make changes to this bug.