fix: improve resize behavior of BlockedModsDialog
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
5ae044db93
commit
d61323aa6d
@ -34,15 +34,8 @@ BlockedModsDialog::BlockedModsDialog(QWidget* parent, const QString& title, cons
|
|||||||
|
|
||||||
this->setWindowTitle(title);
|
this->setWindowTitle(title);
|
||||||
ui->labelDescription->setText(text);
|
ui->labelDescription->setText(text);
|
||||||
ui->labelExplain->setText(
|
|
||||||
QString(tr("Your configured global mods folder and default downloads folder "
|
|
||||||
"are automatically checked for the downloaded mods and they will be copied to the instance if found.<br/>"
|
|
||||||
"Optionally, you may drag and drop the downloaded mods onto this dialog or add a folder to watch "
|
|
||||||
"if you did not download the mods to a default location."))
|
|
||||||
.arg(APPLICATION->settings()->get("CentralModsDir").toString(),
|
|
||||||
QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)));
|
|
||||||
|
|
||||||
// force all URL handeling as external
|
// force all URL handling as external
|
||||||
connect(ui->textBrowserWatched, &QTextBrowser::anchorClicked, this, [](const QUrl url) { QDesktopServices::openUrl(url); });
|
connect(ui->textBrowserWatched, &QTextBrowser::anchorClicked, this, [](const QUrl url) { QDesktopServices::openUrl(url); });
|
||||||
|
|
||||||
setAcceptDrops(true);
|
setAcceptDrops(true);
|
||||||
|
@ -7,17 +7,23 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>455</height>
|
<height>400</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>350</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string notr="true">BlockedModsDialog</string>
|
<string notr="true">BlockedModsDialog</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,3,0,1,0">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labelDescription">
|
<widget class="QLabel" name="labelDescription">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true"/>
|
<string notr="true">Placeholder description</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textFormat">
|
<property name="textFormat">
|
||||||
<enum>Qt::RichText</enum>
|
<enum>Qt::RichText</enum>
|
||||||
@ -30,7 +36,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labelExplain">
|
<widget class="QLabel" name="labelExplain">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string notr="true"><html><head/><body><p>Your configured global mods folder and default downloads folder are automatically checked for the downloaded mods and they will be copied to the instance if found.</p><p>Optionally, you may drag and drop the downloaded mods onto this dialog or add a folder to watch if you did not download the mods to a default location.</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@ -42,12 +48,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTextBrowser" name="textBrowserModsListing">
|
<widget class="QTextBrowser" name="textBrowserModsListing">
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>165</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="acceptRichText">
|
<property name="acceptRichText">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
@ -58,12 +58,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="labelWatched">
|
<widget class="QLabel" name="labelWatched">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>1</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Watched Folders:</string>
|
<string>Watched Folders:</string>
|
||||||
</property>
|
</property>
|
||||||
@ -71,18 +65,6 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTextBrowser" name="textBrowserWatched">
|
<widget class="QTextBrowser" name="textBrowserWatched">
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Minimum">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>0</width>
|
|
||||||
<height>16</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="baseSize">
|
<property name="baseSize">
|
||||||
<size>
|
<size>
|
||||||
<width>0</width>
|
<width>0</width>
|
||||||
|
Loading…
Reference in New Issue
Block a user