mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix Qt 5.13 deprecations (#1641)
This commit is contained in:
parent
68a864ee0a
commit
78ff1459c9
@ -543,7 +543,7 @@ QStringList Configuration::getAvailableTranslations()
|
||||
}
|
||||
|
||||
QStringList fileNames = fileNamesSet.toList();
|
||||
qSort(fileNames);
|
||||
std::sort(fileNames.begin(), fileNames.end());
|
||||
QStringList languages;
|
||||
QString currLanguageName;
|
||||
auto allLocales = QLocale::matchingLocales(QLocale::AnyLanguage, QLocale::AnyScript,
|
||||
|
@ -373,7 +373,7 @@ public:
|
||||
QList<VariableDescription> getVariables(RVA at);
|
||||
|
||||
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);
|
||||
|
||||
|
@ -284,7 +284,7 @@ bool NewFileDialog::fillRecentFilesList()
|
||||
} else {
|
||||
QListWidgetItem *item = new QListWidgetItem(
|
||||
getIconFor(name, i++),
|
||||
file + "\nCreated: " + info.created().toString() + "\nSize: " + qhelpers::formatBytecount(
|
||||
file + "\nCreated: " + info.birthTime().toString() + "\nSize: " + qhelpers::formatBytecount(
|
||||
info.size())
|
||||
);
|
||||
//":/img/icons/target.svg"), name );
|
||||
|
@ -11,7 +11,6 @@
|
||||
XrefsDialog::XrefsDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
addr(0),
|
||||
func_name(QString::null),
|
||||
ui(new Ui::XrefsDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -1224,7 +1224,7 @@ QRectF HexWidget::itemRectangle(uint offset)
|
||||
x -= charWidth / 2;
|
||||
width += charWidth / 2;
|
||||
}
|
||||
if (offset == itemGroupByteLen() - 1) {
|
||||
if (static_cast<int>(offset) == itemGroupByteLen() - 1) {
|
||||
width += charWidth / 2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user