GUI: AStyle
This commit is contained in:
parent
8db9dcdd03
commit
e671200cee
|
@ -353,7 +353,7 @@ void DisassemblerGraphView::paintEvent(QPaintEvent* event)
|
|||
int yofs = this->verticalScrollBar()->value();
|
||||
|
||||
//Render background
|
||||
QRect viewportRect(this->viewport()->rect().topLeft(), this->viewport()->rect().bottomRight() - QPoint(1,1));
|
||||
QRect viewportRect(this->viewport()->rect().topLeft(), this->viewport()->rect().bottomRight() - QPoint(1, 1));
|
||||
p.setBrush(QBrush(backgroundColor));
|
||||
p.drawRect(viewportRect);
|
||||
p.setBrush(Qt::black);
|
||||
|
@ -370,11 +370,11 @@ void DisassemblerGraphView::paintEvent(QPaintEvent* event)
|
|||
else
|
||||
paintNormal(p, viewportRect, xofs, yofs);
|
||||
|
||||
if (saveGraph)
|
||||
if(saveGraph)
|
||||
{
|
||||
saveGraph = false;
|
||||
QString path = QFileDialog::getSaveFileName(this, tr("Save as image"), "", tr("PNG file (*.png);;JPG file (*.jpg)"));
|
||||
if (path.isEmpty())
|
||||
if(path.isEmpty())
|
||||
return;
|
||||
QImage img(this->size(), QImage::Format_ARGB32);
|
||||
QPainter painter(&img);
|
||||
|
|
|
@ -1211,7 +1211,7 @@ void MainWindow::runSelection()
|
|||
if(!DbgIsDebugging())
|
||||
return;
|
||||
|
||||
if (mGraphView->hasFocus())
|
||||
if(mGraphView->hasFocus())
|
||||
command = "bp " + ToPtrString(mGraphView->get_cursor_pos()) + ", ss";
|
||||
else
|
||||
command = "bp " + ToPtrString(mCpuWidget->getDisasmWidget()->getSelectedVa()) + ", ss";
|
||||
|
|
Loading…
Reference in New Issue