List of all members | Classes | Properties | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions
XTableView Class Reference

#include <xtableview.h>

Inheritance diagram for XTableView:
QTableView QAbstractItemView QAbstractScrollArea QFrame QWidget QObject QPaintDevice

Properties

 acceptDrops
 
 accessibleDescription
 
 accessibleName
 
 alternatingRowColors
 
 autoFillBackground
 
 autoScroll
 
 autoScrollMargin
 
 baseSize
 
 childrenRect
 
 childrenRegion
 
 contextMenuPolicy
 
 cornerButtonEnabled
 
 cursor
 
 defaultDropAction
 
 dragDropMode
 
 dragDropOverwriteMode
 
 dragEnabled
 
 editTriggers
 
 enabled
 
 focus
 
 focusPolicy
 
 font
 
 frameGeometry
 
 frameRect
 
 frameShadow
 
 frameShape
 
 frameSize
 
 frameWidth
 
 fullScreen
 
 geometry
 
 gridStyle
 
 height
 
 horizontalScrollBarPolicy
 
 horizontalScrollMode
 
 iconSize
 
 inputMethodHints
 
 isActiveWindow
 
 layoutDirection
 
 lineWidth
 
 locale
 
 maximized
 
 maximumHeight
 
 maximumSize
 
 maximumWidth
 
 midLineWidth
 
 minimized
 
 minimumHeight
 
 minimumSize
 
 minimumSizeHint
 
 minimumWidth
 
 modal
 
 mouseTracking
 
 normalGeometry
 
 objectName
 
 palette
 
 pos
 
int primaryKeyCoulmns
 
 rect
 
QString schemaName
 
 selectionBehavior
 
 selectionMode
 
 showDropIndicator
 
 showGrid
 
 size
 
 sizeAdjustPolicy
 
 sizeHint
 
 sizeIncrement
 
 sizePolicy
 
 sortingEnabled
 
 statusTip
 
 styleSheet
 
 tabKeyNavigation
 
QString tableName
 
 textElideMode
 
 toolTip
 
 toolTipDuration
 
 updatesEnabled
 
 verticalScrollBarPolicy
 
 verticalScrollMode
 
 visible
 
 whatsThis
 
 width
 
 windowFilePath
 
 windowFlags
 
 windowIcon
 
 windowIconText
 
 windowModality
 
 windowModified
 
 windowOpacity
 
 windowTitle
 
 wordWrap
 
 x
 
 y
 

Public Slots

virtual QString filter ()
 
virtual void insert ()
 
virtual QAbstractItemDelegateitemDelegateForColumn (int column)
 
virtual QAbstractItemDelegateitemDelegateForColumn (const QString column)
 
virtual void populate (int p)
 
virtual void removeSelected ()
 
virtual void revertAll ()
 
virtual int rowCount ()
 
virtual int rowCountVisible ()
 
virtual void save ()
 
virtual void select ()
 
virtual QVariant selectedValue (int column)
 
virtual void selectRow (int index)
 
virtual void setColumnEditor (int column, const QString editor)
 
virtual void setColumnEditor (const QString column, const QString editor)
 
virtual void setColumnFormat (const QString column, int format)
 
virtual void setColumnTextAlignment (int column, int alignment)
 
virtual void setColumnTextAlignment (const QString column, int alignment)
 
virtual void setDataWidgetMap (XDataWidgetMapper *mapper)
 
virtual void setFilter (const QString filter)
 
virtual void setForegroundColor (int row, int col, QString color)
 
virtual void setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate)
 
virtual void setItemDelegateForColumn (const QString column, QAbstractItemDelegate *delegate)
 
virtual void setModel (QAbstractItemModel *model=0)
 
virtual void setPrimaryKeyColumns (int p)
 
virtual void setRowForegroundColor (int row, QString color)
 
virtual void setSchemaName (QString p)
 
virtual void setTableName (QString p)
 
virtual void setValue (int row, int column, QVariant value)
 
virtual void sShowMenu (const QPoint &)
 
