Browse Source

Rename method

adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
21f4676b16
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/app/signalhandler.cpp
  2. 6
      src/gui/stacktracedialog.cpp
  3. 2
      src/gui/stacktracedialog.h

2
src/app/signalhandler.cpp

@ -120,7 +120,7 @@ namespace @@ -120,7 +120,7 @@ namespace
#if defined Q_OS_WIN && !defined DISABLE_GUI
StacktraceDialog dlg; // unsafe
dlg.setStacktraceString(QString::fromLatin1(sigName), straceWin::getBacktrace());
dlg.setText(QString::fromLatin1(sigName), straceWin::getBacktrace());
dlg.exec();
#endif

6
src/gui/stacktracedialog.cpp

@ -47,7 +47,7 @@ StacktraceDialog::~StacktraceDialog() @@ -47,7 +47,7 @@ StacktraceDialog::~StacktraceDialog()
delete m_ui;
}
void StacktraceDialog::setStacktraceString(const QString &sigName, const QString &trace)
void StacktraceDialog::setText(const QString &signalName, const QString &stacktrace)
{
// try to call Qt function as less as possible
const QString htmlStr = QStringLiteral(
@ -78,8 +78,8 @@ void StacktraceDialog::setStacktraceString(const QString &sigName, const QString @@ -78,8 +78,8 @@ void StacktraceDialog::setStacktraceString(const QString &sigName, const QString
, Utils::Misc::opensslVersionString()
, Utils::Misc::zlibVersionString()
, Utils::Misc::osName()
, sigName
, trace);
, signalName
, stacktrace);
m_ui->errorText->setHtml(htmlStr);
}

2
src/gui/stacktracedialog.h

@ -45,7 +45,7 @@ public: @@ -45,7 +45,7 @@ public:
explicit StacktraceDialog(QWidget *parent = nullptr);
~StacktraceDialog() override;
void setStacktraceString(const QString &sigName, const QString &trace);
void setText(const QString &signalName, const QString &stacktrace);
private:
Ui::StacktraceDialog *m_ui;

Loading…
Cancel
Save