#include <qdbtsection.h>
Inheritance diagram for QdbtSection:
Signals | |
void | clicked (QdbtSection *) |
void | setResizable (QdbtSection *, bool) |
Public Methods | |
QdbtSection (QdbtBaseTabular *parent=0, const char *name=0) | |
QdbtSection (QString text, QdbtBaseTabular *parent=0, const char *name=0) | |
~QdbtSection () | |
virtual int | widthHint () const |
virtual int | heightHint () const |
void | setAlignment (int alignment) |
int | alignment () const |
void | setResizable (bool enable) |
bool | isResizable () const |
setToggleButton (bool) | |
setToggleButton () determines whether the button is a toggle | |
autoDefault () const | |
setAutoDefault (bool autoDef) | |
isDefault () const | |
setDefault (bool def) | |
setPopup (QPopupMenu *popup) | |
popup () const | |
setIconSet (const QIconSet &) | |
iconSet () const | |
setFlat (bool) | |
isFlat () const | |
setOn (bool) | |
toggle () | |
toggle () | |
text () const | |
text () const | |
setText (const QString &text) | |
pixmap () const | |
setPixmap (const QPixmap &pixmap) | |
accel () const | |
setAccel (int key) | |
isToggleButton () const | |
setDown (bool enable) | |
isDown () const | |
isDown () determines whether the button is | |
isOn () const | |
isOn () determines whether the button is | |
autoRepeat () const | |
isExclusiveToggle () const | |
group () const | |
setAutoRepeat (bool enable) | |
setAutoRepeat () determines whether the button will auto-repeat | |
pressed () | |
released () | |
clicked () | |
toggled (bool on) | |
stateChanged (int state) | |
ToggleType {SingleShot, Toggle, Tristate} | |
toggleType () const | |
ToggleState {Off, NoChange, On} | |
state () const | |
animateClick () | |
setToggleType (ToggleType) | |
setState (ToggleState) | |
hitButton (const QPoint &pos) const | |
paintEvent (QPaintEvent *) | |
isEnabled () determines whether the button can be pressed by the | |
isEnabled () const | |
winId () const | |
style () const | |
setStyle (QStyle *) | |
isTopLevel () const | |
isModal () const | |
isPopup () const | |
isDesktop () const | |
isEnabledTo (QWidget *) const | |
frameGeometry () const | |
geometry () const | |
x () const | |
y () const | |
pos () const | |
frameSize () const | |
size () const | |
width () const | |
height () const | |
rect () const | |
childrenRect () const | |
childrenRegion () const | |
minimumSize () const | |
maximumSize () const | |
minimumWidth () const | |
minimumHeight () const | |
maximumWidth () const | |
maximumHeight () const | |
setMinimumSize (const QSize &) | |
setMinimumSize (int minw, int minh) | |
setMaximumSize (const QSize &) | |
setMaximumSize (int maxw, int maxh) | |
setMinimumWidth (int minw) | |
setMinimumHeight (int minh) | |
setMaximumWidth (int maxw) | |
setMaximumHeight (int maxh) | |
sizeIncrement () const | |
setSizeIncrement (const QSize &) | |
setSizeIncrement (int w, int h) | |
baseSize () const | |
setBaseSize (const QSize &) | |
setBaseSize (int basew, int baseh) | |
setFixedSize (const QSize &) | |
setFixedSize (int w, int h) | |
setFixedWidth (int w) | |
setFixedHeight (int h) | |
mapToGlobal (const QPoint &) const | |
mapFromGlobal (const QPoint &) const | |
mapToParent (const QPoint &) const | |
mapFromParent (const QPoint &) const | |
mapTo (QWidget *, const QPoint &) const | |
mapFrom (QWidget *, const QPoint &) const | |
topLevelWidget () const | |
BackgroundMode {FixedColor, FixedPixmap, NoBackground, PaletteForeground, PaletteButton, PaletteLight, PaletteMidlight, PaletteDark, PaletteMid, PaletteText, PaletteBrightText, PaletteBase, PaletteBackground, PaletteShadow, PaletteHighlight, PaletteHighlightedText, PaletteButtonText, X11ParentRelative} | |
backgroundMode () const | |
setBackgroundMode (BackgroundMode) | |
backgroundColor () const | |
foregroundColor () const | |
setBackgroundColor (const QColor &) | |
backgroundPixmap () const | |
setBackgroundPixmap (const QPixmap &) | |
colorGroup () const | |
palette () const | |
ownPalette () const | |
setPalette (const QPalette &) | |
unsetPalette () | |
font () const | |
ownFont () const | |
setFont (const QFont &) | |
unsetFont () | |
fontMetrics () const | |
fontInfo () const | |
PropagationMode {NoChildren, AllChildren, SameFont, SamePalette=SameFont} | |
cursor () const | |
ownCursor () const | |
setCursor (const QCursor &) | |
unsetCursor () | |
caption () const | |
icon () const | |
iconText () const | |
hasMouseTracking () const | |
setMask (const QBitmap &) | |
setMask (const QRegion &) | |
clearMask () | |
FocusPolicy {NoFocus=0, TabFocus=0x1, ClickFocus=0x2, StrongFocus=0x3, WheelFocus=0x7} | |
isActiveWindow () const | |
setActiveWindow () | |
isFocusEnabled () const | |
focusPolicy () const | |
setFocusPolicy (FocusPolicy) | |
hasFocus () const | |
setFocusProxy (QWidget *) | |
focusProxy () const | |
grabMouse () | |
grabMouse (const QCursor &) | |
releaseMouse () | |
grabKeyboard () | |
releaseKeyboard () | |
isUpdatesEnabled () const | |
close (bool alsoDelete) | |
close () | |
isVisible () const | |
isVisibleTo (QWidget *) const | |
visibleRect () const | |
isHidden () const | |
isMinimized () const | |
isMaximized () const | |
sizeHint () const | |
minimumSizeHint () const | |
sizePolicy () const | |
setSizePolicy (QSizePolicy) | |
heightForWidth (int) const | |
adjustSize () | |
layout () const | |
updateGeometry () | |
reparent (QWidget *parent, WFlags, const QPoint &, bool showIt=FALSE) | |
reparent (QWidget *parent, const QPoint &, bool showIt=FALSE) | |
erase () | |
erase (int x, int y, int w, int h) | |
erase (const QRect &) | |
erase (const QRegion &) | |
scroll (int dx, int dy) | |
scroll (int dx, int dy, const QRect &) | |
drawText (int x, int y, const QString &) | |
drawText (const QPoint &, const QString &) | |
focusWidget () const | |
microFocusHint () const | |
acceptDrops () const | |
setAcceptDrops (bool on) | |
setAutoMask (bool) | |
autoMask () const | |
BackgroundOrigin {WidgetOrigin, ParentOrigin} | |
setBackgroundOrigin (BackgroundOrigin) | |
backgroundOrigin () const | |
customWhatsThis () const | |
parentWidget () const | |
testWFlags (WFlags f) const | |
setEnabled (bool) | |
setDisabled (bool) | |
setCaption (const QString &) | |
setIcon (const QPixmap &) | |
setIconText (const QString &) | |
setMouseTracking (bool enable) | |
setFocus () | |
clearFocus () | |
setUpdatesEnabled (bool enable) | |
update () | |
update (int x, int y, int w, int h) | |
update (const QRect &) | |
repaint () | |
repaint (bool erase) | |
repaint (int x, int y, int w, int h, bool erase=TRUE) | |
repaint (const QRect &, bool erase=TRUE) | |
repaint (const QRegion &, bool erase=TRUE) | |
show () | |
hide () | |
showMinimized () | |
showMaximized () | |
showFullScreen () | |
showNormal () | |
polish () | |
constPolish () const | |
raise () | |
lower () | |
stackUnder (QWidget *) | |
move (int x, int y) | |
move (const QPoint &) | |
resize (int w, int h) | |
resize (const QSize &) | |
setGeometry (int x, int y, int w, int h) | |
setGeometry (const QRect &) | |
setTabOrder (QWidget *, QWidget *) | |
mouseGrabber () | |
keyboardGrabber () | |
find (WId) | |
event (QEvent *) | |
mouseDoubleClickEvent (QMouseEvent *) | |
wheelEvent (QWheelEvent *) | |
keyReleaseEvent (QKeyEvent *) | |
focusInEvent (QFocusEvent *) | |
focusOutEvent (QFocusEvent *) | |
enterEvent (QEvent *) | |
leaveEvent (QEvent *) | |
moveEvent (QMoveEvent *) | |
closeEvent (QCloseEvent *) | |
dragEnterEvent (QDragEnterEvent *) | |
dragMoveEvent (QDragMoveEvent *) | |
dragLeaveEvent (QDragLeaveEvent *) | |
dropEvent (QDropEvent *) | |
showEvent (QShowEvent *) | |
hideEvent (QHideEvent *) | |
customEvent (QCustomEvent *) | |
updateMask () | |
styleChange (QStyle &) | |
enabledChange (bool) | |
backgroundColorChange (const QColor &) | |
backgroundPixmapChange (const QPixmap &) | |
paletteChange (const QPalette &) | |
fontChange (const QFont &) | |
metric (int) const | |
create (WId=0, bool initializeWindow=TRUE, bool destroyOldWindow=TRUE) | |
destroy (bool destroyWindow=TRUE, bool destroySubWindows=TRUE) | |
getWFlags () const | |
setWFlags (WFlags) | |
clearWFlags (WFlags n) | |
focusNextPrevChild (bool next) | |
focusData () | |
setKeyCompression (bool) | |
setMicroFocusHint (int x, int y, int w, int h, bool text=TRUE) | |
eventFilter (QObject *, QEvent *) | |
metaObject () const | |
className () const | |
isA (const char *) const | |
inherits (const char *) const | |
name () const | |
name (const char *defaultName) const | |
setName (const char *name) | |
isWidgetType () const | |
highPriority () const | |
signalsBlocked () const | |
blockSignals (bool b) | |
startTimer (int interval) | |
killTimer (int id) | |
killTimers () | |
child (const char *name, const char *type=0) | |
children () const | |
queryList (const char *inheritsClass=0, const char *objName=0, bool regexpMatch=TRUE, bool recursiveSearch=TRUE) | |
insertChild (QObject *) | |
removeChild (QObject *) | |
installEventFilter (const QObject *) | |
removeEventFilter (const QObject *) | |
connect (const QObject *sender, const char *signal, const char *member) const | |
connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) | |
disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) | |
disconnect (const QObject *receiver, const char *member=0) | |
disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) | |
dumpObjectTree () | |
dumpObjectInfo () | |
setProperty (const char *name, const QVariant &value) | |
property (const char *name) const | |
parent () const | |
destroyed () | |
tr (const char *) | |
tr (const char *, const char *) | |
objectTrees () | |
receivers (const char *signal) const | |
activate_signal (const char *signal, short) | |
activate_signal (const char *signal, int) | |
activate_signal (const char *signal, long) | |
activate_signal (const char *signal, const char *) | |
activate_signal_bool (const char *signal, bool) | |
activate_signal_string (const char *signal, QString) | |
activate_signal_strref (const char *signal, const QString &) | |
sender () | |
initMetaObject () | |
timerEvent (QTimerEvent *) | |
childEvent (QChildEvent *) | |
connectNotify (const char *signal) | |
disconnectNotify (const char *signal) | |
checkConnectArgs (const char *signal, const QObject *receiver, const char *member) | |
staticMetaObject () | |
normalizeSignalSlot (const char *signalSlot) | |
badSuperclassWarning (const char *className, const char *superclassName) | |
qt_find_obj_child (QObject *parent, const char *type, const char *name) | |
ButtonState {NoButton=0x0000, LeftButton=0x0001, RightButton=0x0002, MidButton=0x0004, MouseButtonMask=0x0007, ShiftButton=0x0008, ControlButton=0x0010, AltButton=0x0020, KeyButtonMask=0x0038, Keypad=0x4000} | |
Orientation {Horizontal, Vertical} | |
AlignmentFlags {AlignLeft=0x0001, AlignRight=0x0002, AlignHCenter=0x0004, AlignTop=0x0008, AlignBottom=0x0010, AlignVCenter=0x0020, AlignCenter=AlignVCenter|AlignHCenter, SingleLine=0x0040, DontClip=0x0080, ExpandTabs=0x0100, ShowPrefix=0x0200, WordBreak=0x0400, DontPrint=0x1000} | |
WidgetFlags {WType_TopLevel=0x00000001, WType_Modal=0x00000002, WType_Popup=0x00000004, WType_Desktop=0x00000008, WType_Mask=0x0000000f, WStyle_Customize=0x00000010, WStyle_NormalBorder=0x00000020, WStyle_DialogBorder=0x00000040, WStyle_NoBorder=0x00000000, WStyle_Title=0x00000080, WStyle_SysMenu=0x00000100, WStyle_Minimize=0x00000200, WStyle_Maximize=0x00000400, WStyle_MinMax=WStyle_Minimize|WStyle_Maximize, WStyle_Tool=0x00000800, WStyle_StaysOnTop=0x00001000, WStyle_Dialog=0x00002000, WStyle_ContextHelp=0x00004000, WStyle_NoBorderEx=0x00008000, WStyle_Mask=0x0000fff0, WDestructiveClose=0x00010000, WPaintDesktop=0x00020000, WPaintUnclipped=0x00040000, WPaintClever=0x00080000, WResizeNoErase=0x00100000, WMouseNoMask=0x00200000, WNorthWestGravity=0x00400000, WRepaintNoErase=0x00800000, WX11BypassWM=0x01000000, WGroupLeader=0x02000000} | |
RasterOp {CopyROP, OrROP, XorROP, NotAndROP, EraseROP=NotAndROP, NotCopyROP, NotOrROP, NotXorROP, AndROP, NotEraseROP=AndROP, NotROP, ClearROP, SetROP, NopROP, AndNotROP, OrNotROP, NandROP, NorROP, LastROP=NorROP} | |
PenStyle {NoPen, SolidLine, DashLine, DotLine, DashDotLine, DashDotDotLine, MPenStyle=0x0f} | |
PenCapStyle {FlatCap=0x00, SquareCap=0x10, RoundCap=0x20, MPenCapStyle=0x30} | |
PenJoinStyle {MiterJoin=0x00, BevelJoin=0x40, RoundJoin=0x80, MPenJoinStyle=0xc0} | |
TextFormat {PlainText, RichText, AutoText} | |
QPainter () | |
QStyleSheet (). | |
QStyleSheet () returns TRUE, otherwise as for | |
devType () const | |
isExtDev () const | |
paintingActive () const | |
cmd (int, QPainter *, QPDevCmdParam *) | |
fontMet (QFont *, int, const char *=0, int=0) const | |
fontInf (QFont *, int) const | |
bitBlt (QPaintDevice *dst, const QPoint &dp, const QPaintDevice *src, const QRect &sr, RasterOp rop) | |
bitBlt (QPaintDevice *dst, int dx, int dy, const QPaintDevice *src, int sx, int sy, int sw, int sh, Qt::RasterOp rop, bool ignoreMask) | |
Protected Methods | |
virtual void | resizeEvent (QResizeEvent *) |
virtual void | drawButton (QPainter *p) |
virtual void | drawButtonLabel (QPainter *p) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *) |
virtual void | keyPressEvent (QKeyEvent *) |
The header of a QdbtBaseTabular widget is divided into a number of sections, one for each column.
Each section is a specialized QdbtSection widget. Its position and size are controlled by the QdbtBaseTabular widget.
By inheriting this widget you can change the look and feel of the individual sections.
You can both read and change the widget that is used for the section of a column by using QdbtBaseTabular::section() and QdbtBaseTabular::changeSection().
example1.cpp, example3.cpp, example4.cpp, example5.cpp, and example6.cpp.
|
Constructs a section widget with no label.
|
|
Constructs a section widget with the label text.
|
|
Destroys the section widget. |
|
Returns the alignment that is currently used.
|
|
This function can be reimplemented to customize the way the section is drawn.
Reimplemented from QButton. |
|
This function can be reimplemented to customize the way the label of the section is drawn. (this is the section excluding the border)
Reimplemented from QButton.
|
|
Returns the preferret width of the widget. That is not the actual width, but the width that is needed to fully show the section. You probably want to reimplement this if you are inheriting from this widget.
|
|
Returns |
|
Reimplements the keyboard events. Left and Right cursor key events are passed on to the parent. Other events (space) are processed just as QPushButton. Reimplemented from QWidget. |
|
The mouse move event.
Reimplemented from QWidget. |
|
The mouse press event.
Reimplemented from QWidget. |
|
The mouse release event. Reimplemented from QWidget. |
|
The resize event, currently doesn't do anything Reimplemented from QWidget. |
|
Set the alignment of the text to align. Possible values are
|
|
Determines whether or not this section can be resized by the user.
If enable is
if enable is
|
|
Returns the preferret width of the widget. That is not the actual width, but the width that is needed to fully show the section. You probably want to reimplement this if you are inheriting from this widget.
|