diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp index 6ae3da067..00066e11b 100644 --- a/src/EditProfileDialog.cpp +++ b/src/EditProfileDialog.cpp @@ -1353,7 +1353,7 @@ QSize ColorSchemeViewDelegate::sizeHint(const QStyleOptionViewItem& option, qreal heightForWidth = (colorWidth * 2) + option.fontMetrics.height() + margin; // temporary - return QSize(width, (int)heightForWidth); + return QSize(width, static_cast(heightForWidth)); } #include "EditProfileDialog.moc" diff --git a/src/KeyBindingEditor.cpp b/src/KeyBindingEditor.cpp index 1f23fa38f..48fd6d50b 100644 --- a/src/KeyBindingEditor.cpp +++ b/src/KeyBindingEditor.cpp @@ -114,7 +114,7 @@ bool KeyBindingEditor::eventFilter(QObject* watched , QEvent* event) { if (watched == _ui->testAreaInputEdit) { if (event->type() == QEvent::KeyPress) { - QKeyEvent* keyEvent = (QKeyEvent*)event; + QKeyEvent* keyEvent = static_cast(event); // The state here is currently set to the state that a newly started // terminal in Konsole will be in ( which is also the same as the