[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/kedit
From:       Benjamin Meyer <benjamin () csh ! rit ! edu>
Date:       2004-10-09 6:35:42
Message-ID: 20041009063542.63B1C991A () office ! kde ! org
[Download RAW message or body]

CVS commit by bmeyer: 

Removing hardcoding of initial size.
Don't know translation, font, toolbar, icons, or anything else to properly
determine a good initial size.


  M +4 -3      kedit.cpp   1.204


--- kdeutils/kedit/kedit.cpp  #1.203:1.204
@@ -79,6 +79,4 @@ TopLevel::TopLevel (QWidget *, const cha
   connect(kapp,SIGNAL(kdisplayPaletteChanged()),this,SLOT(set_colors()));
 
-  resize(550,400); // Default size
-
   setupStatusBar();
   setupActions();
@@ -88,4 +86,7 @@ TopLevel::TopLevel (QWidget *, const cha
   setupEditWidget();
 
+  resize( QSize(550, 400).expandedTo(minimumSizeHint()));
+  // Show before setupGUI so that adjust() wont be called.
+  show();
   setupGUI();
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic