Index: kdgantt1/KDGanttView.cpp
===================================================================
--- kdgantt1/KDGanttView.cpp	(wersja 833180)
+++ kdgantt1/KDGanttView.cpp	(kopia robocza)
@@ -594,7 +594,7 @@
   \sa setUpdateEnabled()
 */
 
-void KDGanttView::show()
+void KDGanttView::showEvent( QShowEvent * event )
 {
   myTimeTable->setBlockUpdating( false );
   if (myCanvasView->horizontalScrollBar()->value() > 0 )
@@ -602,7 +602,7 @@
   else
     myCanvasView->horizontalScrollBar()->setValue(1 );
   myTimeTable->updateMyContent();
-  QWidget::show();
+  KDGanttMinimizeSplitter::showEvent( event );
   myCanvasView->setMyContentsHeight( 0 );
   if ( fCenterTimeLineAfterShow ) {
     fCenterTimeLineAfterShow = false;
@@ -616,18 +616,14 @@
   \return true, if the widget was closed
 */
 
-bool KDGanttView::close ( bool alsoDelete )
+void KDGanttView::closeEvent( QCloseEvent * event )
 {
   //qDebug() << "close ";
-  if ( closingBlocked )
-    return false;
-  if ( QWidget::close()  )
-  {
-    if ( alsoDelete )
-      deleteLater();
-    return true;
+  if ( closingBlocked ) {
+    event->ignore();
+    return;
   }
-  return false;
+  KDGanttMinimizeSplitter::closeEvent( event );
 }
 
 
Index: kdgantt1/KDGanttView.h
===================================================================
--- kdgantt1/KDGanttView.h	(wersja 833180)
+++ kdgantt1/KDGanttView.h	(kopia robocza)
@@ -121,10 +121,6 @@
     KDGanttView( QWidget* parent = 0, const char* name = 0 );
     ~KDGanttView();
 
-
-    // virtual public methods
-    virtual void show();
-    virtual bool close ( bool alsoDelete );
     // Pass-through methods from QListView
     virtual int addColumn( const QString& label, int width = -1 );
     virtual int addColumn( const QIconSet& iconset, const QString& label, int width = -1 );
@@ -504,6 +500,8 @@
     virtual void userReadFromElement( QDomElement& element );
     virtual void userWriteToElement( QDomDocument& doc,
                                      QDomElement& parentElement ) const ;
+    virtual void showEvent ( QShowEvent * event );
+    virtual void closeEvent ( QCloseEvent * event );
 
 private slots:
     void updateGanttContent();
