Eneboo - Documentación para desarrolladores
|
#include <qttableview.h>
Métodos públicos | |
virtual void | setBackgroundColor (const QColor &) |
virtual void | setPalette (const QPalette &) |
void | show () |
void | repaint (bool erase=TRUE) |
void | repaint (int x, int y, int w, int h, bool erase=TRUE) |
void | repaint (const QRect &, bool erase=TRUE) |
Métodos protegidos | |
QtTableView (QWidget *parent=0, const char *name=0, WFlags f=0) | |
~QtTableView () | |
int | numRows () const |
virtual void | setNumRows (int) |
int | numCols () const |
virtual void | setNumCols (int) |
int | topCell () const |
virtual void | setTopCell (int row) |
int | leftCell () const |
virtual void | setLeftCell (int col) |
virtual void | setTopLeftCell (int row, int col) |
int | xOffset () const |
virtual void | setXOffset (int) |
int | yOffset () const |
virtual void | setYOffset (int) |
virtual void | setOffset (int x, int y, bool updateScrBars=TRUE) |
virtual int | cellWidth (int col) |
virtual int | cellHeight (int row) |
int | cellWidth () const |
int | cellHeight () const |
virtual void | setCellWidth (int) |
virtual void | setCellHeight (int) |
virtual int | totalWidth () |
virtual int | totalHeight () |
uint | tableFlags () const |
bool | testTableFlags (uint f) const |
virtual void | setTableFlags (uint f) |
void | clearTableFlags (uint f=~0) |
bool | autoUpdate () const |
virtual void | setAutoUpdate (bool) |
void | updateCell (int row, int column, bool erase=TRUE) |
QRect | cellUpdateRect () const |
QRect | viewRect () const |
int | lastRowVisible () const |
int | lastColVisible () const |
bool | rowIsVisible (int row) const |
bool | colIsVisible (int col) const |
QScrollBar * | verticalScrollBar () const |
QScrollBar * | horizontalScrollBar () const |
virtual void | paintCell (QPainter *, int row, int col)=0 |
virtual void | setupPainter (QPainter *) |
void | paintEvent (QPaintEvent *) |
void | resizeEvent (QResizeEvent *) |
int | findRow (int yPos) const |
int | findCol (int xPos) const |
bool | rowYPos (int row, int *yPos) const |
bool | colXPos (int col, int *xPos) const |
int | maxXOffset () |
int | maxYOffset () |
int | maxColOffset () |
int | maxRowOffset () |
int | minViewX () const |
int | minViewY () const |
int | maxViewX () const |
int | maxViewY () const |
int | viewWidth () const |
int | viewHeight () const |
void | scroll (int xPixels, int yPixels) |
void | updateScrollBars () |
void | updateTableSize () |
QtTableView::~QtTableView | ( | ) | [protected] |
bool QtTableView::autoUpdate | ( | ) | const [inline, protected] |
Reimplementado en QtMultiLineEdit.
int QtTableView::cellHeight | ( | ) | const [inline, protected] |
QRect QtTableView::cellUpdateRect | ( | ) | const [inline, protected] |
int QtTableView::cellWidth | ( | ) | const [inline, protected] |
void QtTableView::clearTableFlags | ( | uint | f = ~0 | ) | [protected] |
QScrollBar * QtTableView::horizontalScrollBar | ( | ) | const [protected] |
int QtTableView::lastColVisible | ( | ) | const [protected] |
int QtTableView::lastRowVisible | ( | ) | const [protected] |
int QtTableView::leftCell | ( | ) | const [inline, protected] |
int QtTableView::maxColOffset | ( | ) | [protected] |
int QtTableView::maxRowOffset | ( | ) | [protected] |
int QtTableView::maxViewX | ( | ) | const [protected] |
int QtTableView::maxViewY | ( | ) | const [protected] |
int QtTableView::maxXOffset | ( | ) | [protected] |
int QtTableView::maxYOffset | ( | ) | [protected] |
int QtTableView::minViewX | ( | ) | const [protected] |
int QtTableView::minViewY | ( | ) | const [protected] |
int QtTableView::numCols | ( | ) | const [inline, protected] |
int QtTableView::numRows | ( | ) | const [inline, protected] |
Implementado en QtMultiLineEdit.
void QtTableView::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Processes the paint event event.
Paints the frame and the contents.
Opens the painter on the frame and calls drawFrame(), then drawContents().
Reimplementado de QFrame.
Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden.
Erases the widget area (x,y,w,h) if erase is TRUE.
If w is negative, it is replaced with width() - x
. If h is negative, it is replaced width height() - y
.
Use repaint if your widget needs to be repainted immediately, for example when doing some animation. In all other cases, update() is to be preferred. Calling update() many times in a row will generate a single paint event.
Repaints the widget directly by calling paintEvent() immediately, unless updates are disabled or the widget is hidden.
If erase is TRUE, Qt erases the area (x, y, w, h) before the paintEvent() call.
If w is negative, it is replaced with {width() - x}, and if h is negative, it is replaced width
{height() - y}.
We suggest only using repaint() if you need an immediate repaint, for example during animation. In almost all circumstances update() is better, as it permits Qt to optimize for speed and minimize flicker.
Reimplementado de QWidget.
void QtTableView::repaint | ( | bool | erase = TRUE | ) | [inline] |
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
This version repaints the entire widget.
Reimplementado de QWidget.
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta.
Repaints the widget directly by calling paintEvent() directly, unless updates are disabled or the widget is hidden.
Erases the widget region r if erase is TRUE.
Reimplementado de QWidget.
void QtTableView::resizeEvent | ( | QResizeEvent * | e | ) | [protected, virtual] |
Processes the resize event e.
Adjusts the frame rectangle for the resized widget. The frame rectangle is elastic, and the surrounding area is static.
The resulting frame rectangle may be null or invalid. You can use setMinimumSize() to avoid those possibilities.
Nothing is done if the frame rectangle is a null rectangle already.
Reimplementado de QFrame.
Reimplementado en QtMultiLineEdit.
Esta es una función miembro sobrecargada que se suministra por conveniencia. Difiere de la anterior función solamente en los argumentos que acepta. This version of the function scrolls the entire widget and moves the widget's children along with the scroll.
Scrolls the widget including its children dx pixels to the right and dy downwards. Both dx and dy may be negative.
After scrolling, scroll() sends a paint event for the the part that is read but not written. For example, when scrolling 10 pixels rightwards, the leftmost ten pixels of the widget need repainting. The paint event may be delivered immediately or later, depending on some heuristics (note that you might have to force processing of paint events using QApplication::sendPostedEvents() when using scroll() and move() in combination).
Reimplementado de QWidget.
void QtTableView::setAutoUpdate | ( | bool | enable | ) | [protected, virtual] |
Reimplementado en QtMultiLineEdit.
void QtTableView::setBackgroundColor | ( | const QColor & | c | ) | [virtual] |
Use setPaletteBackgroundColor() or setEraseColor() instead.
Reimplementado de QWidget.
void QtTableView::setCellHeight | ( | int | cellHeight | ) | [protected, virtual] |
void QtTableView::setCellWidth | ( | int | cellWidth | ) | [protected, virtual] |
void QtTableView::setLeftCell | ( | int | col | ) | [protected, virtual] |
void QtTableView::setNumCols | ( | int | cols | ) | [protected, virtual] |
void QtTableView::setNumRows | ( | int | rows | ) | [protected, virtual] |
void QtTableView::setTableFlags | ( | uint | f | ) | [protected, virtual] |
void QtTableView::setTopCell | ( | int | row | ) | [protected, virtual] |
void QtTableView::setupPainter | ( | QPainter * | ) | [protected, virtual] |
void QtTableView::setXOffset | ( | int | x | ) | [protected, virtual] |
void QtTableView::setYOffset | ( | int | y | ) | [protected, virtual] |
void QtTableView::show | ( | ) | [virtual] |
Shows the widget and its child widgets.
If its size or position has changed, Qt guarantees that a widget gets move and resize events just before it is shown.
You almost never have to reimplement this function. If you need to change some settings before a widget is shown, use showEvent() instead. If you need to do some delayed initialization use polish().
Reimplementado de QWidget.
uint QtTableView::tableFlags | ( | ) | const [inline, protected] |
int QtTableView::topCell | ( | ) | const [inline, protected] |
int QtTableView::totalHeight | ( | ) | [protected, virtual] |
int QtTableView::totalWidth | ( | ) | [protected, virtual] |
void QtTableView::updateScrollBars | ( | ) | [inline, protected] |
void QtTableView::updateTableSize | ( | ) | [protected] |
QScrollBar * QtTableView::verticalScrollBar | ( | ) | const [protected] |
int QtTableView::viewHeight | ( | ) | const [protected] |
QRect QtTableView::viewRect | ( | ) | const [protected] |
int QtTableView::viewWidth | ( | ) | const [protected] |
int QtTableView::xOffset | ( | ) | const [inline, protected] |
int QtTableView::yOffset | ( | ) | const [inline, protected] |