virtual QVariant value (int row, int column)
 

Signals

void dataChanged (int row, int col)
 
void newModel (XSqlTableModel *model)
 
void populateMenu (QMenu *, QModelIndex)
 
void rowSelected (int)
 
void saved ()
 
void valid (bool)
 

Public Member Functions

 XTableView (QWidget *parent=0)
 
 ~XTableView ()
 
bool acceptDrops () const
 
QString accessibleDescription () const
 
QString accessibleName () const
 
QList< QAction * > actions () const
 
void activated (const QModelIndex &index)
 
void activateWindow ()
 
void addAction (QAction *action)
 
void addActions (const QList< QAction * > &actions)
 
void addScrollBarWidget (QWidget *widget, Qt::Alignment alignment)
 
void adjustSize ()
 
bool alternatingRowColors () const
 
bool autoFillBackground () const
 
int autoScrollMargin () const
 
QPalette::ColorRole backgroundRole () const
 
QBackingStorebackingStore () const
 
QSize baseSize () const
 
bool blockSignals (bool block)
 
QWidgetchildAt (int x, int y) const
 
QWidgetchildAt (const QPoint &p) const
 
const QObjectList & children () const
 
QRect childrenRect () const
 
QRegion childrenRegion () const
 
void clearFocus ()
 
void clearMask ()
 
void clearSelection ()
 
void clearSpans ()
 
void clicked (const QModelIndex &index)
 
bool close ()
 
void closePersistentEditor (const QModelIndex &index)
 
int colorCount () const
 
int columnAt (int x) const
 
Q_INVOKABLE int columnIndex (const QString column)
 
Q_INVOKABLE QString columnNameFromLogicalIndex (const int logicalIndex) const
 
int columnSpan (int row, int column) const
 
int columnViewportPosition (int column) const
 
int columnWidth (int column) const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
QMargins contentsMargins () const
 
QRect contentsRect () const
 
Qt::ContextMenuPolicy contextMenuPolicy () const
 
QWidgetcornerWidget () const
 
QModelIndex currentIndex () const
 
QCursor cursor () const
 
void customContextMenuRequested (const QPoint &pos)
 
Qt::DropAction defaultDropAction () const
 
void deleteLater ()
 
int depth () const
 
void destroyed (QObject *obj)
 
int devicePixelRatio () const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const
 
bool disconnect (const QObject *receiver, const char *method) const
 
void doubleClicked (const QModelIndex &index)
 
DragDropMode dragDropMode () const
 
bool dragDropOverwriteMode () const
 
bool dragEnabled () const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
void edit (const QModelIndex &index)
 
EditTriggers editTriggers () const
 
WId effectiveWinId () const
 
void ensurePolished () const
 
void entered (const QModelIndex &index)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const
 
Qt::FocusPolicy focusPolicy () const
 
QWidgetfocusProxy () const
 
QWidgetfocusWidget () const
 
const QFontfont () const
 
QFontInfo fontInfo () const
 
QFontMetrics fontMetrics () const
 
QPalette::ColorRole foregroundRole () const
 
QRect frameGeometry () const
 
QRect frameRect () const
 
Shadow frameShadow () const
 
Shape frameShape () const
 
QSize frameSize () const
 
int frameStyle () const
 
int frameWidth () const
 
const QRectgeometry () const
 
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
 
QPixmap grab (const QRect &rectangle)
 
void grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags)
 
void grabKeyboard ()
 
void grabMouse ()
 
void grabMouse (const QCursor &cursor)
 
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context)
 
QGraphicsEffectgraphicsEffect () const
 
QGraphicsProxyWidgetgraphicsProxyWidget () const
 
Qt::PenStyle gridStyle () const
 
bool hasAutoScroll () const
 
bool hasEditFocus () const
 
bool hasFocus () const
 
virtual bool hasHeightForWidth () const
 
bool hasMouseTracking () const
 
int height () const
 
virtual int heightForWidth (int w) const
 
int heightMM () const
 
void hide ()
 
