improved chatwidgetview syntax

This commit is contained in:
fourtf 2017-04-20 21:34:51 +02:00
parent b6d0776917
commit 980c0b2a93
2 changed files with 7 additions and 7 deletions

View file

@ -219,7 +219,7 @@ void ChatWidgetView::paintEvent(QPaintEvent *event)
const QPixmap *image = lli.getPixmap();
if (image != NULL) {
if (image != nullptr) {
painter.drawPixmap(QRect(wordPart.getX(), wordPart.getY(),
wordPart.getWidth(), wordPart.getHeight()),
*image);

View file

@ -29,14 +29,14 @@ public:
ScrollBar *getScrollbar();
protected:
void resizeEvent(QResizeEvent *);
void resizeEvent(QResizeEvent *) override;
void paintEvent(QPaintEvent *);
void wheelEvent(QWheelEvent *event);
void paintEvent(QPaintEvent *) override;
void wheelEvent(QWheelEvent *event) override;
void mouseMoveEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
bool tryGetMessageAt(QPoint p, std::shared_ptr<messages::MessageRef> &message,
QPoint &relativePos);