add Close button to the dialog, because some hipsters apparently thought titlebars with close-buttons weren't cool anymore, or something.
also fix more possible compile errors. can we now, please, be done with the stupid shit?
This commit is contained in:
parent
4deafb1d6d
commit
258797615f
|
@ -135,10 +135,10 @@ void TitleManagerDialog::createTitleItem(u32 category, u32 titleid)
|
||||||
|
|
||||||
QListWidgetItem* item = new QListWidgetItem(title + QString(extra));
|
QListWidgetItem* item = new QListWidgetItem(title + QString(extra));
|
||||||
item->setIcon(icon);
|
item->setIcon(icon);
|
||||||
item->setData(Qt::UserRole, (((u64)category<<32) | (u64)titleid));
|
item->setData(Qt::UserRole, QVariant(((u64)category<<32) | (u64)titleid));
|
||||||
item->setData(Qt::UserRole+1, *(u32*)&header[0x238]); // public.sav size
|
item->setData(Qt::UserRole+1, QVariant(*(u32*)&header[0x238])); // public.sav size
|
||||||
item->setData(Qt::UserRole+2, *(u32*)&header[0x23C]); // private.sav size
|
item->setData(Qt::UserRole+2, QVariant(*(u32*)&header[0x23C])); // private.sav size
|
||||||
item->setData(Qt::UserRole+3, (u32)((header[0x1BF] & 0x04) ? 0x4000 : 0)); // banner.sav size
|
item->setData(Qt::UserRole+3, QVariant((u32)((header[0x1BF] & 0x04) ? 0x4000 : 0))); // banner.sav size
|
||||||
ui->lstTitleList->addItem(item);
|
ui->lstTitleList->addItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -86,8 +86,48 @@
|
||||||
<item>
|
<item>
|
||||||
<widget class="QListWidget" name="lstTitleList"/>
|
<widget class="QListWidget" name="lstTitleList"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::Close</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>TitleManagerDialog</receiver>
|
||||||
|
<slot>accept()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>303</x>
|
||||||
|
<y>448</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>303</x>
|
||||||
|
<y>232</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>rejected()</signal>
|
||||||
|
<receiver>TitleManagerDialog</receiver>
|
||||||
|
<slot>reject()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>303</x>
|
||||||
|
<y>448</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>303</x>
|
||||||
|
<y>232</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Loading…
Reference in New Issue