void hideColumn (int column)
 
void hideRow (int row)
 
QHeaderViewhorizontalHeader () const
 
QScrollBarhorizontalScrollBar () const
 
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
 
ScrollMode horizontalScrollMode () const
 
QSize iconSize () const
 
void iconSizeChanged (const QSize &size)
 
virtual QModelIndex indexAt (const QPoint &pos) const
 
QWidgetindexWidget (const QModelIndex &index) const
 
bool inherits (const char *className) const
 
Qt::InputMethodHints inputMethodHints () const
 
virtual QVariant inputMethodQuery (Qt::InputMethodQuery query) const
 
void insertAction (QAction *before, QAction *action)
 
void insertActions (QAction *before, QList< QAction * > actions)
 
void installEventFilter (QObject *filterObj)
 
bool isActiveWindow () const
 
bool isAncestorOf (const QWidget *child) const
 
bool isColumnHidden (int column) const
 
bool isCornerButtonEnabled () const
 
bool isEnabled () const
 
bool isEnabledTo (const QWidget *ancestor) const
 
bool isEnabledToTLW () const
 
bool isFullScreen () const
 
bool isHidden () const
 
bool isMaximized () const
 
bool isMinimized () const
 
bool isModal () const
 
bool isRowHidden (int row) const
 
Q_INVOKABLE bool isRowHidden (int row)
 
bool isSortingEnabled () const
 
bool isTopLevel () const
 
bool isVisible () const
 
bool isVisibleTo (const QWidget *ancestor) const
 
bool isWidgetType () const
 
bool isWindow () const
 
bool isWindowModified () const
 
bool isWindowType () const
 
QAbstractItemDelegateitemDelegate (const QModelIndex &index) const
 
QAbstractItemDelegateitemDelegate () const
 
QAbstractItemDelegateitemDelegateForColumn (int column) const
 
QAbstractItemDelegateitemDelegateForRow (int row) const
 
virtual void keyboardSearch (const QString &search)
 
void killTimer (int id)
 
QLayoutlayout () const
 
Qt::LayoutDirection layoutDirection () const
 
int lineWidth () const
 
QLocale locale () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
void lower ()
 
QPoint mapFrom (const QWidget *parent, const QPoint &pos) const
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapFromParent (const QPoint &pos) const
 
Q_INVOKABLE XDataWidgetMappermapper ()
 
QPoint mapTo (const QWidget *parent, const QPoint &pos) const
 
QPoint mapToGlobal (const QPoint &pos) const
 
QPoint mapToParent (const QPoint &pos) const
 
QRegion mask () const
 
int maximumHeight () const
 
QSize maximumSize () const
 
QSize maximumViewportSize () const
 
int maximumWidth () const
 
virtual const QMetaObjectmetaObject () const
 
int midLineWidth () const
 
int minimumHeight () const
 
QSize minimumSize () const
 
virtual QSize minimumSizeHint () const
 
int minimumWidth () const
 
QAbstractItemModelmodel () const
 
Q_INVOKABLE XSqlTableModelmodel ()
 
void move (int x, int y)
 
void move (const QPoint &)
 
void moveToThread (QThread *targetThread)
 
QWidgetnativeParentWidget () const
 
QWidgetnextInFocusChain () const
 
QRect normalGeometry () const
 
QString objectName () const
 
void objectNameChanged (const QString &objectName)
 
void openPersistentEditor (const QModelIndex &index)
 
void overrideWindowFlags (Qt::WindowFlags flags)
 
virtual QPaintEnginepaintEngine () const
 
bool paintingActive () const
 
const QPalettepalette () const
 
QObjectparent () const
 
QWidgetparentWidget () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
QPoint pos () const
 
void pressed (const QModelIndex &index)
 
QWidgetpreviousInFocusChain () const
 
int primaryKeyColumns () const
 
QVariant property (const char *name) const
 
void raise ()
 
QRect rect () const
 
void releaseKeyboard ()
 
void releaseMouse ()
 
void releaseShortcut (int id)
 
