mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Refresh thumbnail strip layout when it becomes visible
This commit is contained in:
@@ -71,6 +71,11 @@ void ThumbnailStrip::mousePressEvent(QMouseEvent *event)
|
||||
emit(mouseClick(event));
|
||||
}
|
||||
|
||||
void ThumbnailStrip::showEvent(QShowEvent *event)
|
||||
{
|
||||
RefreshLayout();
|
||||
}
|
||||
|
||||
void ThumbnailStrip::RefreshLayout()
|
||||
{
|
||||
QRect avail = geometry();
|
||||
|
||||
@@ -55,6 +55,7 @@ signals:
|
||||
private:
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
QVector<ResourcePreview *> m_Thumbnails;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user