#ifndef STACKTRACE_WIN_DLG_H #define STACKTRACE_WIN_DLG_H #include #include #include "boost/version.hpp" #include "libtorrent/version.hpp" #include "ui_stacktrace_win_dlg.h" class StraceDlg: public QDialog, private Ui::errorDialog { Q_OBJECT public: StraceDlg(QWidget* parent = 0): QDialog(parent) { setupUi(this); } ~StraceDlg() { } void setStacktraceString(const QString& trace) { QString htmlStr; QTextStream outStream(&htmlStr); outStream << "

" << "qBittorrent has crashed" << "

" << "" << "

" << "Please report a bug at " << "http://bugs.qbittorrent.org" << " and provide the following backtrace." << "

" << "
" << "


" << "

qBittorrent version: " << VERSION << "
Libtorrent version: " << LIBTORRENT_VERSION << "
Qt version: " << QT_VERSION_STR << "
Boost version: " << QString::number(BOOST_VERSION / 100000) << '.' << QString::number((BOOST_VERSION / 100) % 1000) << '.' << QString::number(BOOST_VERSION % 100) << "


" "
" <<
            trace <<
            "
" << "



"; errorText->setHtml(htmlStr); } }; #endif