Skip to content

Commit

Permalink
Fix a one-off issue while painting
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia committed Apr 5, 2023
1 parent 5674bf9 commit 93ad736
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/Src/BasicView/AbstractTableView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ void AbstractTableView::paintEvent(QPaintEvent* event)
if(wStr.length())
{
wPainter.setPen(getCellColor(mTableOffset + i, j));
wPainter.drawText(QRect(x + 4, y, getColumnWidth(j) - 4, getRowHeight()), Qt::AlignVCenter | Qt::AlignLeft, wStr);
wPainter.drawText(QRect(x + 4, y, getColumnWidth(j) - 5, getRowHeight()), Qt::AlignVCenter | Qt::AlignLeft, wStr);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/gui/Src/Gui/MainWindow.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "MainWindow.h"
#include "ui_MainWindow.h"
#include <QMutex>
#include <QMessageBox>
#include <QIcon>
#include <QUrl>
Expand Down
1 change: 1 addition & 0 deletions src/gui/Src/Gui/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include <QMainWindow>
#include "Imports.h"

class QMutex;
class QDragEnterEvent;
class QDropEvent;
class CloseDialog;
Expand Down

0 comments on commit 93ad736

Please sign in to comment.