void removeAction (QAction *action)
 
void removeEventFilter (QObject *obj)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, RenderFlags renderFlags)
 
void repaint ()
 
void repaint (int x, int y, int w, int h)
 
void repaint (const QRect &rect)
 
void repaint (const QRegion &rgn)
 
virtual void reset ()
 
void resize (int w, int h)
 
void resize (const QSize &)
 
void resizeColumnsToContents ()
 
void resizeColumnToContents (int column)
 
void resizeRowsToContents ()
 
void resizeRowToContents (int row)
 
bool restoreGeometry (const QByteArray &geometry)
 
QModelIndex rootIndex () const
 
int rowAt (int y) const
 
int rowHeight (int row) const
 
int rowSpan (int row, int column) const
 
int rowViewportPosition (int row) const
 
QByteArray saveGeometry () const
 
QString schemaName () const
 
void scroll (int dx, int dy, const QRect &r)
 
void scroll (int dx, int dy)
 
QWidgetList scrollBarWidgets (Qt::Alignment alignment)
 
virtual void scrollTo (const QModelIndex &index, ScrollHint hint)=0
 
void scrollToBottom ()
 
void scrollToTop ()
 
virtual void selectAll ()
 
void selectColumn (int column)
 
QAbstractItemView::SelectionBehavior selectionBehavior () const
 
QAbstractItemView::SelectionMode selectionMode () const
 
QItemSelectionModelselectionModel () const
 
void setAcceptDrops (bool on)
 
void setAccessibleDescription (const QString &description)
 
void setAccessibleName (const QString &name)
 
void setAlternatingRowColors (bool enable)
 
void setAttribute (Qt::WidgetAttribute attribute, bool on)
 
void setAutoFillBackground (bool enabled)
 
void setAutoScroll (bool enable)
 
void setAutoScrollMargin (int margin)
 
void setBackgroundRole (QPalette::ColorRole role)
 
void setBaseSize (const QSize &)
 
void setBaseSize (int basew, int baseh)
 
Q_INVOKABLE void setColumn (const QString &label, int width, int alignment, bool visible, const QString &colname)
 
void setColumnHidden (int column, bool hide)
 
virtual Q_INVOKABLE void setColumnLocked (const QString &pColname, bool pLocked)
 
virtual Q_INVOKABLE void setColumnLocked (const int pColumn, bool pLocked)
 
virtual Q_INVOKABLE void setColumnRole (const QString column, int role, QVariant value)
 
virtual Q_INVOKABLE void setColumnVisible (int, bool)
 
void setColumnWidth (int column, int width)
 
void setContentsMargins (const QMargins &margins)
 
void setContentsMargins (int left, int top, int right, int bottom)
 
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
 
void setCornerButtonEnabled (bool enable)
 
void setCornerWidget (QWidget *widget)
 
void setCurrentIndex (const QModelIndex &index)
 
void setCursor (const QCursor &)
 
void setDefaultDropAction (Qt::DropAction dropAction)
 
void setDisabled (bool disable)
 
void setDragDropMode (DragDropMode behavior)
 
void setDragDropOverwriteMode (bool overwrite)
 
void setDragEnabled (bool enable)
 
void setDropIndicatorShown (bool enable)
 
void setEditFocus (bool enable)
 
void setEditTriggers (EditTriggers triggers)
 
void setEnabled (bool)
 
void setFixedHeight (int h)
 
void setFixedSize (int w, int h)
 
void setFixedSize (const QSize &s)
 
void setFixedWidth (int w)
 
void setFocus (Qt::FocusReason reason)
 
void setFocus ()
 
void setFocusPolicy (Qt::FocusPolicy policy)
 
void setFocusProxy (QWidget *w)
 
void setFont (const QFont &)
 
void setForegroundRole (QPalette::ColorRole role)
 
void setFrameRect (const QRect &)
 
void setFrameShadow (Shadow)
 
void setFrameShape (Shape)
 
void setFrameStyle (int style)
 
