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
#if defined Q_OS_WIN && !defined DISABLE_GUI #if defined Q_OS_WIN && !defined DISABLE_GUI
StacktraceDialog dlg; // unsafe StacktraceDialog dlg; // unsafe
dlg.setStacktraceString(QString::fromLatin1(sigName), straceWin::getBacktrace()); dlg.setText(QString::fromLatin1(sigName), straceWin::getBacktrace());
dlg.exec(); dlg.exec();
#endif #endif

6
src/gui/stacktracedialog.cpp

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

2
src/gui/stacktracedialog.h

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

Loading…
Cancel
Save