mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Qt: fix core association not showing up when clicking on playlists while in grid view
This commit is contained in:
parent
fe6dda917a
commit
51f968c557
@ -1416,13 +1416,18 @@ void MainWindow::addFilesToPlaylist(QStringList files)
|
|||||||
reloadPlaylists();
|
reloadPlaylists();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onGridItemClicked()
|
void MainWindow::onGridItemClicked(ThumbnailWidget *widget)
|
||||||
{
|
{
|
||||||
QHash<QString, QString> hash;
|
QHash<QString, QString> hash;
|
||||||
ThumbnailWidget *w = static_cast<ThumbnailWidget*>(sender());
|
ThumbnailWidget *w = static_cast<ThumbnailWidget*>(sender());
|
||||||
|
|
||||||
if (!w)
|
if (!w)
|
||||||
|
{
|
||||||
|
if (widget)
|
||||||
|
w = widget;
|
||||||
|
else
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (m_currentGridWidget)
|
if (m_currentGridWidget)
|
||||||
{
|
{
|
||||||
@ -4349,11 +4354,26 @@ void MainWindow::initContentGridLayout()
|
|||||||
|
|
||||||
void MainWindow::onContentGridInited()
|
void MainWindow::onContentGridInited()
|
||||||
{
|
{
|
||||||
|
ThumbnailWidget *thumbnailWidget = NULL;
|
||||||
|
|
||||||
m_gridLayoutWidget->resize(m_gridScrollArea->viewport()->size());
|
m_gridLayoutWidget->resize(m_gridScrollArea->viewport()->size());
|
||||||
|
|
||||||
onZoomValueChanged(m_zoomSlider->value());
|
onZoomValueChanged(m_zoomSlider->value());
|
||||||
|
|
||||||
onSearchEnterPressed();
|
onSearchEnterPressed();
|
||||||
|
|
||||||
|
if (m_gridItems.count() > 0)
|
||||||
|
{
|
||||||
|
GridItem *gridItem = m_gridItems.at(0);
|
||||||
|
|
||||||
|
if (gridItem)
|
||||||
|
{
|
||||||
|
thumbnailWidget = m_gridItems.at(0)->widget.data();
|
||||||
|
|
||||||
|
if (thumbnailWidget)
|
||||||
|
onGridItemClicked(thumbnailWidget);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::initContentTableWidget()
|
void MainWindow::initContentTableWidget()
|
||||||
|
@ -224,8 +224,10 @@ static void* ui_companion_qt_init(void)
|
|||||||
QMenu *editMenu = NULL;
|
QMenu *editMenu = NULL;
|
||||||
QMenu *viewMenu = NULL;
|
QMenu *viewMenu = NULL;
|
||||||
QMenu *viewClosedDocksMenu = NULL;
|
QMenu *viewClosedDocksMenu = NULL;
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
QMenu *toolsMenu = NULL;
|
QMenu *toolsMenu = NULL;
|
||||||
QMenu *updaterMenu = NULL;
|
QMenu *updaterMenu = NULL;
|
||||||
|
#endif
|
||||||
QMenu *helpMenu = NULL;
|
QMenu *helpMenu = NULL;
|
||||||
QRect desktopRect;
|
QRect desktopRect;
|
||||||
QDockWidget *thumbnailDock = NULL;
|
QDockWidget *thumbnailDock = NULL;
|
||||||
@ -325,9 +327,9 @@ static void* ui_companion_qt_init(void)
|
|||||||
viewMenu->addSeparator();
|
viewMenu->addSeparator();
|
||||||
viewMenu->addAction(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS), mainwindow->viewOptionsDialog(), SLOT(showDialog()));
|
viewMenu->addAction(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_VIEW_OPTIONS), mainwindow->viewOptionsDialog(), SLOT(showDialog()));
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
toolsMenu = menu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_TOOLS));
|
toolsMenu = menu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_TOOLS));
|
||||||
updaterMenu = toolsMenu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER));
|
updaterMenu = toolsMenu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONLINE_UPDATER));
|
||||||
#ifdef Q_OS_WIN
|
|
||||||
updaterMenu->addAction(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_NIGHTLY), mainwindow, SLOT(updateRetroArchNightly()));
|
updaterMenu->addAction(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_NIGHTLY), mainwindow, SLOT(updateRetroArchNightly()));
|
||||||
#endif
|
#endif
|
||||||
helpMenu = menu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_HELP));
|
helpMenu = menu->addMenu(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_MENU_HELP));
|
||||||
|
@ -431,7 +431,7 @@ private slots:
|
|||||||
void onUpdateGridItemPixmapFromImage(GridItem *item);
|
void onUpdateGridItemPixmapFromImage(GridItem *item);
|
||||||
void onPendingItemUpdates();
|
void onPendingItemUpdates();
|
||||||
void onGridItemDoubleClicked();
|
void onGridItemDoubleClicked();
|
||||||
void onGridItemClicked();
|
void onGridItemClicked(ThumbnailWidget *thumbnailWidget = NULL);
|
||||||
void onPlaylistFilesDropped(QStringList files);
|
void onPlaylistFilesDropped(QStringList files);
|
||||||
void onUpdateNetworkError(QNetworkReply::NetworkError code);
|
void onUpdateNetworkError(QNetworkReply::NetworkError code);
|
||||||
void onUpdateNetworkSslErrors(const QList<QSslError> &errors);
|
void onUpdateNetworkSslErrors(const QList<QSslError> &errors);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user