formatting startup loading dialog
This commit is contained in:
@@ -120,7 +120,7 @@ void ConnectionLoader::refreshZcashdState(Connection* connection) {
|
|||||||
|
|
||||||
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation);
|
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_MessageBoxInformation);
|
||||||
connD->icon->setPixmap(icon.pixmap(128, 128));
|
connD->icon->setPixmap(icon.pixmap(128, 128));
|
||||||
connD->status->setText(status);
|
connD->status->setText("Your zcashd is starting up. Please wait.\n\n" % status);
|
||||||
|
|
||||||
// Refresh after one second
|
// Refresh after one second
|
||||||
QTimer::singleShot(1000, [=]() { this->refreshZcashdState(connection); });
|
QTimer::singleShot(1000, [=]() { this->refreshZcashdState(connection); });
|
||||||
@@ -133,7 +133,6 @@ void ConnectionLoader::showError(QString explanation) {
|
|||||||
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_MessageBoxCritical);
|
QIcon icon = QApplication::style()->standardIcon(QStyle::SP_MessageBoxCritical);
|
||||||
connD->icon->setPixmap(icon.pixmap(128, 128));
|
connD->icon->setPixmap(icon.pixmap(128, 128));
|
||||||
connD->status->setText(explanation);
|
connD->status->setText(explanation);
|
||||||
connD->title->setText("");
|
|
||||||
|
|
||||||
connD->buttonBox->setEnabled(true);
|
connD->buttonBox->setEnabled(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,13 +17,6 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QLabel" name="title">
|
|
||||||
<property name="text">
|
|
||||||
<string>Your zcashd is still loading. Please wait...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
<item row="4" column="1">
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@@ -34,19 +27,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QLabel" name="status">
|
|
||||||
<property name="text">
|
|
||||||
<string>Connection Status</string>
|
|
||||||
</property>
|
|
||||||
<property name="alignment">
|
|
||||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" rowspan="2">
|
<item row="0" column="0" rowspan="2">
|
||||||
<widget class="QLabel" name="icon">
|
<widget class="QLabel" name="icon">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -80,6 +60,19 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="1" rowspan="2">
|
||||||
|
<widget class="QLabel" name="status">
|
||||||
|
<property name="text">
|
||||||
|
<string>Connection Status</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ OBJECTS_DIR = bin
|
|||||||
UI_DIR = src
|
UI_DIR = src
|
||||||
|
|
||||||
CONFIG += c++14
|
CONFIG += c++14
|
||||||
QMAKE_CXXFLAGS += -std=c++1y
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
src/main.cpp \
|
src/main.cpp \
|
||||||
|
|||||||
Reference in New Issue
Block a user