[PATCH] fixing php html view window title when not in IDEAI mode

Sebastian Gutweiler sebastian at gutweiler.net
Tue Aug 12 14:27:04 UTC 2003


Hi,

when gideon was not in IDEAI mode, the HTML view window in the PHP mode
had no title. In the not-IDEAI-mode function embedPartView the third
argument sets the title, the PHP support part function called the
function without a third argument. This patch should fix the problem. 

Sebastian
-------------- next part --------------
diff -u --recursive --new-file kdevelop_orig/parts/phpsupport/phpsupportpart.cpp kdevelop_change/parts/phpsupport/phpsupportpart.cpp
--- kdevelop_orig/parts/phpsupport/phpsupportpart.cpp	Tue Aug 12 14:00:30 2003
+++ kdevelop_change/parts/phpsupport/phpsupportpart.cpp	Tue Aug 12 14:05:30 2003
@@ -95,7 +95,7 @@
 	  this, SLOT(slotPHPExeExited(KProcess*)));
 
   m_htmlView = new PHPHTMLView();
-  mainWindow()->embedPartView(m_htmlView->view(), i18n("PHP"));
+  mainWindow()->embedPartView(m_htmlView->view(), i18n("PHP"), i18n("PHP"));
   connect(m_htmlView,  SIGNAL(started(KIO::Job*)),
 	  this, SLOT(slotWebJobStarted(KIO::Job*)));
 
@@ -282,7 +282,7 @@
   QString file;
   if(m_htmlView==0){
     m_htmlView = new PHPHTMLView();
-    mainWindow()->embedPartView(m_htmlView->view(), i18n("PHP"));
+    mainWindow()->embedPartView(m_htmlView->view(), i18n("PHP"), i18n("PHP"));
   }
   m_htmlView->show();
   m_htmlView->begin();


More information about the KDevelop-devel mailing list