dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
QFrozenTableViewWithCopyPaste Class Reference

The QFrozenTableViewWithCopyPaste class QTableView with support for a frozen row as well as copy and paste added. Here copy and paste can copy/paste the entire grid of cells. Modified from http://stackoverflow.com/questions/1230222/selected-rows-line-in-qtableview-copy-to-qclipboard. More...

#include <telemetryschedulergadgetwidget.h>

Inheritance diagram for QFrozenTableViewWithCopyPaste:

Public Member Functions

 QFrozenTableViewWithCopyPaste (QAbstractItemModel *model)
 
 ~QFrozenTableViewWithCopyPaste ()
 
QStandardItemModel * getFrozenModel ()
 
QTableView * getFrozenTableView ()
 
void setHorizontalHeaderItem (int column, QStandardItem *item)
 QFrozenTableViewWithCopyPaste::setHorizontalHeaderItem Ensures that the frozen table geometry is updated when calling QStandardItemModel::setHorizontalHeaderItem() More...
 
bool removeColumns (int column, int count, const QModelIndex &parent=QModelIndex())
 QFrozenTableViewWithCopyPaste::removeColumns Ensures that the frozen table geometry is updated when calling QStandardItemModel::removeColumns() More...
 
void fixGeometry (int value)
 This class uses a tableview inside a table view to achieve the frozen row effect on the 1st row this function is used to keep both tables column width in sync. More...
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible)
 

Detailed Description

The QFrozenTableViewWithCopyPaste class QTableView with support for a frozen row as well as copy and paste added. Here copy and paste can copy/paste the entire grid of cells. Modified from http://stackoverflow.com/questions/1230222/selected-rows-line-in-qtableview-copy-to-qclipboard.

Definition at line 132 of file telemetryschedulergadgetwidget.h.


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