minor adjustments for working together with Max after the BIC Monday...

svn path=/trunk/KDE/kdebase/apps/; revision=661899
This commit is contained in:
Peter Penz 2007-05-06 22:09:04 +00:00
parent 35ee348c45
commit 3535ec7f7e
2 changed files with 9 additions and 3 deletions

View file

@ -42,6 +42,7 @@ void TerminalSidebarPage::setUrl(const KUrl& url)
{
SidebarPage::setUrl(url);
// TODO: synchronize terminal
// m_terminal->showShellInDir(...);
}
void TerminalSidebarPage::showEvent(QShowEvent* event)
@ -50,9 +51,13 @@ void TerminalSidebarPage::showEvent(QShowEvent* event)
KLibFactory* factory = KLibLoader::self()->factory("libkonsolepart");
KParts::Part* part = static_cast<KParts::Part*>(factory->create(this, "KParts::ReadOnlyPart"));
if (part != 0) {
m_terminal = part->widget();
m_layout->addWidget(m_terminal);
m_layout->addWidget(part->widget());
}
// 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);
}

View file

@ -22,6 +22,7 @@
#include <sidebarpage.h>
class TerminalInterface;
class QVBoxLayout;
/**
@ -46,7 +47,7 @@ protected:
private:
QVBoxLayout* m_layout;
QWidget* m_terminal;
TerminalInterface* m_terminal;
};
#endif // TERMINALSIDEBARPAGE_H