-using namespace std;
+/////////////////////////////////////////////////////////////////////////////
+// Module : PatchQt
+// File : qsplitterP.cxx
+// Description : the patch for Qt's QSplitter class (qsplitter.cpp)
+/////////////////////////////////////////////////////////////////////////////
+
/****************************************************************************
** $Id$
**
** not clear to you.
**
**********************************************************************/
+
#include "qsplitterP.h"
#ifndef QT_NO_COMPLEXWIDGETS
#include <qobjectlist.h>
#include <qapplication.h> //sendPostedEvents
+using namespace std;
#define SPLITTER_ICON_WIDTH 10
#define SPLITTER_ICON_HEIGHT 12
left->setCursor( arrowCursor ); right->setCursor( arrowCursor );
unleft->setCursor( arrowCursor ); unright->setCursor( arrowCursor );
-// VSR 21/11/02 -> ================================
- setMinimumSize( 1, 1 );
-// VSR 21/11/02 <- ================================
-
connect(left, SIGNAL(clicked()), this, SLOT(onBeforeCompress()));
connect(right, SIGNAL(clicked()), this, SLOT(onAfterCompress()));
connect(unleft, SIGNAL(clicked()), this, SLOT(onBeforeUnCompress()));
}
} else {
int right = pick( w->geometry().bottomRight() );
-
- int dd = right - pos + 1;
+ int ddd = pick( QSize(contentsRect().width(), contentsRect().height() ) ) - pos;
+ int dd = QMIN(right - pos + 1, ddd);
dd = QMAX( pick(minSize(w)), QMIN(dd, pick(maxSize(w))));
int newRight = pos+dd-1;
setG( w, pos, dd );