%p is only meant for pointers, use %x for hex (#34)

and fix initialization order while at it
This commit is contained in:
Tim Siebels 2017-10-02 18:26:07 +02:00 committed by xarkes
parent bafad96bf3
commit 2ba3d923a2
2 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ public slots:
void fillData();
private:
MainWindow *main;
QGraphicsView *codeGraphic;
MainWindow *main;
};
#endif // GRAPHICSBAR_H

View File

@ -157,7 +157,7 @@ void DisassemblerGraphView::copy_address()
QClipboard* clipboard = QApplication::clipboard();
clipboard->clear();
QMimeData mime;
mime.setText(QString().sprintf("0x%p", this->get_cursor_pos()));
mime.setText(QString().sprintf("0x%llx", this->get_cursor_pos()));
clipboard->setMimeData(&mime);
}