Bug 378499 - Project template for Qt4 qmake failing
Summary: Project template for Qt4 qmake failing
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Application templates (show other bugs)
Version: 5.1.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-06 11:37 UTC by Massimo Burcheri
Modified: 2017-04-06 12:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Massimo Burcheri 2017-04-06 11:37:11 UTC
Creating a new project like this:

Project-> New from template,  Qt, Graphical, QMake based, Qt4 GUI Application, Appname: Foo, Location: /home/mo/workspace

Leaving all defaults:   Configure a build directory: Qmake: /usr/bin/qmake, Build dir: /home/mo/workspace/Foo/build
I get a new file buffer foo.cpp but it cannot be saved as writing to /home/mo/workspace/Foo/src/foo.cpp fails.
There is no ./src directory in the project directory.
On project directory there is only /home/mo/workspace/Foo/main.cpp mainwindow.ui Foo.kdev4 Foo.pro

Creating a subdir ./src makes it possible to save the file. However foo.cpp still does not belong to the project in the Projects sidebar.
Comment 1 Friedrich W. H. Kossebau 2017-04-06 12:14:07 UTC
Git commit ec0f5f98dbe0b370380bc6fb16b18afed12ea675 by Friedrich W. H. Kossebau.
Committed on 06/04/2017 at 12:13.
Pushed by kossebau into branch '5.1'.

Fix ShowFilesAfterGeneration to match generated files

Fixup for 4ef2536e89b966694c7dee7ef5a242ce31365771

M  +1    -1    app_templates/cpp/CMake/cmake_qt4core/cmake_qt4core.kdevtemplate
M  +1    -1    app_templates/cpp/CMake/cmake_qt4core_qtest/cmake_qt4core_qtest.kdevtemplate
M  +1    -1    app_templates/cpp/CMake/cmake_qt4gui/cmake_qt4gui.kdevtemplate
M  +1    -1    app_templates/cpp/QMake/qmake_qt4guiapp/qmake_qt4guiapp.kdevtemplate

https://commits.kde.org/kdevelop/ec0f5f98dbe0b370380bc6fb16b18afed12ea675