mirror of
https://github.com/RPCS3/rpcs3
synced 2024-09-05 07:56:33 +00:00
[Qt] style adjustments 2
some more of the same
This commit is contained in:
parent
205f6a9000
commit
8e955297ef
|
@ -257,7 +257,8 @@ void msg_dialog_frame::CreateOsk(const std::string& msg, char16_t* osk_text, u32
|
|||
|
||||
msg_dialog_frame::msg_dialog_frame(QWindow* taskbarTarget) : m_taskbarTarget(taskbarTarget) {}
|
||||
|
||||
msg_dialog_frame::~msg_dialog_frame() {
|
||||
msg_dialog_frame::~msg_dialog_frame()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if (m_tb_progress)
|
||||
{
|
||||
|
|
|
@ -294,7 +294,8 @@ rsx_debugger::rsx_debugger(QWidget* parent)
|
|||
connect(b_goto_put, &QAbstractButton::clicked, [=](){
|
||||
if (const auto render = fxm::get<GSRender>()){
|
||||
u32 realAddr;
|
||||
if (RSXIOMem.getRealAddr(render->ctrl->put.load(), realAddr)){
|
||||
if (RSXIOMem.getRealAddr(render->ctrl->put.load(), realAddr))
|
||||
{
|
||||
m_addr = realAddr;
|
||||
UpdateInformation();
|
||||
}
|
||||
|
@ -306,7 +307,8 @@ rsx_debugger::rsx_debugger(QWidget* parent)
|
|||
UpdateInformation();
|
||||
});
|
||||
connect(m_list_flags, &QTableWidget::itemClicked, this, &rsx_debugger::SetFlags);
|
||||
connect(m_list_texture, &QTableWidget::itemClicked, [=](){
|
||||
connect(m_list_texture, &QTableWidget::itemClicked, [=]
|
||||
{
|
||||
int index = m_list_texture->currentRow();
|
||||
if (index >= 0) m_cur_texture = index;
|
||||
UpdateInformation();
|
||||
|
@ -319,6 +321,11 @@ rsx_debugger::rsx_debugger(QWidget* parent)
|
|||
setFocusProxy(t_addr);
|
||||
};
|
||||
|
||||
rsx_debugger::~rsx_debugger()
|
||||
{
|
||||
exit = true;
|
||||
}
|
||||
|
||||
void rsx_debugger::keyPressEvent(QKeyEvent* event)
|
||||
{
|
||||
if(isActiveWindow())
|
||||
|
@ -720,7 +727,8 @@ void rsx_debugger::GetBuffers()
|
|||
unsigned char* buffer = (unsigned char*)malloc(width * height * 4);
|
||||
|
||||
// ABGR to ARGB and flip vertically
|
||||
for (u32 y=0; y<height; y++){
|
||||
for (u32 y=0; y<height; y++)
|
||||
{
|
||||
for (u32 i=0, j=0; j<width*4; i+=4, j+=4)
|
||||
{
|
||||
buffer[i+0 + y*width*4] = RSXbuffer[j+1 + (height-y-1)*width*4]; //B
|
||||
|
|
|
@ -90,10 +90,7 @@ class rsx_debugger : public QDialog
|
|||
public:
|
||||
bool exit;
|
||||
rsx_debugger(QWidget* parent);
|
||||
~rsx_debugger()
|
||||
{
|
||||
exit = true;
|
||||
}
|
||||
~rsx_debugger();
|
||||
|
||||
virtual void UpdateInformation();
|
||||
virtual void GetMemory();
|
||||
|
|
|
@ -42,13 +42,14 @@ save_data_info_dialog::save_data_info_dialog(const SaveDataEntry& save, QWidget*
|
|||
m_list->horizontalHeader()->resizeSections(QHeaderView::ResizeToContents);
|
||||
m_list->verticalHeader()->resizeSections(QHeaderView::ResizeToContents);
|
||||
|
||||
QSize tableSize = QSize(
|
||||
QSize tableSize = QSize
|
||||
(
|
||||
m_list->verticalHeader()->width() + m_list->horizontalHeader()->length() + m_list->frameWidth() * 2,
|
||||
m_list->horizontalHeader()->height() + m_list->verticalHeader()->length() + m_list->frameWidth() * 2);
|
||||
m_list->horizontalHeader()->height() + m_list->verticalHeader()->length() + m_list->frameWidth() * 2
|
||||
);
|
||||
|
||||
// no minimum size needed because we always have same table size and row count
|
||||
resize(sizeHint() - m_list->sizeHint() + tableSize);
|
||||
|
||||
}
|
||||
|
||||
//This is intended to write the information of save data to QTableView.
|
||||
|
|
|
@ -86,7 +86,8 @@ save_data_list_dialog::save_data_list_dialog(const std::vector<SaveDataEntry>& e
|
|||
|
||||
UpdateList();
|
||||
|
||||
connect(m_list, &QTableWidget::cellChanged, [&](int row, int col) {
|
||||
connect(m_list, &QTableWidget::cellChanged, [&](int row, int col)
|
||||
{
|
||||
int originalIndex = m_list->item(row, 0)->data(Qt::UserRole).toInt();
|
||||
SaveDataEntry originalEntry = m_save_entries[originalIndex];
|
||||
QString originalDirName = qstr(originalEntry.dirName);
|
||||
|
@ -206,9 +207,11 @@ void save_data_list_dialog::UpdateList()
|
|||
m_list->horizontalHeader()->resizeSections(QHeaderView::ResizeToContents);
|
||||
m_list->verticalHeader()->resizeSections(QHeaderView::ResizeToContents);
|
||||
|
||||
QSize tableSize = QSize(
|
||||
QSize tableSize = QSize
|
||||
(
|
||||
m_list->verticalHeader()->width() + m_list->horizontalHeader()->length() + m_list->frameWidth() * 2,
|
||||
m_list->horizontalHeader()->height() + m_list->verticalHeader()->length() + m_list->frameWidth() * 2);
|
||||
m_list->horizontalHeader()->height() + m_list->verticalHeader()->length() + m_list->frameWidth() * 2
|
||||
);
|
||||
|
||||
resize(minimumSize().expandedTo(sizeHint() - m_list->sizeHint() + tableSize));
|
||||
|
||||
|
|
|
@ -119,7 +119,6 @@ void save_manager_dialog::Init(std::string dir)
|
|||
|
||||
UpdateList();
|
||||
|
||||
|
||||
// Connects and events
|
||||
connect(push_close, &QAbstractButton::clicked, this, &save_manager_dialog::close);
|
||||
connect(m_list, &QTableWidget::itemDoubleClicked, this, &save_manager_dialog::OnEntryInfo);
|
||||
|
@ -129,7 +128,8 @@ void save_manager_dialog::Init(std::string dir)
|
|||
OnSort(col);
|
||||
});
|
||||
|
||||
connect(m_list, &QTableWidget::cellChanged, [&](int row, int col) {
|
||||
connect(m_list, &QTableWidget::cellChanged, [&](int row, int col)
|
||||
{
|
||||
int originalIndex = m_list->item(row, 0)->data(Qt::UserRole).toInt();
|
||||
SaveDataEntry originalEntry = m_save_entries[originalIndex];
|
||||
QString originalDirName = qstr(originalEntry.dirName);
|
||||
|
|
Loading…
Reference in a new issue