mirror of
https://github.com/stenzek/duckstation.git
synced 2026-07-11 01:24:11 +02:00
Qt: Use simpler text widgets in cover downloader and game summary (#3773)
This commit is contained in:
@@ -25,7 +25,7 @@ CoverDownloadWindow::CoverDownloadWindow() : QWidget()
|
||||
|
||||
connect(m_ui.start, &QPushButton::clicked, this, &CoverDownloadWindow::onStartClicked);
|
||||
connect(m_ui.close, &QPushButton::clicked, this, &CoverDownloadWindow::close);
|
||||
connect(m_ui.urls, &QTextEdit::textChanged, this, &CoverDownloadWindow::updateEnabled);
|
||||
connect(m_ui.urls, &QPlainTextEdit::textChanged, this, &CoverDownloadWindow::updateEnabled);
|
||||
|
||||
const std::vector<std::string> urls = Core::GetBaseStringListSetting("UI", "CoverDownloaderURL");
|
||||
if (!urls.empty())
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>720</width>
|
||||
<height>506</height>
|
||||
<height>551</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -59,7 +59,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTextEdit" name="urls"/>
|
||||
<widget class="QPlainTextEdit" name="urls"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <QtCore/QSignalBlocker>
|
||||
#include <QtWidgets/QDialog>
|
||||
#include <QtWidgets/QDialogButtonBox>
|
||||
#include <QtWidgets/QTextBrowser>
|
||||
#include <QtWidgets/QTextEdit>
|
||||
|
||||
#include "moc_gamesummarywidget.cpp"
|
||||
#include "ui_editgameserialdialog.h"
|
||||
@@ -498,9 +498,10 @@ void GameSummaryWidget::onCompatibilityCommentsClicked()
|
||||
|
||||
QVBoxLayout* layout = new QVBoxLayout(dlg);
|
||||
|
||||
QTextBrowser* tb = new QTextBrowser(dlg);
|
||||
tb->setMarkdown(m_compatibility_comments);
|
||||
layout->addWidget(tb, 1);
|
||||
QTextEdit* text = new QTextEdit(dlg);
|
||||
text->setMarkdown(m_compatibility_comments);
|
||||
text->setReadOnly(true);
|
||||
layout->addWidget(text, 1);
|
||||
|
||||
QDialogButtonBox* bb = new QDialogButtonBox(QDialogButtonBox::Close, dlg);
|
||||
connect(bb, &QDialogButtonBox::rejected, dlg, &QDialog::accept);
|
||||
|
||||
Reference in New Issue
Block a user