Fix Qt 5.13 deprecations (#1641)

This commit is contained in:
Florian Märkl 2019-07-09 20:55:07 +02:00 committed by GitHub
parent 68a864ee0a
commit 78ff1459c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 5 deletions

View File

@ -543,7 +543,7 @@ QStringList Configuration::getAvailableTranslations()
} }
QStringList fileNames = fileNamesSet.toList(); QStringList fileNames = fileNamesSet.toList();
qSort(fileNames); std::sort(fileNames.begin(), fileNames.end());
QStringList languages; QStringList languages;
QString currLanguageName; QString currLanguageName;
auto allLocales = QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript, auto allLocales = QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript,

View File

@ -373,7 +373,7 @@ public:
QList<VariableDescription> getVariables(RVA at); QList<VariableDescription> getVariables(RVA at);
QList<XrefDescription> getXRefs(RVA addr, bool to, bool whole_function, QList<XrefDescription> getXRefs(RVA addr, bool to, bool whole_function,
const QString &filterType = QString::null); const QString &filterType = QString());
QList<StringDescription> parseStringsJson(const QJsonDocument &doc); QList<StringDescription> parseStringsJson(const QJsonDocument &doc);

View File

@ -284,7 +284,7 @@ bool NewFileDialog::fillRecentFilesList()
} else { } else {
QListWidgetItem *item = new QListWidgetItem( QListWidgetItem *item = new QListWidgetItem(
getIconFor(name, i++), getIconFor(name, i++),
file + "\nCreated: " + info.created().toString() + "\nSize: " + qhelpers::formatBytecount( file + "\nCreated: " + info.birthTime().toString() + "\nSize: " + qhelpers::formatBytecount(
info.size()) info.size())
); );
//":/img/icons/target.svg"), name ); //":/img/icons/target.svg"), name );

View File

@ -11,7 +11,6 @@
XrefsDialog::XrefsDialog(QWidget *parent) : XrefsDialog::XrefsDialog(QWidget *parent) :
QDialog(parent), QDialog(parent),
addr(0), addr(0),
func_name(QString::null),
ui(new Ui::XrefsDialog) ui(new Ui::XrefsDialog)
{ {
ui->setupUi(this); ui->setupUi(this);

View File

@ -1224,7 +1224,7 @@ QRectF HexWidget::itemRectangle(uint offset)
x -= charWidth / 2; x -= charWidth / 2;
width += charWidth / 2; width += charWidth / 2;
} }
if (offset == itemGroupByteLen() - 1) { if (static_cast<int>(offset) == itemGroupByteLen() - 1) {
width += charWidth / 2; width += charWidth / 2;
} }