QDateTimeEditBase Class Reference
[sql module]
The QDateTimeEditBase class provides common functionality for
date/time editors.
More...
#include <qdatetimeedit.h>
Inherits QWidget.
Inherited by QDateEdit and QTimeEdit.
List of all member functions.
Public Members
Public Slots
Signals
Properties
bool
frame - the editor frame
Protected Members
Detailed Description
The QDateTimeEditBase class provides common functionality for
date/time editors.
This is a base class that you probably don't want to use directly. If
you want a time editor widget use QTimeEdit, if you want a date
editor widget use QDateEdit, and if you want a datetime editor use
QDateTimeEdit.
Member Function Documentation
QDateTimeEditBase::QDateTimeEditBase ( QWidget * parent = 0, const char * name = 0 )
Constructs an empty datetime base with parent parent and name name.
QDateTimeEditBase::~QDateTimeEditBase ()
Destroys the object and frees any allocated resources.
void QDateTimeEditBase::addNumber ( int sec, int num ) [virtual protected]
Virtual function which is called whenever the user types a number.
sec indicates the section where the number should be added. num is the number that was pressed.
void QDateTimeEditBase::appendSection ( const QNumberSection & sec ) [protected]
Appends the number section sec to the editor.
int QDateTimeEditBase::focusSection () const [protected]
Returns the number of the currently focused section.
bool QDateTimeEditBase::frame () const
Returns the editor frame. See the "frame" property for details.
void QDateTimeEditBase::removeLastNumber ( int sec ) [virtual protected]
Virtual function which is called whenever the user tries to remove
the last number from sec by pressing the backspace or delete
key.
QString QDateTimeEditBase::sectionFormattedText ( int sec ) [virtual protected]
Virtual function which returns the formatted text of section sec. The default implementation returns QString::null
Reimplemented in QDateEdit and QTimeEdit.
QString QDateTimeEditBase::separator () const
Returns the separator for the editor.
bool QDateTimeEditBase::setFocusSection ( int sec ) [virtual protected]
Sets the currently focused section to sec. If sec does not
exist, nothing happens.
void QDateTimeEditBase::setFrame ( bool ) [virtual slot]
Sets the editor frame. See the "frame" property for details.
void QDateTimeEditBase::setSectionSelection ( int sec, int selstart, int selend ) [protected]
Sets the selection of sec to start at selstart and end at selend.
void QDateTimeEditBase::setSeparator ( const QString & s )
Sets the separator for all numbered sections to s. Note that
currently, only the first character of s is used.
void QDateTimeEditBase::stepDown () [virtual slot]
Virtual function which is called whenever the user decreases the
number in a section by pressing the widget's arrow buttons or the
keyboard's arrow keys.
void QDateTimeEditBase::stepUp () [virtual slot]
Virtual function which is called whenever the user increases the
number in a section by pressing the widget's arrow buttons or the
keyboard's arrow keys.
Property Documentation
bool frame
This property holds the editor frame.
The editor is drawn inside a two-pixel frame if the frame property
is TRUE, otherwise it is drawn without a frame.
The default is TRUE.
Set this property's value with setFrame() and get this property's value with frame().
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit,
copyright © 1995-2001
Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks
| Qt version 3.0.0-beta1-beta1
|