Update of /cvsroot/smartwin/SmartWin/tests/WidgetSplitter
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15897/tests/WidgetSplitter
Modified Files:
Main.cpp
Log Message:
Change to getBounds( false ) so we get screen position as this program expects. This goes to show that changing APIs should be done with caution, and only after regression testing with all the tests.
Index: Main.cpp
===================================================================
RCS file: /cvsroot/smartwin/SmartWin/tests/WidgetSplitter/Main.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Main.cpp 23 Jun 2006 22:38:14 -0000 1.15
+++ Main.cpp 17 Dec 2006 16:20:24 -0000 1.16
@@ -102,7 +102,7 @@
void splitterMoved( WhichSplitter * split, const SmartWin::Point & pt = SmartWin::Point() )
{
- SmartWin::Rectangle rectSplitter = splitter->getBounds();
+ SmartWin::Rectangle rectSplitter = splitter->getBounds( false );
SmartWin::Rectangle rectWindow = FactoryType::getBounds();
SmartWin::Rectangle leftRc = rectWindow;
leftRc.size.x = rectSplitter.pos.x - rectWindow.pos.x - m_BorderSize;
@@ -126,7 +126,7 @@
void windowSized( const SmartWin::WidgetSizedEventResult & newSize )
{
- SmartWin::Rectangle rectSplitter = splitter->getBounds();
+ SmartWin::Rectangle rectSplitter = splitter->getBounds( false );
SmartWin::Rectangle rectWindow = FactoryType::getBounds();
rectSplitter.pos.x -= ( rectWindow.pos.x + m_BorderSize );
@@ -156,7 +156,7 @@
{
WhichSplitter * split2 = dynamic_cast< WhichSplitter * >( split );
split2->setWidth( ( rand()%40 ) + 10 );
- SmartWin::Rectangle rectSplitter = split2->getBounds();
+ SmartWin::Rectangle rectSplitter = split2->getBounds( false );
SmartWin::Rectangle rectWindow = FactoryType::getBounds();
rectSplitter.pos.x -= (rectWindow.pos.x + 4 /*Border*/);
|