mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Clear QPixmapCache if style/palette changes (Qt should do this really)
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <QMimeData>
|
||||
#include <QMouseEvent>
|
||||
#include <QPixmapCache>
|
||||
#include <QProgressBar>
|
||||
#include <QProgressDialog>
|
||||
#include <QToolButton>
|
||||
@@ -1690,6 +1691,12 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
||||
SaveLayout(0);
|
||||
}
|
||||
|
||||
void MainWindow::changeEvent(QEvent *event)
|
||||
{
|
||||
if(event->type() == QEvent::PaletteChange || event->type() == QEvent::StyleChange)
|
||||
QPixmapCache::clear();
|
||||
}
|
||||
|
||||
QString MainWindow::dragFilename(const QMimeData *mimeData)
|
||||
{
|
||||
if(mimeData->hasUrls())
|
||||
|
||||
Reference in New Issue
Block a user