summaryrefslogtreecommitdiffstats
path: root/languages/cpp/subclassingdlg.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-13 21:45:56 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-14 09:58:29 +0900
commit60598ea23e9fec7b4320985aad848c5ffee033c2 (patch)
tree169801c444ffe73c517d5b1cdc62a39efb8c7392 /languages/cpp/subclassingdlg.cpp
parentb8cc513c5e875739c6790da651f6a3f47ed8f657 (diff)
downloadtdevelop-60598ea23e9fec7b4320985aad848c5ffee033c2.tar.gz
tdevelop-60598ea23e9fec7b4320985aad848c5ffee033c2.zip
Removed Qt4 specific code and template files
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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");