Added "Show Solution"
[vexed] / mainwindow.ui
index 8fda48f..21e7de2 100644 (file)
           </layout>
          </item>
          <item>
           </layout>
          </item>
          <item>
+          <layout class="QHBoxLayout" name="solveLandscape">
+         <item>
+          <widget class="QPushButton" name="solve">
+           <property name="text">
+            <string>Solve!</string>
+           </property>
+          </widget>
+         </item>
+         </layout>
+         </item>
+         <item>
           <spacer name="verticalSpacer_2">
            <property name="orientation">
             <enum>Qt::Vertical</enum>
           <spacer name="verticalSpacer_2">
            <property name="orientation">
             <enum>Qt::Vertical</enum>
    <slots>
     <signal>solved(int)</signal>
     <signal>updateMoves(int)</signal>
    <slots>
     <signal>solved(int)</signal>
     <signal>updateMoves(int)</signal>
+    <signal>solved()</signal>
     <slot>undo()</slot>
    </slots>
   </customwidget>
     <slot>undo()</slot>
    </slots>
   </customwidget>
    <hints>
     <hint type="sourcelabel">
      <x>697</x>
    <hints>
     <hint type="sourcelabel">
      <x>697</x>
-     <y>227</y>
+     <y>162</y>
     </hint>
     <hint type="destinationlabel">
      <x>553</x>
     </hint>
     <hint type="destinationlabel">
      <x>553</x>
    <hints>
     <hint type="sourcelabel">
      <x>765</x>
    <hints>
     <hint type="sourcelabel">
      <x>765</x>
-     <y>227</y>
+     <y>162</y>
     </hint>
     <hint type="destinationlabel">
      <x>515</x>
     </hint>
     <hint type="destinationlabel">
      <x>515</x>
    <hints>
     <hint type="sourcelabel">
      <x>731</x>
    <hints>
     <hint type="sourcelabel">
      <x>731</x>
-     <y>227</y>
+     <y>162</y>
     </hint>
     <hint type="destinationlabel">
      <x>584</x>
     </hint>
     <hint type="destinationlabel">
      <x>584</x>
    <hints>
     <hint type="sourcelabel">
      <x>765</x>
    <hints>
     <hint type="sourcelabel">
      <x>765</x>
-     <y>259</y>
+     <y>194</y>
     </hint>
     <hint type="destinationlabel">
      <x>321</x>
     </hint>
     <hint type="destinationlabel">
      <x>321</x>
     </hint>
    </hints>
   </connection>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>solve</sender>
+   <signal>clicked()</signal>
+   <receiver>MainWindow</receiver>
+   <slot>solve()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>705</x>
+     <y>310</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>610</x>
+     <y>286</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
  <slots>
   <slot>loadNextLevel()</slot>
  </connections>
  <slots>
   <slot>loadNextLevel()</slot>
   <slot>reorient()</slot>
   <slot>solved(int)</slot>
   <slot>about()</slot>
   <slot>reorient()</slot>
   <slot>solved(int)</slot>
   <slot>about()</slot>
+  <slot>solve()</slot>
  </slots>
 </ui>
  </slots>
 </ui>