mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
Remove dependency on Qt in qrenderdoc python module
* The main addition here apart from some extra stubs is a new rdc type for date time objects. * Although the module doesn't do anything and is only used for docs reflection it is desirable to not have to link against Qt as this can cause problems when linking the module without unresolved symbols.
This commit is contained in:
@@ -229,7 +229,7 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai
|
||||
for(const BugReport &b : bugs)
|
||||
{
|
||||
// check bugs every two days
|
||||
qint64 diff = b.checkDate.secsTo(now);
|
||||
qint64 diff = QDateTime(b.checkDate).secsTo(now);
|
||||
if(diff > 2 * 24 * 60 * 60)
|
||||
{
|
||||
// update the check date on the stored bug
|
||||
@@ -1001,8 +1001,8 @@ void MainWindow::PopulateReportedBugs()
|
||||
if(bug.unreadUpdates)
|
||||
fmt = tr("&%1: (Update) Bug reported at %2");
|
||||
|
||||
QAction *action =
|
||||
ui->menu_Reported_Bugs->addAction(fmt.arg(idx).arg(bug.submitDate.toString()), [this, i] {
|
||||
QAction *action = ui->menu_Reported_Bugs->addAction(
|
||||
fmt.arg(idx).arg(QDateTime(bug.submitDate).toString()), [this, i] {
|
||||
BugReport &bug = m_Ctx.Config().CrashReport_ReportedBugs[i];
|
||||
|
||||
QDesktopServices::openUrl(QString(bug.URL()));
|
||||
|
||||
Reference in New Issue
Block a user