Version 0.11.0.2

- Qt5 based building errors resolved
This commit is contained in:
Nikolaj Schlej 2013-12-05 11:53:24 +01:00
parent 2fa0bcc998
commit 5e1b476c86
2 changed files with 6 additions and 6 deletions

View file

@ -2243,7 +2243,7 @@ UINT8 FfsEngine::findTextPatternIn(const QModelIndex & index, const QString & pa
if (unicode) if (unicode)
data = QString::fromUtf16((const ushort*) item->body().data(), item->body().length()/2); data = QString::fromUtf16((const ushort*) item->body().data(), item->body().length()/2);
else else
data = QString::fromAscii((const char*) item->body().data(), item->body().length()); data = QString::fromLatin1((const char*) item->body().data(), item->body().length());
int offset = -1; int offset = -1;
while ((offset = data.indexOf(pattern, offset + 1, caseSensitive)) >= 0) { while ((offset = data.indexOf(pattern, offset + 1, caseSensitive)) >= 0) {

View file

@ -85,8 +85,8 @@ void UEFITool::init()
ui->structureTreeView->setModel(ffsEngine->model()); ui->structureTreeView->setModel(ffsEngine->model());
// Connect // Connect
connect(ui->structureTreeView, SIGNAL(collapsed(const QModelIndex &)), this, SLOT(resizeTreeViewColums(void))); //connect(ui->structureTreeView, SIGNAL(collapsed(const QModelIndex &)), this, SLOT(resizeTreeViewColums(void)));
connect(ui->structureTreeView, SIGNAL(expanded(const QModelIndex &)), this, SLOT(resizeTreeViewColums(void))); //connect(ui->structureTreeView, SIGNAL(expanded(const QModelIndex &)), this, SLOT(resizeTreeViewColums(void)));
connect(ui->structureTreeView->selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), connect(ui->structureTreeView->selectionModel(), SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)),
this, SLOT(populateUi(const QModelIndex &))); this, SLOT(populateUi(const QModelIndex &)));
connect(ui->messageListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(scrollTreeView(QListWidgetItem*))); connect(ui->messageListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(scrollTreeView(QListWidgetItem*)));
@ -134,7 +134,7 @@ void UEFITool::search()
int index = searchDialog->ui->dataTypeComboBox->currentIndex(); int index = searchDialog->ui->dataTypeComboBox->currentIndex();
if (index == 0) { // Hex pattern if (index == 0) { // Hex pattern
QByteArray pattern = QByteArray::fromHex(searchDialog->ui->searchEdit->text().toAscii()); QByteArray pattern = QByteArray::fromHex(searchDialog->ui->searchEdit->text().toLatin1());
if (pattern.isEmpty()) if (pattern.isEmpty())
return; return;
ffsEngine->findHexPattern(pattern, searchDialog->ui->dataOnlyRadioButton->isChecked()); ffsEngine->findHexPattern(pattern, searchDialog->ui->dataOnlyRadioButton->isChecked());