Fix text clipping in modal overlay and set minimum window size
This commit is contained in:
@@ -50,7 +50,8 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="contentWidget" native="true">
|
<widget class="QWidget" name="contentWidget" native="true">
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">#contentWidget { border-radius: 6px; }</string>
|
<string notr="true">#contentWidget { border-radius: 6px; }
|
||||||
|
QFormLayout QLabel { min-height: 20px; }</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayoutSub" stretch="1,0,0,0">
|
<layout class="QVBoxLayout" name="verticalLayoutSub" stretch="1,0,0,0">
|
||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
@@ -193,7 +194,7 @@
|
|||||||
<number>16</number>
|
<number>16</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="verticalSpacing">
|
<property name="verticalSpacing">
|
||||||
<number>10</number>
|
<number>12</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
@@ -325,9 +326,18 @@
|
|||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="5" column="1">
|
||||||
<widget class="QLabel" name="expectedTimeLeft">
|
<widget class="QLabel" name="expectedTimeLeft">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>calculating...</string>
|
<string>calculating...</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
|||||||
@@ -109,6 +109,9 @@ PalladiumGUI::PalladiumGUI(interfaces::Node& node, const PlatformStyle *_platfor
|
|||||||
move(QGuiApplication::primaryScreen()->availableGeometry().center() - frameGeometry().center());
|
move(QGuiApplication::primaryScreen()->availableGeometry().center() - frameGeometry().center());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set minimum window size to prevent UI breaking (must be after restoreGeometry)
|
||||||
|
setMinimumSize(850, 550);
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
enableWallet = WalletModel::isWalletEnabled();
|
enableWallet = WalletModel::isWalletEnabled();
|
||||||
#endif // ENABLE_WALLET
|
#endif // ENABLE_WALLET
|
||||||
|
|||||||
Reference in New Issue
Block a user