mirror of
https://github.com/x64dbg/x64dbg.git
synced 2024-11-23 04:50:07 +00:00
Merge pull request #3439 from torusrxxx/patch000000e1
Use LayoutDirectionAuto to fix RTL issues
This commit is contained in:
commit
3a9883edb8
@ -197,6 +197,7 @@ void AbstractTableView::paintEvent(QPaintEvent* event)
|
||||
Q_UNUSED(event);
|
||||
QPainter painter(this->viewport());
|
||||
painter.setFont(font());
|
||||
painter.setLayoutDirection(Qt::LayoutDirectionAuto);
|
||||
auto viewableRowsCount = getViewableRowsCount();
|
||||
|
||||
int scrollValue = -horizontalScrollBar()->value();
|
||||
|
@ -1839,6 +1839,7 @@ void Disassembly::paintEvent(QPaintEvent* event)
|
||||
// Delay paint the rich text
|
||||
QPainter painter(this->viewport());
|
||||
painter.setFont(font());
|
||||
painter.setLayoutDirection(Qt::LayoutDirectionAuto);
|
||||
int x = -horizontalScrollBar()->value();
|
||||
|
||||
for(int column = 0; column < (int)mRichText.size(); column++)
|
||||
|
@ -20,6 +20,7 @@ CPUWidget::CPUWidget(Architecture* architecture, QWidget* parent)
|
||||
mArchitecture(architecture)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setLayoutDirection(Qt::LeftToRight);
|
||||
setDefaultDisposition();
|
||||
|
||||
setStyleSheet("AbstractTableView:focus, CPURegistersView:focus, CPUSideBar:focus { border: 1px solid #000000; }");
|
||||
|
@ -813,6 +813,7 @@ void DisassemblerGraphView::paintEvent(QPaintEvent* event)
|
||||
Q_UNUSED(event);
|
||||
QPainter p(this->viewport());
|
||||
p.setFont(this->font());
|
||||
p.setLayoutDirection(Qt::LayoutDirectionAuto);
|
||||
|
||||
int xofs = this->horizontalScrollBar()->value();
|
||||
int yofs = this->verticalScrollBar()->value();
|
||||
|
@ -60,6 +60,7 @@ void DisassemblyPopup::paintEvent(QPaintEvent* event)
|
||||
QRect viewportRect(0, 0, width(), height());
|
||||
QPainter p(this);
|
||||
p.setFont(font());
|
||||
p.setLayoutDirection(Qt::LayoutDirectionAuto);
|
||||
|
||||
// Render background
|
||||
p.fillRect(viewportRect, mDisassemblyBackgroundColor);
|
||||
|
@ -688,6 +688,7 @@ void QHexEditPrivate::paintEvent(QPaintEvent* event)
|
||||
{
|
||||
QPainter painter(this);
|
||||
painter.setFont(font());
|
||||
painter.setLayoutDirection(Qt::LayoutDirectionAuto);
|
||||
|
||||
painter.fillRect(event->rect(), _backgroundColor);
|
||||
|
||||
|
@ -18,6 +18,7 @@ TraceWidget::TraceWidget(Architecture* architecture, const QString & fileName, Q
|
||||
ui(new Ui::TraceWidget)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
setLayoutDirection(Qt::LeftToRight);
|
||||
|
||||
setCursor(QCursor(Qt::CursorShape::WaitCursor));
|
||||
mTraceFile = new TraceFileReader(this);
|
||||
|
Loading…
Reference in New Issue
Block a user