Skip to content

Port to newer KPasswordLineEdit api

Carl Schwan requested to merge work/carl/kpasswordwidget-change into master

See frameworks/kwidgetsaddons!234 (merged)

Done with find -iname '*.cpp' -exec sed -i 's/^\(.*\)->setRevealPasswordAvailable(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")));/#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)\n\0\n#else\n\1->setRevealPasswordMode(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")) ? KPasswordLineEdit::RevealPasswordMode::Normal : KPasswordLineEdit::RevealPasswordMode::Never);\n#endif;/g' {} \;

Edited by Carl Schwan

Merge request reports

Loading