1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
/***************************************************************************
rsplitter.cpp - description
-------------------
begin : Mon Sep 27 1999
copyright : (C) 1999 by Andreas Mustun
email : andrew@ribbonsoft.com
***************************************************************************/
/****************************************************************************
** rsplitter.cpp 1998/08/27 A. Mustun RibbonSoft
**
** Copyright (C) 1998 RibbonSoft. All rights reserved.
**
*****************************************************************************/
#include <qpainter.h>
#include "rsplitter.h"
#include "rmath.h"
// Constructor:
//
RSplitter::RSplitter(QWidget* _parent, const char* _name)
:QSplitter(_parent, _name)
{
setOpaqueResize(false);
}
// Destructor:
//
RSplitter::~RSplitter()
{
}
// move splitter to most right position:
//
void
RSplitter::moveToRight()
{
QValueList<int> vl;
vl += width();
vl += 0;
setSizes(vl);
}
// move splitter to most left position:
//
void
RSplitter::moveToLeft()
{
QValueList<int> vl;
vl += 0;
vl += width();
setSizes(vl);
}
// move splitter to center position:
//
void
RSplitter::moveToCenter()
{
QValueList<int> vl;
vl += width()/2;
vl += width()/2;
setSizes(vl);
}
// EOF
|