On Fri, Nov 19, 2010 at 10:12:34AM +0100, Stephan Witt wrote:
> Am 19.11.2010 um 09:15 schrieb Stephan Witt:
> 
> > Am 19.11.2010 um 08:54 schrieb Enrico Forestieri:
> > 
> >> On Fri, Nov 19, 2010 at 07:36:54AM +0100, Stephan Witt wrote:
> >>> I've commit a working layout for Mac and Linux already.
> >> 
> >> Sorry Stephan, but I cannot confirm that your fix works. I tried Windows,
> >> Linux Debian, and Solaris. In all cases it is still broken.
> > 
> > That's bad. Then I'll try the ui file Uwe sent.
> 
> ...and that's the result: it doesn't work on Mac.
> The svn revision 36363 and the new one Uwe sent have the same behavior.
> I'd say the layout management of Qt on Mac is "sub-optimal" here. :(
> 
> Then we should revert to revision 36363 for now or use the version Uwe sent.
> I'll commit the revert to revision 36363. 
> Uwe, you may commit your newest version if you like it more.
> 
> I'll try to work with nested layouts later - perhaps that works.

Stephan, does the attached layout file work on Mac?

-- 
Enrico
<ui version="4.0">
 <class>SpellcheckerUi</class>
 <widget class="QDockWidget" name="SpellcheckerUi">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>264</width>
    <height>388</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>DockWidget</string>
  </property>
  <widget class="QWidget" name="dockWidgetContents">
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <layout class="QHBoxLayout" name="horizontalLayout">
      <item>
       <widget class="QLabel" name="languageLA">
        <property name="text">
         <string>&amp;Language:</string>
        </property>
        <property name="buddy">
         <cstring>languageCO</cstring>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QComboBox" name="languageCO">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="toolTip">
         <string>The checked language. Switching this alters the language of 
the checked word.</string>
        </property>
       </widget>
      </item>
     </layout>
    </item>
    <item row="1" column="0" colspan="2">
     <widget class="Line" name="line">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
     </widget>
    </item>
    <item row="2" column="0">
     <widget class="QLabel" name="TextLabel3">
      <property name="text">
       <string>Unknown word:</string>
      </property>
      <property name="buddy">
       <cstring>wordED</cstring>
      </property>
     </widget>
    </item>
    <item row="3" column="0">
     <widget class="QLineEdit" name="wordED">
      <property name="toolTip">
       <string>Current word</string>
      </property>
     </widget>
    </item>
    <item row="3" column="1">
     <widget class="QPushButton" name="findNextPB">
      <property name="sizePolicy">
       <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
      <property name="toolTip">
       <string>Replace word with current choice</string>
      </property>
      <property name="text">
       <string>&amp;Find Next</string>
      </property>
     </widget>
    </item>
    <item row="4" column="0">
     <widget class="QLabel" name="TextLabel1">
      <property name="text">
       <string>Re&amp;placement:</string>
      </property>
      <property name="buddy">
       <cstring>replaceCO</cstring>
      </property>
     </widget>
    </item>
    <item row="5" column="0">
     <widget class="QComboBox" name="replaceCO">
      <property name="focusPolicy">
       <enum>Qt::StrongFocus</enum>
      </property>
      <property name="toolTip">
       <string>Replace with selected word</string>
      </property>
      <property name="editable">
       <bool>true</bool>
      </property>
      <property name="insertPolicy">
       <enum>QComboBox::InsertAtTop</enum>
      </property>
      <property name="autoCompletion">
       <bool>true</bool>
      </property>
      <property name="duplicatesEnabled">
       <bool>false</bool>
      </property>
     </widget>
    </item>
    <item row="5" column="1" rowspan="3">
     <layout class="QVBoxLayout" name="verticalLayout">
      <item>
       <widget class="QPushButton" name="replacePB">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="toolTip">
         <string>Replace word with current choice</string>
        </property>
        <property name="text">
         <string>&amp;Replace</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="replaceAllPB">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="toolTip">
         <string>Replace word with current choice</string>
        </property>
        <property name="text">
         <string>Replace &amp;All</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="ignorePB">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="toolTip">
         <string>Ignore this word</string>
        </property>
        <property name="text">
         <string>&amp;Ignore</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="ignoreAllPB">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="toolTip">
         <string>Ignore this word throughout this session</string>
        </property>
        <property name="text">
         <string>I&amp;gnore All</string>
        </property>
       </widget>
      </item>
      <item>
       <widget class="QPushButton" name="addPB">
        <property name="sizePolicy">
         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
        </property>
        <property name="toolTip">
         <string>Add the word to your personal dictionary</string>
        </property>
        <property name="text">
         <string>A&amp;dd</string>
        </property>
       </widget>
      </item>
      <item>
       <spacer>
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
        <property name="sizeType">
         <enum>QSizePolicy::Expanding</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>72</width>
          <height>67</height>
         </size>
        </property>
       </spacer>
      </item>
     </layout>
    </item>
    <item row="6" column="0">
     <widget class="QLabel" name="TextLabel2">
      <property name="text">
       <string>S&amp;uggestions:</string>
      </property>
      <property name="buddy">
       <cstring>suggestionsLW</cstring>
      </property>
     </widget>
    </item>
    <item row="7" column="0">
     <widget class="QListWidget" name="suggestionsLW"/>
    </item>
    <item row="8" column="0">
     <widget class="QProgressBar" name="spellcheckPR">
      <property name="value">
       <number>24</number>
      </property>
      <property name="orientation">
       <enum>Qt::Horizontal</enum>
      </property>
     </widget>
    </item>
    <item row="8" column="1">
     <widget class="QPushButton" name="closePB">
      <property name="sizePolicy">
       <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
      <property name="text">
       <string>&amp;Close</string>
      </property>
     </widget>
    </item>
   </layout>
  </widget>
 </widget>
 <resources/>
 <connections/>
</ui>

Reply via email to