void setGeometry (int x, int y, int w, int h)
 
void setGeometry (const QRect &)
 
void setGraphicsEffect (QGraphicsEffect *effect)
 
void setGridStyle (Qt::PenStyle style)
 
void setHidden (bool hidden)
 
void setHorizontalHeader (QHeaderView *header)
 
void setHorizontalScrollBar (QScrollBar *scrollBar)
 
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
 
void setHorizontalScrollMode (ScrollMode mode)
 
void setIconSize (const QSize &size)
 
void setIndexWidget (const QModelIndex &index, QWidget *widget)
 
void setInputMethodHints (Qt::InputMethodHints hints)
 
void setItemDelegate (QAbstractItemDelegate *delegate)
 
void setItemDelegateForRow (int row, QAbstractItemDelegate *delegate)
 
void setLayout (QLayout *layout)
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
void setLineWidth (int)
 
void setLocale (const QLocale &locale)
 
void setMask (const QBitmap &bitmap)
 
void setMask (const QRegion &region)
 
void setMaximumHeight (int maxh)
 
void setMaximumSize (const QSize &)
 
void setMaximumSize (int maxw, int maxh)
 
void setMaximumWidth (int maxw)
 
void setMidLineWidth (int)
 
void setMinimumHeight (int minh)
 
void setMinimumSize (const QSize &)
 
void setMinimumSize (int minw, int minh)
 
void setMinimumWidth (int minw)
 
void setMouseTracking (bool enable)
 
void setObjectName (const QString &name)
 
void setPalette (const QPalette &)
 
void setParent (QWidget *parent)
 
void setParent (QObject *parent)
 
void setParent (QWidget *parent, Qt::WindowFlags f)
 
bool setProperty (const char *name, const QVariant &value)
 
virtual void setRootIndex (const QModelIndex &index)
 
void setRowHeight (int row, int height)
 
void setRowHidden (int row, bool hide)
 
void setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior)
 
void setSelectionMode (QAbstractItemView::SelectionMode mode)
 
virtual void setSelectionModel (QItemSelectionModel *selectionModel)
 
void setShortcutAutoRepeat (int id, bool enable)
 
void setShortcutEnabled (int id, bool enable)
 
void setShowGrid (bool show)
 
void setSizeAdjustPolicy (SizeAdjustPolicy policy)
 
void setSizeIncrement (const QSize &)
 
void setSizeIncrement (int w, int h)
 
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
 
void setSizePolicy (QSizePolicy)
 
void setSortingEnabled (bool enable)
 
void setSpan (int row, int column, int rowSpanCount, int columnSpanCount)
 
void setStatusTip (const QString &)
 
void setStyle (QStyle *style)
 
void setStyleSheet (const QString &styleSheet)
 
void setTabKeyNavigation (bool enable)
 
Q_INVOKABLE void setTable ()
 
void setTextElideMode (Qt::TextElideMode mode)
 
void setToolTip (const QString &)
 
void setToolTipDuration (int msec)
 
void setUpdatesEnabled (bool enable)
 
void setupUi (QWidget *widget)
 
virtual void setupViewport (QWidget *viewport)
 
void setVerticalHeader (QHeaderView *header)
 
void setVerticalScrollBar (QScrollBar *scrollBar)
 
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
 
void setVerticalScrollMode (ScrollMode mode)
 
void setViewport (QWidget *widget)
 
virtual void setVisible (bool visible)
 
void setWhatsThis (const QString &)
 
void setWindowFilePath (const QString &filePath)
 
void setWindowFlags (Qt::WindowFlags type)
 
void setWindowIcon (const QIcon &icon)
 
void setWindowIconText (const QString &)
 
void setWindowModality (Qt::WindowModality windowModality)
 
void setWindowModified (bool)
 
void setWindowOpacity (qreal level)
 
void setWindowRole (const QString &role)
 
void setWindowState (Qt::WindowStates windowState)
 
void setWindowTitle (const QString &)
 
void setWordWrap (bool on)
 
void show ()
 
void showColumn (int column)
 
