mirror of
https://github.com/Dark98/threeSD.git
synced 2026-07-05 08:39:04 +00:00
Fixed minor UI errors
This commit is contained in:
@@ -79,7 +79,6 @@ public:
|
|||||||
std::size_t items_read = file.ReadArray(data, length);
|
std::size_t items_read = file.ReadArray(data, length);
|
||||||
|
|
||||||
if (IsGood()) {
|
if (IsGood()) {
|
||||||
LOG_CRITICAL(Core, "Decrypting data...");
|
|
||||||
DecryptData(reinterpret_cast<u8*>(data), sizeof(T) * length);
|
DecryptData(reinterpret_cast<u8*>(data), sizeof(T) * length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,6 @@ void ImportDialog::InsertTopLevelItem(const QString& text, QPixmap icon) {
|
|||||||
checkBox->setProperty("previousState", static_cast<int>(Qt::Unchecked));
|
checkBox->setProperty("previousState", static_cast<int>(Qt::Unchecked));
|
||||||
|
|
||||||
auto* item = new QTreeWidgetItem;
|
auto* item = new QTreeWidgetItem;
|
||||||
item->setFirstColumnSpanned(true);
|
|
||||||
ui->main->invisibleRootItem()->addChild(item);
|
ui->main->invisibleRootItem()->addChild(item);
|
||||||
|
|
||||||
connect(checkBox, &QCheckBox::stateChanged, [this, checkBox, item](int state) {
|
connect(checkBox, &QCheckBox::stateChanged, [this, checkBox, item](int state) {
|
||||||
@@ -183,6 +182,7 @@ void ImportDialog::InsertTopLevelItem(const QString& text, QPixmap icon) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
ui->main->setItemWidget(item, 0, checkBox);
|
ui->main->setItemWidget(item, 0, checkBox);
|
||||||
|
item->setFirstColumnSpanned(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImportDialog::InsertSecondLevelItem(std::size_t row, const Core::ContentSpecifier& content,
|
void ImportDialog::InsertSecondLevelItem(std::size_t row, const Core::ContentSpecifier& content,
|
||||||
@@ -487,7 +487,7 @@ void ImportDialog::StartImporting() {
|
|||||||
});
|
});
|
||||||
connect(job, &ImportJob::Completed, this, [this, dialog] {
|
connect(job, &ImportJob::Completed, this, [this, dialog] {
|
||||||
dialog->setValue(dialog->maximum());
|
dialog->setValue(dialog->maximum());
|
||||||
RepopulateContent();
|
RelistContent();
|
||||||
});
|
});
|
||||||
connect(dialog, &QProgressDialog::canceled, this, [this, dialog, job] {
|
connect(dialog, &QProgressDialog::canceled, this, [this, dialog, job] {
|
||||||
// Add yet-another-ProgressDialog to indicate cancel progress
|
// Add yet-another-ProgressDialog to indicate cancel progress
|
||||||
|
|||||||
Reference in New Issue
Block a user