Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 4aa040fa authored by Yuri Chornoivan's avatar Yuri Chornoivan

Port away from deprecated setClearButtonShown() and setupBindings()

parent 030b9b99
......@@ -59,7 +59,7 @@ SettingsBase::SettingsBase( QWidget * parent )
setWindowFlags( windowFlags() | Qt::WindowContextHelpButtonHint );
// Initialise search
searchText = new KLineEdit( this );
searchText->setClearButtonShown( true );
searchText->setClearButtonEnabled( true );
searchText->setPlaceholderText( i18nc( "Search through a list of control modules", "Search" ) );
searchText->setCompletionMode( KCompletion::CompletionPopup );
......
......@@ -479,7 +479,8 @@ void SidebarMode::initWidget()
d->package.setPath(QStringLiteral("org.kde.systemsettings.sidebar"));
d->kdeclarative.setDeclarativeEngine(d->quickWidget->engine());
d->kdeclarative.setupBindings();
d->kdeclarative.setupEngine(d->quickWidget->engine());
d->kdeclarative.setupContext();
d->quickWidget->setSource(QUrl::fromLocalFile(d->package.filePath("mainscript")));
......
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