bool showDropIndicator () const
 
void showFullScreen ()
 
bool showGrid () const
 
void showMaximized ()
 
void showMinimized ()
 
void showNormal ()
 
void showRow (int row)
 
bool signalsBlocked () const
 
QSize size () const
 
SizeAdjustPolicy sizeAdjustPolicy () const
 
virtual QSize sizeHint () const
 
QSize sizeHintForIndex (const QModelIndex &index) const
 
QSize sizeIncrement () const
 
QSizePolicy sizePolicy () const
 
void sortByColumn (int column)
 
void sortByColumn (int column, Qt::SortOrder order)
 
void stackUnder (QWidget *w)
 
int startTimer (int interval, Qt::TimerType timerType)
 
QString statusTip () const
 
QStylestyle () const
 
QString styleSheet () const
 
bool tabKeyNavigation () const
 
QString tableName () const
 
bool testAttribute (Qt::WidgetAttribute attribute) const
 
Qt::TextElideMode textElideMode () const
 
QThreadthread () const
 
bool throwScriptException (const QString &message)
 
QString toolTip () const
 
int toolTipDuration () const
 
QWidgettopLevelWidget () const
 
bool underMouse () const
 
void ungrabGesture (Qt::GestureType gesture)
 
void unsetCursor ()
 
void unsetLayoutDirection ()
 
void unsetLocale ()
 
void update (const QModelIndex &index)
 
void update ()
 
void update (const QRect &rect)
 
void update (int x, int y, int w, int h)
 
void update (const QRegion &rgn)
 
void updateGeometry ()
 
bool updatesEnabled () const
 
QHeaderViewverticalHeader () const
 
QScrollBarverticalScrollBar () const
 
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
 
ScrollMode verticalScrollMode () const
 
QWidgetviewport () const
 
void viewportEntered ()
 
QRegion visibleRegion () const
 
virtual QRect visualRect (const QModelIndex &index) const =0
 
QString whatsThis () const
 
int width () const
 
int widthMM () const
 
QWidgetwindow () const
 
QString windowFilePath () const
 
Qt::WindowFlags windowFlags () const
 
QWindowwindowHandle () const
 
QIcon windowIcon () const
 
void windowIconChanged (const QIcon &icon)
 
QString windowIconText () const
 
void windowIconTextChanged (const QString &iconText)
 
Qt::WindowModality windowModality () const
 
qreal windowOpacity () const
 
QString windowRole () const
 
Qt::WindowStates windowState () const
 
QString windowTitle () const
 
void windowTitleChanged (const QString &title)
 
Qt::WindowType windowType () const
 
WId winId () const
 
bool wordWrap () const
 
int x () const
 
int y () const
 

Static Public Member Functions

QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QWidgetcreateWindowContainer (QWindow *window, QWidget *parent, Qt::WindowFlags flags)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QWidgetfind (WId id)
 
QWidgetkeyboardGrabber ()
 
QWidgetmouseGrabber ()
 
void setTabOrder (QWidget *first, QWidget *second)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Public Attributes

typedef EditTriggers
 
typedef RenderFlags
 

Protected Member Functions

virtual void actionEvent (QActionEvent *event)
 
virtual void changeEvent (QEvent *ev)
 
virtual void childEvent (QChildEvent *event)
 
virtual void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
 
virtual void closeEvent (QCloseEvent *event)
 
void columnCountChanged (int oldCount, int newCount)
 
void columnMoved (int column, int oldIndex, int newIndex)
 
void columnResized (int column, int oldWidth, int newWidth)
 
virtual void commitData (QWidget *editor)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void contextMenuEvent (QContextMenuEvent *e)
 
void create (WId window, bool initializeWindow, bool destroyOldWindow)
 
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
 
virtual void customEvent (QEvent *event)
 
virtual void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles)
 
void destroy (bool destroyWindow, bool destroySubWindows)
 
QPoint dirtyRegionOffset () const
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
virtual void dragEnterEvent (QDragEnterEvent *event)
 
