#include "shaderssourcewidget.h"
#include "tracedialog.h"
#include "traceprocess.h"
+#include "thumbnail.h"
#include "ui_retracerdialog.h"
#include "vertexdatainterpreter.h"
}
}
+void MainWindow::callItemActivated(const QModelIndex &index) {
+ lookupState();
+}
+
void MainWindow::replayStart()
{
if (m_trace->isSaving()) {
if (textures.isEmpty() && fbos.isEmpty()) {
m_ui.surfacesTab->setDisabled(false);
} else {
- m_ui.surfacesTreeWidget->setIconSize(QSize(64, 64));
+ m_ui.surfacesTreeWidget->setIconSize(QSize(THUMBNAIL_SIZE, THUMBNAIL_SIZE));
if (!textures.isEmpty()) {
QTreeWidgetItem *textureItem =
new QTreeWidgetItem(m_ui.surfacesTreeWidget);
connect(m_ui.callView->selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
this, SLOT(callItemSelected(const QModelIndex &)));
+ connect(m_ui.callView, SIGNAL(doubleClicked(const QModelIndex &)),
+ this, SLOT(callItemActivated(const QModelIndex &)));
connect(m_ui.callView, SIGNAL(customContextMenuRequested(QPoint)),
this, SLOT(customContextMenuRequested(QPoint)));
void MainWindow::replayThumbnailsFound(const QList<QImage> &thumbnails)
{
+ m_ui.callView->setUniformRowHeights(false);
m_trace->bindThumbnailsToFrames(thumbnails);
}