Bug 70118

Summary: The width of the window is going more and more
Product: [Developer tools] kdevplatform Reporter: deuce
Component: appwizardAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description deuce 2003-12-11 13:37:15 UTC
Version:           unknown (using KDE 3.1.4)
Installed from:    compiled sources
Compiler:          gcc version 3.2.3
OS:          Linux (i686) release 2.4.23-ck1

When you open Application Wizard and enter a project name the width of the window grows. If the project name is too long it doesn't scroll in the textbox, insted of that the width of the window grows and the right side of the window moves right and right!!!
Comment 1 Amilcar do Carmo Lucas 2003-12-11 17:50:08 UTC
What is your KDevelop version?
Comment 2 Jens Dagerbo 2004-04-22 22:08:42 UTC
CVS commit by dagerbo: 

Not pretty, but it solves it.

CCMAIL: 70118-done@bugs.kde.org


  M +3 -2      appwizarddlg.cpp   1.68


--- kdevelop/parts/appwizard/appwizarddlg.cpp  #1.67:1.68
@@ -47,5 +47,5 @@
 #include <kfile.h>
 #include <kapplication.h>
-
+#include <kstringhandler.h> 
 #include <ktrader.h>
 #include <kparts/componentfactory.h>
@@ -596,5 +596,6 @@ void AppWizardDialog::projectLocationCha
   // Jakob Simon-Gaarde: Got tired of the anoying bug with the appname/location confussion.
   // This version insures WYSIWYG and checks pathvalidity
-  finalLoc_label->setText(dest_edit->url() + (dest_edit->url().right(1)=="/" ? "":"/") + appname_edit->text().lower());
+  QString temp( dest_edit->url() + (dest_edit->url().right(1)=="/" ? "":"/") + appname_edit->text().lower() );
+  finalLoc_label->setText( KStringHandler::csqueeze( temp, 60 ) );
   QDir qd(dest_edit->url());
   QFileInfo fi(dest_edit->url() + "/" + appname_edit->text().lower());