viewertexteditor: shifted code to class [skip ci]

Minor code organization
This commit is contained in:
itsmattkc
2022-03-30 20:36:24 -07:00
parent 1f70c8f18d
commit 49e622ac0f
2 changed files with 3 additions and 3 deletions
-2
View File
@@ -344,8 +344,6 @@ void ViewerDisplayWidget::mouseDoubleClickEvent(QMouseEvent *event)
text_edit->setGeometry(transformed_geom.toRect());
ViewerTextEditorToolBar *toolbar = new ViewerTextEditorToolBar(this);
toolbar->setWindowFlags(Qt::Tool | Qt::FramelessWindowHint);
toolbar->resize(toolbar->sizeHint());
QPoint pos = mapToGlobal(QPoint(transformed_geom.x(), transformed_geom.y() - toolbar->height()));
for (QScreen *screen : qApp->screens()) {