QGIS/python/gui/qgstablewidgetitem.sip.in

57 lines
1.8 KiB
Plaintext
Raw Normal View History

2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgstablewidgetitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsTableWidgetItem : QTableWidgetItem
{
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
This can be used like a regular QTableWidgetItem with the difference that a
specific role can be set to sort.
2017-06-08 11:26:03 +02:00
%End
%TypeHeaderCode
#include "qgstablewidgetitem.h"
%End
public:
QgsTableWidgetItem();
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsTableWidgetItem.
%End
2017-06-08 11:26:03 +02:00
QgsTableWidgetItem( const QString &text );
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Creates a new table widget item with the specified text.
2017-06-08 11:26:03 +02:00
%End
void setSortRole( int role );
%Docstring
2017-12-15 10:36:55 -04:00
Set the role by which the items should be sorted.
By default this will be set to Qt.DisplayRole
2017-06-08 11:26:03 +02:00
%End
int sortRole() const;
2017-06-08 11:26:03 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Get the role by which the items should be sorted.
By default this will be Qt.DisplayRole
2017-06-08 11:26:03 +02:00
%End
virtual bool operator <( const QTableWidgetItem &other ) const;
};
2017-06-08 11:26:03 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgstablewidgetitem.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/