virtual void dragLeaveEvent (QDragLeaveEvent *event)
 
virtual void dragMoveEvent (QDragMoveEvent *event)
 
virtual void dropEvent (QDropEvent *event)
 
DropIndicatorPosition dropIndicatorPosition () const
 
virtual bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event)
 
virtual void editorDestroyed (QObject *editor)
 
virtual void enterEvent (QEvent *event)
 
virtual bool event (QEvent *event)
 
void executeDelayedItemsLayout ()
 
virtual void focusInEvent (QFocusEvent *event)
 
bool focusNextChild ()
 
virtual bool focusNextPrevChild (bool next)
 
virtual void focusOutEvent (QFocusEvent *event)
 
bool focusPreviousChild ()
 
virtual void hideEvent (QHideEvent *event)
 
virtual int horizontalOffset () const
 
int horizontalStepsPerItem () const
 
virtual void initPainter (QPainter *painter) const
 
void initStyleOption (QStyleOptionFrame *option) const
 
virtual void inputMethodEvent (QInputMethodEvent *event)
 
virtual bool isIndexHidden (const QModelIndex &index) const
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void keyReleaseEvent (QKeyEvent *event)
 
virtual void leaveEvent (QEvent *event)
 
virtual int metric (PaintDeviceMetric m) const
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers)
 
virtual void moveEvent (QMoveEvent *event)
 
virtual bool nativeEvent (const QByteArray &eventType, void *message, long *result)
 
virtual void paintEvent (QPaintEvent *event)
 
int receivers (const char *signal) const
 
virtual void resizeEvent (QResizeEvent *)
 
void rowCountChanged (int oldCount, int newCount)
 
void rowMoved (int row, int oldIndex, int newIndex)
 
void rowResized (int row, int oldHeight, int newHeight)
 
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
 
void scheduleDelayedItemsLayout ()
 
virtual void scrollContentsBy (int dx, int dy)
 
void scrollDirtyRegion (int dx, int dy)
 
virtual QModelIndexList selectedIndexes () const
 
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
 
virtual
QItemSelectionModel::SelectionFlags 
selectionCommand (const QModelIndex &index, const QEvent *event) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
void setDirtyRegion (const QRegion &region)
 
void setHorizontalStepsPerItem (int steps)
 
virtual void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags flags)
 
void setState (State state)
 
void setVerticalStepsPerItem (int steps)
 
void setViewportMargins (int left, int top, int right, int bottom)
 
void setViewportMargins (const QMargins &margins)
 
virtual void showEvent (QShowEvent *event)
 
virtual int sizeHintForColumn (int column) const
 
virtual int sizeHintForRow (int row) const
 
virtual void startDrag (Qt::DropActions supportedActions)
 
State state () const
 
virtual void tabletEvent (QTabletEvent *event)
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void updateGeometries ()
 
void updateMicroFocus ()
 
virtual int verticalOffset () const
 
int verticalStepsPerItem () const
 
virtual QStyleOptionViewItem viewOptions () const
 
virtual bool viewportEvent (QEvent *event)
 
QMargins viewportMargins () const
 
virtual QSize viewportSizeHint () const
 
virtual QRegion visualRegionForSelection (const QItemSelection &selection) const =0
 
virtual void wheelEvent (QWheelEvent *e)
 

Property Documentation

int XTableView::primaryKeyCoulmns
readwrite
QString XTableView::schemaName
readwrite
QString XTableView::tableName
readwrite

Constructor & Destructor Documentation

XTableView::XTableView ( QWidget parent = 0)
XTableView::~XTableView ( )

Member Function Documentation

