svn path=/trunk/KDE/kdebase/apps/; revision=665855
void InfoSidebarPage::showEvent(QShowEvent* event)
{
SidebarPage::showEvent(event);
+ if (event->spontaneous()) {
+ return;
+ }
showItemInfo();
}
#include <kparts/part.h>
#include <kshell.h>
-#include <QtGui/QBoxLayout>
+#include <QBoxLayout>
+#include <QShowEvent>
TerminalSidebarPage::TerminalSidebarPage(QWidget* parent) :
SidebarPage(parent),
void TerminalSidebarPage::showEvent(QShowEvent* event)
{
+ if (event->spontaneous()) {
+ SidebarPage::showEvent(event);
+ return;
+ }
+
if (m_terminal == 0) {
KLibFactory* factory = KLibLoader::self()->factory("libkonsolepart");
KParts::Part* part = factory ? static_cast<KParts::Part*>(factory->create(this, "KParts::ReadOnlyPart")) : 0;
void TreeViewSidebarPage::showEvent(QShowEvent* event)
{
+ if (event->spontaneous()) {
+ SidebarPage::showEvent(event);
+ return;
+ }
+
if (m_dirLister == 0) {
// Postpone the creating of the dir lister to the first show event.
// This assures that no performance and memory overhead is given when the TreeView is not