Bug 148131 - QMake manager: ui.h file not shown from .ui context menu
Summary: QMake manager: ui.h file not shown from .ui context menu
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.4.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-23 09:39 UTC by Hans-Peter Diettrich
Modified: 2007-07-24 20:29 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 Hans-Peter Diettrich 2007-07-23 09:39:48 UTC
Version:           3.4.1 (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
OS:                Linux

Open QMake manager, right click on an .ui file in FORMS.
Select "Open ui.h file" - nothing happens.

The implementation may simply be missing, or the file is not found due to an wrong name (*.ui.h instead of *.h?).

See also: bug #148130, addressing autogenerated files.

DoDi
Comment 1 Andreas Pakulat 2007-07-23 10:39:33 UTC
SVN commit 691261 by apaku:

Do not include .ui in the generated header file name, Qt3 uses foo.h.
BUG:148131


 M  +3 -2      trollprojectwidget.cpp  


--- branches/KDE/3.5/kdevelop/buildtools/qmake/trollprojectwidget.cpp #691260:691261
@@ -504,7 +504,7 @@
     {
         QListViewItem* i = details->firstChild();
         while( i )
-        {
+	{
             QListViewItem* old = i;
             i = i->nextSibling();
             details->takeItem(old);
@@ -1771,8 +1771,9 @@
         }
         else if ( r == idViewUIH )
         {
+            kdDebug(9024) << "Opening:" << fitem->text(0) << ";" << fitem->text(0).replace(".ui","") << endl;
             m_part->partController() ->editDocument( KURL( m_shownSubproject->scope->projectDir() + QString( QChar( QDir::separator() ) ) +
-                    QString( fitem->text( 0 ) + ".h" ) ) );
+                    QString( fitem->text( 0 ).replace(".ui","") + ".h" ) ) );
 
         }
         else if ( r == idSubclassWidget )
Comment 2 Hans-Peter Diettrich 2007-07-23 16:02:49 UTC
Quoting Andreas Pakulat:
>>
Also note: ui.h is not Qt3, uic from Qt3 generates .h+.cpp file, while qt4 uic generates ui.h.
<<

A distinction between Qt3 and Qt4 seems to be required.
Comment 3 Andreas Pakulat 2007-07-24 20:29:38 UTC
There already are Qt-specific settings, in particular which qmake and designer to use. See Project Options -> C++ Support -> Qt.