mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Rename method
This commit is contained in:
parent
bb2a874fd5
commit
21f4676b16
@ -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
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user