Bug 70118 - The width of the window is going more and more
Summary: The width of the window is going more and more
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: appwizard (show other bugs)
Version: 1.0.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 13:37 UTC by deuce
Modified: 2009-01-22 23:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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());