diff --git a/syncthingwidgets/misc/otherdialogs.cpp b/syncthingwidgets/misc/otherdialogs.cpp index 9cd086d7..8f19821f 100644 --- a/syncthingwidgets/misc/otherdialogs.cpp +++ b/syncthingwidgets/misc/otherdialogs.cpp @@ -107,7 +107,7 @@ QDialog *browseRemoteFilesDialog(Data::SyncthingConnection &connection, const Da const auto actionNames = model->data(index, SyncthingFileModel::ActionNames).toStringList(); const auto actionIcons = model->data(index, SyncthingFileModel::ActionIcons).toList(); auto menu = QMenu(view); - auto actionIndex = qsizetype(); + auto actionIndex = QStringList::size_type(); for (const auto &action : actions) { QObject::connect(menu.addAction(actionIndex < actionIcons.size() ? actionIcons.at(actionIndex).value() : QIcon(), actionIndex < actionNames.size() ? actionNames.at(actionIndex) : action), diff --git a/syncthingwidgets/webview/webpage.cpp b/syncthingwidgets/webview/webpage.cpp index 05d15e32..1f3dced3 100644 --- a/syncthingwidgets/webview/webpage.cpp +++ b/syncthingwidgets/webview/webpage.cpp @@ -224,7 +224,7 @@ void WebPage::styleScrollBars(bool immediate) // determine colors from palette const auto palette = m_view->palette(); - const auto alphaF = 0.75f; + const auto alphaF = static_cast(0.75); auto highlightColor = palette.color(QPalette::Active, QPalette::Highlight); auto highlightColorInactive = QColor::fromHsv(highlightColor.hue(), 0, highlightColor.value()); highlightColor.setAlphaF(alphaF);