mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-20 20:55:42 +00:00
Put python version in about dialog
This commit is contained in:
@@ -88,7 +88,7 @@ public:
|
||||
|
||||
bool CheckInterfaces(rdcstr &log);
|
||||
|
||||
QString versionString();
|
||||
static QString versionString();
|
||||
|
||||
template <typename T>
|
||||
void setGlobal(const char *varName, T *object)
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <QLabel>
|
||||
#include <QString>
|
||||
#include "Code/QRDUtils.h"
|
||||
#include "Code/pyrenderdoc/PythonContext.h"
|
||||
#include "ui_AboutDialog.h"
|
||||
#include "version.h"
|
||||
|
||||
@@ -48,7 +49,10 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDia
|
||||
.arg(hash.left(8)));
|
||||
}
|
||||
|
||||
ui->version->setText(tr("%1 (Qt version %2)").arg(ui->version->text()).arg(lit(QT_VERSION_STR)));
|
||||
ui->version->setText(tr("%1 (Qt %2) (Python %3)")
|
||||
.arg(ui->version->text())
|
||||
.arg(lit(QT_VERSION_STR))
|
||||
.arg(PythonContext::versionString()));
|
||||
|
||||
#if defined(DISTRIBUTION_VERSION)
|
||||
ui->owner->setText(QFormatStr("Baldur Karlsson - Packaged for %1").arg(lit(DISTRIBUTION_NAME)));
|
||||
|
||||
@@ -2398,7 +2398,7 @@ QString PythonShell::scriptHeader()
|
||||
The 'pyrenderdoc' object is the current CaptureContext instance.
|
||||
The 'renderdoc' and 'qrenderdoc' modules are available.
|
||||
Documentation is available: https://renderdoc.org/docs/python_api/index.html)")
|
||||
.arg(interactiveContext->versionString());
|
||||
.arg(PythonContext::versionString());
|
||||
}
|
||||
|
||||
void PythonShell::appendText(QTextEdit *output, const QString &text)
|
||||
|
||||
Reference in New Issue
Block a user