mirror of
https://github.com/hasherezade/pe-bear.git
synced 2026-10-11 21:49:54 +00:00
update
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"ranges": "cpp"
|
||||
}
|
||||
}
|
||||
@@ -250,7 +250,7 @@ void DisasmTreeView::copySelected()
|
||||
}
|
||||
QMimeData *mimeData = new QMimeData;
|
||||
mimeData->setText(getSelectedText("\t", "\n"));
|
||||
mimeData->setData(tr("application/octet-stream"), bytes);
|
||||
mimeData->setData("application/octet-stream", bytes);
|
||||
QApplication::clipboard()->setMimeData(mimeData);
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -271,11 +271,11 @@ void HexTableView::copySelected()
|
||||
//mimeData->setText(getSelectedText(separator, separator));
|
||||
QString text = getSelectedText(separator, separator);
|
||||
#if QT_VERSION >= 0x050000
|
||||
mimeData->setData(tr("text/plain"), text.toLatin1());
|
||||
mimeData->setData("text/plain", text.toLatin1());
|
||||
#else
|
||||
mimeData->setData(tr("text/plain"), text.toAscii());
|
||||
mimeData->setData("text/plain", text.toAscii());
|
||||
#endif
|
||||
mimeData->setData(tr("application/octet-stream"), bytes);
|
||||
mimeData->setData("application/octet-stream", bytes);
|
||||
QApplication::clipboard()->setMimeData(mimeData);
|
||||
}
|
||||
|
||||
|
||||
@@ -146,4 +146,5 @@ void SectionAddWindow::onOkClicked()
|
||||
|
||||
QMessageBox::information(this, tr("Success!"), tr("Section ")+ name + tr(" added!"));
|
||||
this->hide();
|
||||
|
||||
}
|
||||
@@ -12,7 +12,7 @@ void DirEdit::validateDir(const QString &input)
|
||||
{
|
||||
QDir dir(input);
|
||||
if (dir.exists() == false) {
|
||||
this->setStyleSheet(tr("border: 2px solid red;"));
|
||||
this->setStyleSheet("border: 2px solid red;");
|
||||
} else {
|
||||
this->setStyleSheet("");
|
||||
}
|
||||
|
||||
+2
-5
@@ -34,11 +34,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
QApplication app(argc, argv);
|
||||
// Load language file
|
||||
QApplication a(argc, argv);
|
||||
QTranslator translator;
|
||||
if (translator.load("Language\\PELanguage.qm"))
|
||||
{
|
||||
a.installTranslator(&translator);
|
||||
if (translator.load("Language\\PELanguage.qm")) {
|
||||
app.installTranslator(&translator);
|
||||
}
|
||||
// workaround for a bug in Qt (not setting default font properly)
|
||||
QApplication::setFont(QApplication::font("QMessageBox"));
|
||||
|
||||
Reference in New Issue
Block a user