Commit 9e25784d authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

A few more c style casts -> static_casts

parent b8c7320e
......@@ -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<int>(heightForWidth));
}
#include "EditProfileDialog.moc"
......@@ -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<QKeyEvent*>(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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment