mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
`tr` evaluates at the early start even before `QCoreApplication` is instantiated and appropriate translators are set
related with commit a92fc9b
This commit is contained in:
parent
350375afce
commit
3fb67c9eac
@ -1,7 +1,6 @@
|
|||||||
#include "MainWindow.h"
|
#include "MainWindow.h"
|
||||||
#include "CutterSeekableWidget.h"
|
#include "CutterSeekableWidget.h"
|
||||||
|
|
||||||
const QString CutterSeekableWidget::UNSYNCED_TEXT = tr(" (unsynced)");
|
|
||||||
|
|
||||||
CutterSeekableWidget::CutterSeekableWidget(QObject *parent)
|
CutterSeekableWidget::CutterSeekableWidget(QObject *parent)
|
||||||
:
|
:
|
||||||
|
@ -20,8 +20,6 @@ public:
|
|||||||
void setIndependentOffset(RVA addr);
|
void setIndependentOffset(RVA addr);
|
||||||
void onSeekChanged(RVA addr);
|
void onSeekChanged(RVA addr);
|
||||||
|
|
||||||
static const QString UNSYNCED_TEXT;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RVA independentOffset = RVA_INVALID;
|
RVA independentOffset = RVA_INVALID;
|
||||||
RVA prevIdenpendentOffset = RVA_INVALID;
|
RVA prevIdenpendentOffset = RVA_INVALID;
|
||||||
|
@ -144,7 +144,7 @@ void DisassemblerGraphView::toggleSync()
|
|||||||
if (seekable->getSyncWithCore()) {
|
if (seekable->getSyncWithCore()) {
|
||||||
parentWidget()->setWindowTitle(windowTitle);
|
parentWidget()->setWindowTitle(windowTitle);
|
||||||
} else {
|
} else {
|
||||||
parentWidget()->setWindowTitle(windowTitle + CutterSeekableWidget::UNSYNCED_TEXT);
|
parentWidget()->setWindowTitle(windowTitle + CutterSeekableWidget::tr(" (unsynced)"));
|
||||||
seekable->setIndependentOffset(Core()->getOffset());
|
seekable->setIndependentOffset(Core()->getOffset());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -210,7 +210,7 @@ void DisassemblerGraphView::loadCurrentGraph()
|
|||||||
windowTitle += " (" + funcName + ")";
|
windowTitle += " (" + funcName + ")";
|
||||||
}
|
}
|
||||||
if (!seekable->getSyncWithCore()) {
|
if (!seekable->getSyncWithCore()) {
|
||||||
parentWidget()->setWindowTitle(windowTitle + CutterSeekableWidget::UNSYNCED_TEXT);
|
parentWidget()->setWindowTitle(windowTitle + CutterSeekableWidget::tr(" (unsynced)"));
|
||||||
} else {
|
} else {
|
||||||
parentWidget()->setWindowTitle(windowTitle);
|
parentWidget()->setWindowTitle(windowTitle);
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,7 @@ void DisassemblyWidget::toggleSync()
|
|||||||
if (seekable->getSyncWithCore()) {
|
if (seekable->getSyncWithCore()) {
|
||||||
setWindowTitle(windowTitle);
|
setWindowTitle(windowTitle);
|
||||||
} else {
|
} else {
|
||||||
setWindowTitle(windowTitle + CutterSeekableWidget::UNSYNCED_TEXT);
|
setWindowTitle(windowTitle + CutterSeekableWidget::tr(" (unsynced)"));
|
||||||
seekable->setIndependentOffset(Core()->getOffset());
|
seekable->setIndependentOffset(Core()->getOffset());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -643,7 +643,7 @@ void HexdumpWidget::toggleSync()
|
|||||||
if (seekable->getSyncWithCore()) {
|
if (seekable->getSyncWithCore()) {
|
||||||
setWindowTitle(windowTitle);
|
setWindowTitle(windowTitle);
|
||||||
} else {
|
} else {
|
||||||
setWindowTitle(windowTitle + CutterSeekableWidget::UNSYNCED_TEXT);
|
setWindowTitle(windowTitle + CutterSeekableWidget::tr(" (unsynced)"));
|
||||||
seekable->setIndependentOffset(Core()->getOffset());
|
seekable->setIndependentOffset(Core()->getOffset());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user