mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08: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
|
||||
StacktraceDialog dlg; // unsafe
|
||||
dlg.setStacktraceString(QString::fromLatin1(sigName), straceWin::getBacktrace());
|
||||
dlg.setText(QString::fromLatin1(sigName), straceWin::getBacktrace());
|
||||
dlg.exec();
|
||||
#endif
|
||||
|
||||
|
@ -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
|
||||
, Utils::Misc::opensslVersionString()
|
||||
, Utils::Misc::zlibVersionString()
|
||||
, Utils::Misc::osName()
|
||||
, sigName
|
||||
, trace);
|
||||
, signalName
|
||||
, stacktrace);
|
||||
|
||||
m_ui->errorText->setHtml(htmlStr);
|
||||
}
|
||||
|
@ -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…
Reference in New Issue
Block a user