"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dialogs/AboutDialog.cpp" between
cutter-1.8.3.tar.gz and cutter-1.9.0.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

AboutDialog.cpp  (cutter-1.8.3):AboutDialog.cpp  (cutter-1.9.0)
skipping to change at line 31 skipping to change at line 31
AboutDialog::AboutDialog(QWidget *parent) : AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::AboutDialog) ui(new Ui::AboutDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
ui->logoSvgWidget->load(Config()->getLogoFile()); ui->logoSvgWidget->load(Config()->getLogoFile());
QString aboutString("<h1>Cutter</h1>" QString aboutString("<h1>Cutter</h1>"
+ tr("Version") + " " CUTTER_VERSION_FULL "<br/>" + tr("Version") + " " CUTTER_VERSION_FULL "<br/>"
+ tr("Using r2-") + R2_GITTAP + tr("Using r2-") + R2_GITTAP + "<br/>"
+ buildQtVersionString()
+ "<p><b>" + tr("Optional Features:") + "</b><br/>" + "<p><b>" + tr("Optional Features:") + "</b><br/>"
+ QString("Python: %1<br/>").arg( + QString("Python: %1<br/>").arg(
#ifdef CUTTER_ENABLE_PYTHON #ifdef CUTTER_ENABLE_PYTHON
"ON" "ON"
#else #else
"OFF" "OFF"
#endif #endif
) )
+ QString("Python Bindings: %2</p>").arg( + QString("Python Bindings: %2</p>").arg(
#ifdef CUTTER_ENABLE_PYTHON_BINDINGS #ifdef CUTTER_ENABLE_PYTHON_BINDINGS
skipping to change at line 94 skipping to change at line 95
QProgressDialog waitDialog; QProgressDialog waitDialog;
QProgressBar *bar = new QProgressBar(&waitDialog); QProgressBar *bar = new QProgressBar(&waitDialog);
bar->setMaximum(0); bar->setMaximum(0);
waitDialog.setBar(bar); waitDialog.setBar(bar);
waitDialog.setLabel(new QLabel(tr("Checking for updates..."), &waitDialog)); waitDialog.setLabel(new QLabel(tr("Checking for updates..."), &waitDialog));
connect(&updateWorker, &UpdateWorker::checkComplete, &waitDialog, &QProgress Dialog::cancel); connect(&updateWorker, &UpdateWorker::checkComplete, &waitDialog, &QProgress Dialog::cancel);
connect(&updateWorker, &UpdateWorker::checkComplete, connect(&updateWorker, &UpdateWorker::checkComplete,
[&updateWorker](const QVersionNumber &version, const QString & error) { [&updateWorker](const QVersionNumber & version, const QString & error) {
if (!error.isEmpty()) { if (!error.isEmpty()) {
QMessageBox::critical(nullptr, tr("Error!"), error); QMessageBox::critical(nullptr, tr("Error!"), error);
} else { } else {
if (version <= UpdateWorker::currentVersionNumber()) { if (version <= UpdateWorker::currentVersionNumber()) {
QMessageBox::information(nullptr, tr("Version control"), tr("Cut ter is up to date!")); QMessageBox::information(nullptr, tr("Version control"), tr("Cut ter is up to date!"));
} else { } else {
updateWorker.showUpdateDialog(false); updateWorker.showUpdateDialog(false);
} }
} }
}); });
updateWorker.checkCurrentVersion(7000); updateWorker.checkCurrentVersion(7000);
waitDialog.exec(); waitDialog.exec();
} }
void AboutDialog::on_updatesCheckBox_stateChanged(int) void AboutDialog::on_updatesCheckBox_stateChanged(int)
{ {
Config()->setAutoUpdateEnabled(!Config()->getAutoUpdateEnabled()); Config()->setAutoUpdateEnabled(!Config()->getAutoUpdateEnabled());
} }
static QString compilerString()
{
#if defined(Q_CC_CLANG) // must be before GNU, because clang claims to be GNU to
o
QString isAppleString;
#if defined(__apple_build_version__) // Apple clang has other version numbers
isAppleString = QLatin1String(" (Apple)");
#endif
return QLatin1String("Clang " ) + QString::number(__clang_major__) + QLatin1
Char('.')
+ QString::number(__clang_minor__) + isAppleString;
#elif defined(Q_CC_GNU)
return QLatin1String("GCC " ) + QLatin1String(__VERSION__);
#elif defined(Q_CC_MSVC)
if (_MSC_VER > 1999)
return QLatin1String("MSVC <unknown>");
if (_MSC_VER >= 1910)
return QLatin1String("MSVC 2017");
if (_MSC_VER >= 1900)
return QLatin1String("MSVC 2015");
#endif
return QLatin1String("<unknown compiler>");
}
QString AboutDialog::buildQtVersionString(void)
{
return tr("Based on Qt %1 (%2, %3 bit)").arg(QLatin1String(qVersion()),
compilerString(),
QString::number(QSysInfo::WordS
ize));
}
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)