mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 19:21:27 +00:00
Fix last commit and a couple style changes.
This commit is contained in:
parent
a396008bf6
commit
7bb23d15bd
@ -342,17 +342,16 @@ QRegion GridView::visualRegionForSelection(const QItemSelection &selection) cons
|
|||||||
{
|
{
|
||||||
QRegion region;
|
QRegion region;
|
||||||
QItemSelectionRange range;
|
QItemSelectionRange range;
|
||||||
int i = 0;
|
int i;
|
||||||
|
|
||||||
for (i; i < selection.size(); i++)
|
for (i = 0; i < selection.size(); i++)
|
||||||
{
|
{
|
||||||
int row;
|
|
||||||
range = selection.at(i);
|
range = selection.at(i);
|
||||||
row = range.top();
|
int row;
|
||||||
for (row; row <= range.bottom(); ++row)
|
for (row = range.top(); row <= range.bottom(); row++)
|
||||||
{
|
{
|
||||||
int column = range.left();
|
int column;
|
||||||
for (column; column < range.right(); ++column)
|
for (column = range.left(); column < range.right(); column++)
|
||||||
{
|
{
|
||||||
QModelIndex index = model()->index(row, column, rootIndex());
|
QModelIndex index = model()->index(row, column, rootIndex());
|
||||||
region += visualRect(index);
|
region += visualRect(index);
|
||||||
|
@ -31,7 +31,7 @@ extern "C" {
|
|||||||
#include <string/stdstring.h>
|
#include <string/stdstring.h>
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
#include <retro_miscellaneous.h>
|
#include <retro_miscellaneous.h>
|
||||||
};
|
}
|
||||||
|
|
||||||
#define CORE_NAME_COLUMN 0
|
#define CORE_NAME_COLUMN 0
|
||||||
#define CORE_VERSION_COLUMN 1
|
#define CORE_VERSION_COLUMN 1
|
||||||
|
@ -655,7 +655,8 @@ void MainWindow::updateVisibleItems() {
|
|||||||
if (m_viewType == VIEW_TYPE_ICONS)
|
if (m_viewType == VIEW_TYPE_ICONS)
|
||||||
{
|
{
|
||||||
QVector<QModelIndex> indexes = m_gridView->visibleIndexes();
|
QVector<QModelIndex> indexes = m_gridView->visibleIndexes();
|
||||||
for (int i = 0; i < indexes.size(); i++)
|
int i;
|
||||||
|
for (i = 0; i < indexes.size(); i++)
|
||||||
{
|
{
|
||||||
m_playlistModel->loadThumbnail(m_proxyModel->mapToSource(indexes.at(i)));
|
m_playlistModel->loadThumbnail(m_proxyModel->mapToSource(indexes.at(i)));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user