aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-12-13 16:28:56 +0100
committerLuke Dashjr <luke-jr+git@utopios.org>2011-12-13 12:46:58 -0500
commit142e5056cd8a62df838e9a3afee0f718faffd72b (patch)
treea5f57b6a3f2ab475a38b54a74642e78d8bd160e0 /src/qt
parent9a7f4948c6e63e9470b14b0f8b61c8ecbf21f00f (diff)
downloadbitcoin-142e5056cd8a62df838e9a3afee0f718faffd72b.tar.xz
Enable wordwrap for long message in passphrase dialog
- Remove explicit resizing from constructor to prevent potential hang
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/askpassphrasedialog.cpp1
-rw-r--r--src/qt/forms/askpassphrasedialog.ui20
2 files changed, 5 insertions, 16 deletions
diff --git a/src/qt/askpassphrasedialog.cpp b/src/qt/askpassphrasedialog.cpp
index a574ef925b..b52acf4545 100644
--- a/src/qt/askpassphrasedialog.cpp
+++ b/src/qt/askpassphrasedialog.cpp
@@ -47,7 +47,6 @@ AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
ui->warningLabel->setText(tr("Enter the old and new passphrase to the wallet."));
break;
}
- resize(minimumSize()); // Get rid of extra space in dialog
textChanged();
connect(ui->passEdit1, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
diff --git a/src/qt/forms/askpassphrasedialog.ui b/src/qt/forms/askpassphrasedialog.ui
index 70d9180e75..3c7dac5f8d 100644
--- a/src/qt/forms/askpassphrasedialog.ui
+++ b/src/qt/forms/askpassphrasedialog.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>589</width>
- <height>228</height>
+ <width>598</width>
+ <height>187</height>
</rect>
</property>
<property name="sizePolicy">
@@ -34,6 +34,9 @@
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
+ <property name="wordWrap">
+ <bool>true</bool>
+ </property>
</widget>
</item>
<item>
@@ -86,19 +89,6 @@
</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>
- <item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>