View Single Post
Old 12-14-2011, 10:24 AM   #30
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Quote:
Originally Posted by Ahmad Samir View Post
This seems to work (nicked from kate/kwrite source code):
Code:
$ diff -u src/Sigil/Form_Files/FindReplace.ui src/Sigil/Form_Files/FindReplace.ui.new 
--- src/Sigil/Form_Files/FindReplace.ui 2011-09-20 13:27:49.155652695 +0200
+++ src/Sigil/Form_Files/FindReplace.ui.new     2011-12-13 19:47:07.884815448 +0200
@@ -58,6 +58,9 @@
           <property name="editable">
            <bool>true</bool>
           </property>
+          <property name="sizeAdjustPolicy">
+           <enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
+          </property>
          </widget>
         </item>
         <item row="0" column="2">
@@ -102,6 +105,9 @@
           <property name="editable">
            <bool>true</bool>
           </property>
+          <property name="sizeAdjustPolicy">
+           <enum>QComboBox::AdjustToMinimumContentsLengthWithIcon</enum>
+          </property>
          </widget>
         </item>
         <item row="1" column="2">

Thanks, this seems to work perfectly. Downloaded and built the source (very easy to do), made the changes and now the windows are the right size and can be resized correctly. The only odd thing still left is that when selecting the down arrow to list the Find history some of the entries are too wide for the screen but this isn't a real issue so far.

Last edited by meme; 12-14-2011 at 10:44 AM.
meme is offline