int XTableView::columnIndex ( const QString  column)
QString XTableView::columnNameFromLogicalIndex ( const int  logicalIndex) const
void XTableView::dataChanged ( int  row,
int  col 
)
signal
QString XTableView::filter ( )
virtualslot
void XTableView::insert ( )
virtualslot
Q_INVOKABLE bool XTableView::isRowHidden ( int  row)
inline
virtual QAbstractItemDelegate* XTableView::itemDelegateForColumn ( int  column)
inlinevirtualslot
QAbstractItemDelegate * XTableView::itemDelegateForColumn ( const QString  column)
virtualslot
Q_INVOKABLE XDataWidgetMapper* XTableView::mapper ( )
inline
Q_INVOKABLE XSqlTableModel* XTableView::model ( )
inline
void XTableView::newModel ( XSqlTableModel model)
signal
void XTableView::populate ( int  p)
virtualslot
void XTableView::populateMenu ( QMenu ,
QModelIndex   
)
signal
int XTableView::primaryKeyColumns ( ) const
inline
void XTableView::removeSelected ( )
virtualslot
void XTableView::resizeEvent ( QResizeEvent e)
protectedvirtual

Reimplemented from QAbstractItemView.

void XTableView::revertAll ( )
virtualslot
int XTableView::rowCount ( )
virtualslot
int XTableView::rowCountVisible ( )
virtualslot
void XTableView::rowSelected ( int  )
signal
void XTableView::save ( )
virtualslot
void XTableView::saved ( )
signal
QString XTableView::schemaName ( ) const
inline
void XTableView::select ( )
virtualslot
QVariant XTableView::selectedValue ( int  column)
virtualslot
void XTableView::selectionChanged ( const QItemSelection selected,
const QItemSelection deselected 
)
protectedvirtual

Reimplemented from QTableView.

void XTableView::selectRow ( int  index)
virtualslot
void XTableView::setColumn ( const QString label,
int  width,
int  alignment,
bool  visible,
const QString colname 
)
void XTableView::setColumnEditor ( int  column,
const QString  editor 
)
virtualslot
void XTableView::setColumnEditor ( const QString  column,
const QString  editor 
)
virtualslot
void XTableView::setColumnFormat ( const QString  column,
int  format 
)
virtualslot
void XTableView::setColumnLocked ( const QString pColname,
bool  pLocked 
)
virtual
void XTableView::setColumnLocked ( const int  pColumn,
bool  pLocked 
)
virtual
void XTableView::setColumnRole ( const QString  column,
int  role,
QVariant  value 
)
virtual
void XTableView::setColumnTextAlignment ( int  column,
int  alignment 
)
virtualslot
void XTableView::setColumnTextAlignment ( const QString  column,
int  alignment 
)
virtualslot
void XTableView::setColumnVisible ( int  pColumn,
bool  pVisible 
)
virtual
void XTableView::setDataWidgetMap ( XDataWidgetMapper mapper)
virtualslot
void XTableView::setFilter ( const QString  filter)
virtualslot
void XTableView::setForegroundColor ( int  row,
int  col,
QString  color 
)
virtualslot
virtual void XTableView::setItemDelegateForColumn ( int  column,
QAbstractItemDelegate delegate 
)
inlinevirtualslot
void XTableView::setItemDelegateForColumn ( const QString  column,
QAbstractItemDelegate delegate 
)
virtualslot
void XTableView::setModel ( QAbstractItemModel model = 0)
virtualslot
virtual void XTableView::setPrimaryKeyColumns ( int  p)
inlinevirtualslot
void XTableView::setRowForegroundColor ( int  row,
QString  color 
)
virtualslot
virtual void XTableView::setSchemaName ( QString  p)
inlinevirtualslot
void XTableView::setTable ( )
virtual void XTableView::setTableName ( QString  p)
inlinevirtualslot
void XTableView::setValue ( int  row,
int  column,
QVariant  value 
)
virtualslot
void XTableView::sShowMenu ( const QPoint pntThis)
virtualslot
QString XTableView::tableName ( ) const
inline
bool XTableView::throwScriptException ( const QString message)
void XTableView::valid ( bool  )
signal
QVariant XTableView::value ( int  row,
int  column 
)
virtualslot

The documentation for this class was generated from the following files:

Generated on Wed Nov 30 2016 xTuple ERP Programmer Reference, Version 4.10.0 doxygen 1.8.7