put sendcoins entries in scroll area, so that window does not become bigger than screen with many recipients

This commit is contained in:
Wladimir J. van der Laan 2011-07-17 17:42:41 +02:00
parent 8dcffd4d07
commit 1907b96d69
2 changed files with 93 additions and 71 deletions

View File

@ -15,78 +15,100 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<layout class="QVBoxLayout" name="entries"> <widget class="QScrollArea" name="scrollArea">
<property name="spacing"> <property name="widgetResizable">
<number>6</number> <bool>true</bool>
</property> </property>
</layout> <widget class="QWidget" name="scrollAreaWidgetContents">
</item> <property name="geometry">
<item> <rect>
<layout class="QHBoxLayout" name="horizontalLayout"> <x>0</x>
<property name="spacing"> <y>0</y>
<number>12</number> <width>666</width>
</property> <height>197</height>
<item> </rect>
<spacer name="horizontalSpacer"> </property>
<property name="orientation"> <layout class="QVBoxLayout" name="verticalLayout_2">
<enum>Qt::Horizontal</enum> <property name="margin">
<number>0</number>
</property> </property>
<property name="sizeHint" stdset="0"> <item>
<size> <layout class="QVBoxLayout" name="entries">
<width>40</width> <property name="spacing">
<height>20</height> <number>6</number>
</size> </property>
</property> </layout>
</spacer> </item>
</item> <item>
<item> <layout class="QHBoxLayout" name="horizontalLayout">
<widget class="QPushButton" name="addButton"> <property name="spacing">
<property name="text"> <number>12</number>
<string>&amp;Add recipient...</string> </property>
</property> <item>
<property name="icon"> <spacer name="horizontalSpacer">
<iconset resource="../bitcoin.qrc"> <property name="orientation">
<normaloff>:/icons/add</normaloff>:/icons/add</iconset> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> <property name="sizeHint" stdset="0">
</item> <size>
<item> <width>40</width>
<widget class="QPushButton" name="sendButton"> <height>20</height>
<property name="minimumSize"> </size>
<size> </property>
<width>150</width> </spacer>
<height>0</height> </item>
</size> <item>
</property> <widget class="QPushButton" name="addButton">
<property name="toolTip"> <property name="text">
<string>Confirm the send action</string> <string>&amp;Add recipient...</string>
</property> </property>
<property name="text"> <property name="icon">
<string>&amp;Send</string> <iconset resource="../bitcoin.qrc">
</property> <normaloff>:/icons/add</normaloff>:/icons/add</iconset>
<property name="icon"> </property>
<iconset resource="../bitcoin.qrc"> </widget>
<normaloff>:/icons/send</normaloff>:/icons/send</iconset> </item>
</property> <item>
<property name="default"> <widget class="QPushButton" name="sendButton">
<bool>true</bool> <property name="minimumSize">
</property> <size>
</widget> <width>150</width>
</item> <height>0</height>
</layout> </size>
</item> </property>
<item> <property name="toolTip">
<spacer name="verticalSpacer"> <string>Confirm the send action</string>
<property name="orientation"> </property>
<enum>Qt::Vertical</enum> <property name="text">
</property> <string>&amp;Send</string>
<property name="sizeHint" stdset="0"> </property>
<size> <property name="icon">
<width>20</width> <iconset resource="../bitcoin.qrc">
<height>40</height> <normaloff>:/icons/send</normaloff>:/icons/send</iconset>
</size> </property>
</property> <property name="default">
</spacer> <bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -147,7 +147,7 @@
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../bitcoin.qrc"> <iconset resource="../bitcoin.qrc">
<normaloff>:/icons/res/icons/remove.png</normaloff>:/icons/res/icons/remove.png</iconset> <normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
</property> </property>
</widget> </widget>
</item> </item>