diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp index 8757aa2f4..80b6a5011 100644 --- a/src/EditProfileDialog.cpp +++ b/src/EditProfileDialog.cpp @@ -1110,7 +1110,7 @@ void ColorSchemeViewDelegate::paint(QPainter* painter, const QStyleOptionViewIte gradient.setColorAt( 0 , QColor(255,255,255,90) ); gradient.setColorAt( 1 , Qt::transparent ); painter->setBrush(gradient); - painter->drawRoundRect( backgroundRect , 4 , 30 ); + painter->drawRoundedRect( backgroundRect , 4.0 , 30.0 ); //const bool isChecked = index.data(Qt::CheckStateRole) == Qt::Checked; const bool isSelected = option.state & QStyle::State_Selected; diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp index 0f02f0864..83f0a01b7 100644 --- a/src/TerminalDisplay.cpp +++ b/src/TerminalDisplay.cpp @@ -1337,7 +1337,7 @@ void TerminalDisplay::drawContents(QPainter &paint, const QRect &rect) //transformation has been applied to the painter. this ensures that //painting does actually start from textArea.topLeft() //(instead of textArea.topLeft() * painter-scale) - QMatrix inverted = paint.matrix().inverted(); + QTransform inverted = paint.worldTransform().inverted(); textArea.moveTopLeft( inverted.map(textArea.topLeft()) ); //paint text fragment