mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Use KPluginFactory instead of deprecated KLibFactory
svn path=/trunk/KDE/kdebase/apps/; revision=706417
This commit is contained in:
parent
f470de267c
commit
db1b90e4fa
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ void TerminalSidebarPage::showEvent(QShowEvent* event)
|
|||
}
|
||||
|
||||
if (m_terminal == 0) {
|
||||
KLibFactory* factory = KLibLoader::self()->factory("libkonsolepart");
|
||||
KParts::Part* part = factory ? static_cast<KParts::Part*>(factory->create(this, "KParts::ReadOnlyPart")) : 0;
|
||||
KPluginFactory* factory = KLibLoader::self()->factory("libkonsolepart");
|
||||
KParts::ReadOnlyPart* part = factory ? (factory->create<KParts::ReadOnlyPart>(this)) : 0;
|
||||
if (part != 0) {
|
||||
m_layout->addWidget(part->widget());
|
||||
m_terminal = qobject_cast<TerminalInterface *>(part);
|
||||
|
|
Loading…
Reference in a new issue