From 2971360d7e8201b267020a0a3b7bcb6b06851488 Mon Sep 17 00:00:00 2001 From: johanneshilden Date: Fri, 6 Oct 2017 08:03:01 +0300 Subject: [PATCH] Fix #16 --- components/qtmaterialtextfield.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/qtmaterialtextfield.cpp b/components/qtmaterialtextfield.cpp index 97480c9..ee877da 100644 --- a/components/qtmaterialtextfield.cpp +++ b/components/qtmaterialtextfield.cpp @@ -301,7 +301,7 @@ void QtMaterialTextField::paintEvent(QPaintEvent *event) pen.setColor(underlineColor()); painter.setPen(pen); painter.setOpacity(1); - painter.drawLine(2.5, y, wd, y); + painter.drawLine(QLineF(2.5, y, wd, y)); QBrush brush; brush.setStyle(Qt::SolidPattern);