summaryrefslogtreecommitdiffstats
path: root/languages/cpp/subclassingdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/subclassingdlg.cpp')
-rw-r--r--languages/cpp/subclassingdlg.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/languages/cpp/subclassingdlg.cpp b/languages/cpp/subclassingdlg.cpp
index e64e0727..96ec6385 100644
--- a/languages/cpp/subclassingdlg.cpp
+++ b/languages/cpp/subclassingdlg.cpp
@@ -369,10 +369,7 @@ void SubclassingDlg::accept()
int qtVersion = DomUtil::readIntEntry( *m_cppSupport->project()->projectDom(), "/kdevcppsupport/qt/version", 3 );
if (m_creatingNewSubclass)
{
- if ( qtVersion == 3 )
- loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_template.h"));
- else
- loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_qt4_template.h"));
+ loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_template.h"));
buffer = FileTemplate::read(m_cppSupport, "h") + buffer;
TQFileInfo fi(m_filename + ".h");
@@ -464,10 +461,7 @@ void SubclassingDlg::accept()
if (m_creatingNewSubclass)
{
- if ( qtVersion == 3 )
- loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_template.cpp"));
- else
- loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_qt4_template.cpp"));
+ loadBuffer(buffer,::locate("data", "kdevcppsupport/subclassing/subclass_template.cpp"));
buffer = FileTemplate::read(m_cppSupport, "cpp") + buffer;
TQFileInfo fi(m_filename + ".cpp");