mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 09:03:51 -05:00
Replaced deprecated QMatrix by QTransform
This commit is contained in:
parent
71aaa25e69
commit
15437c0d2d
1 changed files with 3 additions and 3 deletions
|
|
@ -284,10 +284,10 @@ void RSTextBrowser::contextMenuEvent(QContextMenuEvent *event)
|
||||||
|
|
||||||
QMenu *RSTextBrowser::createStandardContextMenuFromPoint(const QPoint &widgetPos)
|
QMenu *RSTextBrowser::createStandardContextMenuFromPoint(const QPoint &widgetPos)
|
||||||
{
|
{
|
||||||
QMatrix matrix;
|
QTransform transform;
|
||||||
matrix.translate(horizontalScrollBar()->value(), verticalScrollBar()->value());
|
transform.translate(horizontalScrollBar()->value(), verticalScrollBar()->value());
|
||||||
|
|
||||||
QMenu *menu = QTextBrowser::createStandardContextMenu(matrix.map(widgetPos));
|
QMenu *menu = QTextBrowser::createStandardContextMenu(transform.map(widgetPos));
|
||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
QAction *a = menu->addAction(FilesDefs::getIconFromQtResourcePath("://icons/textedit/code.png"), tr("View &Source"), this, SLOT(viewSource()));
|
QAction *a = menu->addAction(FilesDefs::getIconFromQtResourcePath("://icons/textedit/code.png"), tr("View &Source"), this, SLOT(viewSource()));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue