Browse Source

Merge pull request #5632

98c222b [Qt] optimize helpmessage dialog (Jonas Schnelli)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
9fe53a85e0
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 3
      src/Makefile.qt.include
  2. 3
      src/qt/bitcoin.qrc
  3. 30
      src/qt/forms/helpmessagedialog.ui
  4. BIN
      src/qt/res/images/about.png
  5. 4
      src/qt/utilitydialog.cpp

3
src/Makefile.qt.include

@ -314,8 +314,7 @@ BITCOIN_QT_CPP += \
qt/walletview.cpp qt/walletview.cpp
endif endif
RES_IMAGES = \ RES_IMAGES =
qt/res/images/about.png
RES_MOVIES = $(wildcard qt/res/movies/spinner-*.png) RES_MOVIES = $(wildcard qt/res/movies/spinner-*.png)

3
src/qt/bitcoin.qrc

@ -46,9 +46,6 @@
<file alias="about_qt">res/icons/about_qt.png</file> <file alias="about_qt">res/icons/about_qt.png</file>
<file alias="verify">res/icons/verify.png</file> <file alias="verify">res/icons/verify.png</file>
</qresource> </qresource>
<qresource prefix="/images">
<file alias="about">res/images/about.png</file>
</qresource>
<qresource prefix="/movies"> <qresource prefix="/movies">
<file alias="spinner-000">res/movies/spinner-000.png</file> <file alias="spinner-000">res/movies/spinner-000.png</file>
<file alias="spinner-001">res/movies/spinner-001.png</file> <file alias="spinner-001">res/movies/spinner-001.png</file>

30
src/qt/forms/helpmessagedialog.ui

@ -6,32 +6,14 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>585</width> <width>780</width>
<height>225</height> <height>400</height>
</rect> </rect>
</property> </property>
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string notr="true">Bitcoin Core - Command-line options</string> <string notr="true">Bitcoin Core - Command-line options</string>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="graphic">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Ignored">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="pixmap">
<pixmap resource="../bitcoin.qrc">:/images/about</pixmap>
</property>
</widget>
</item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
@ -50,14 +32,6 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<widget class="QWidget" name="scrollAreaWidgetContents"> <widget class="QWidget" name="scrollAreaWidgetContents">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>447</width>
<height>68</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<widget class="QLabel" name="aboutMessage"> <widget class="QLabel" name="aboutMessage">

BIN
src/qt/res/images/about.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

4
src/qt/utilitydialog.cpp

@ -74,8 +74,8 @@ HelpMessageDialog::HelpMessageDialog(QWidget *parent, bool about) :
tf.setBorderStyle(QTextFrameFormat::BorderStyle_None); tf.setBorderStyle(QTextFrameFormat::BorderStyle_None);
tf.setCellPadding(2); tf.setCellPadding(2);
QVector<QTextLength> widths; QVector<QTextLength> widths;
widths << QTextLength(QTextLength::PercentageLength, 20); widths << QTextLength(QTextLength::PercentageLength, 35);
widths << QTextLength(QTextLength::PercentageLength, 80); widths << QTextLength(QTextLength::PercentageLength, 65);
tf.setColumnWidthConstraints(widths); tf.setColumnWidthConstraints(widths);
QTextTable *table = cursor.insertTable(2, 2, tf); QTextTable *table = cursor.insertTable(2, 2, tf);

Loading…
Cancel
Save