mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 11:25:14 +00:00
minor adjustments for working together with Max after the BIC Monday...
svn path=/trunk/KDE/kdebase/apps/; revision=661899
This commit is contained in:
parent
35ee348c45
commit
3535ec7f7e
|
@ -42,6 +42,7 @@ void TerminalSidebarPage::setUrl(const KUrl& url)
|
||||||
{
|
{
|
||||||
SidebarPage::setUrl(url);
|
SidebarPage::setUrl(url);
|
||||||
// TODO: synchronize terminal
|
// TODO: synchronize terminal
|
||||||
|
// m_terminal->showShellInDir(...);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TerminalSidebarPage::showEvent(QShowEvent* event)
|
void TerminalSidebarPage::showEvent(QShowEvent* event)
|
||||||
|
@ -50,9 +51,13 @@ void TerminalSidebarPage::showEvent(QShowEvent* event)
|
||||||
KLibFactory* factory = KLibLoader::self()->factory("libkonsolepart");
|
KLibFactory* factory = KLibLoader::self()->factory("libkonsolepart");
|
||||||
KParts::Part* part = static_cast<KParts::Part*>(factory->create(this, "KParts::ReadOnlyPart"));
|
KParts::Part* part = static_cast<KParts::Part*>(factory->create(this, "KParts::ReadOnlyPart"));
|
||||||
if (part != 0) {
|
if (part != 0) {
|
||||||
m_terminal = part->widget();
|
m_layout->addWidget(part->widget());
|
||||||
m_layout->addWidget(m_terminal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: port to KDE4
|
||||||
|
//TerminalInterface* m_terminal = static_cast<TerminalInterface*>(part->qt_cast("TerminalInterface"));
|
||||||
|
// like this?
|
||||||
|
//m_terminal = qobject_cast<TerminalInterface*>(part);
|
||||||
}
|
}
|
||||||
SidebarPage::showEvent(event);
|
SidebarPage::showEvent(event);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include <sidebarpage.h>
|
#include <sidebarpage.h>
|
||||||
|
|
||||||
|
class TerminalInterface;
|
||||||
class QVBoxLayout;
|
class QVBoxLayout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -46,7 +47,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QVBoxLayout* m_layout;
|
QVBoxLayout* m_layout;
|
||||||
QWidget* m_terminal;
|
TerminalInterface* m_terminal;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TERMINALSIDEBARPAGE_H
|
#endif // TERMINALSIDEBARPAGE_H
|
||||||
|
|
Loading…
Reference in a new issue