Mon, 02 Dec 2013 19:54:31 +0100
Extended the dialog wizards to generate code for the result variable(s).
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>FontDialogWizardDialog</class> <widget class="QDialog" name="FontDialogWizardDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>377</width> <height>162</height> </rect> </property> <property name="windowTitle"> <string>QFontDialog Wizard</string> </property> <property name="sizeGripEnabled"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QLabel" name="label"> <property name="text"> <string>Result:</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="eResultVar"> <property name="toolTip"> <string>Enter the result variable name</string> </property> </widget> </item> <item> <layout class="QHBoxLayout"> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Expanding</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>30</width> <height>0</height> </size> </property> </spacer> </item> <item> <widget class="QPushButton" name="fontButton"> <property name="toolTip"> <string>Press to select a font via a dialog</string> </property> <property name="text"> <string>Select Font ...</string> </property> </widget> </item> <item> <spacer> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="sizeType"> <enum>QSizePolicy::Expanding</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>30</width> <height>0</height> </size> </property> </spacer> </item> </layout> </item> <item> <widget class="QLabel" name="TextLabel1"> <property name="text"> <string>Font Variable:</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="eVariable"> <property name="toolTip"> <string>Enter a variable name</string> </property> </widget> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> </widget> <layoutdefault spacing="6" margin="11"/> <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> <tabstops> <tabstop>eResultVar</tabstop> <tabstop>fontButton</tabstop> <tabstop>eVariable</tabstop> <tabstop>buttonBox</tabstop> </tabstops> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>FontDialogWizardDialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>20</x> <y>97</y> </hint> <hint type="destinationlabel"> <x>20</x> <y>120</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>FontDialogWizardDialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>76</x> <y>100</y> </hint> <hint type="destinationlabel"> <x>76</x> <y>119</y> </hint> </hints> </connection> </connections> </ui>