mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 21:31:36 +00:00
Add layout loading/saving to main window
This commit is contained in:
1 parent
33e727e4f6
commit
ff6da5d81e
5 files changed
+315
-46
No files matched your search
@@ -27,6 +27,7 @@
|
||||
#include <QFileInfo>
|
||||
#include <QMessageBox>
|
||||
#include <QMetaObject>
|
||||
#include <QStandardPaths>
|
||||
#include <QTimer>
|
||||
#include "Windows/MainWindow.h"
|
||||
|
||||
@@ -67,6 +68,17 @@ bool CaptureContext::isRunning()
|
||||
return m_MainWindow && m_MainWindow->isVisible();
|
||||
}
|
||||
|
||||
QString CaptureContext::ConfigFile(const QString &filename)
|
||||
{
|
||||
QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||
|
||||
QDir dir(path);
|
||||
if(!dir.exists())
|
||||
dir.mkdir(".");
|
||||
|
||||
return QDir::cleanPath(dir.absoluteFilePath(filename));
|
||||
}
|
||||
|
||||
void CaptureContext::LoadLogfile(QString logFile, bool temporary)
|
||||
{
|
||||
LoadLogfile(-1, "", logFile, temporary);
|
||||
|
||||
Reference in new issue
Block a user