Gui_Fixes
Last change
on this file since 2eeb21 was 2eeb21, checked in by Frederik Heber <heber@…>, 9 years ago |
tempcommit: QtNumericalItem::operator<() seems to be called always??
- also, occurence should be sorted numerically, too.
|
-
Property mode
set to
100644
|
File size:
671 bytes
|
Rev | Line | |
---|
[622f71] | 1 | /*
|
---|
| 2 | * QtNumericalItem.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Sep 1, 2016
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | #ifndef UIELEMENTS_VIEWS_QT4_QTNUMERICALITEM_HPP_
|
---|
| 10 | #define UIELEMENTS_VIEWS_QT4_QTNUMERICALITEM_HPP_
|
---|
| 11 |
|
---|
| 12 | // include config.h
|
---|
| 13 | #ifdef HAVE_CONFIG_H
|
---|
| 14 | #include <config.h>
|
---|
| 15 | #endif
|
---|
| 16 |
|
---|
| 17 | #include <QTreeWidgetItem>
|
---|
| 18 |
|
---|
| 19 | class QTreeWidget;
|
---|
| 20 |
|
---|
| 21 | class QtNumericalItem : public QTreeWidgetItem
|
---|
| 22 | {
|
---|
| 23 | public:
|
---|
[2eeb21] | 24 | QtNumericalItem(int column, QTreeWidget *parent = 0) :
|
---|
| 25 | QTreeWidgetItem(parent),
|
---|
| 26 | view_column(column)
|
---|
[622f71] | 27 | {}
|
---|
| 28 |
|
---|
| 29 | bool operator<(const QTreeWidgetItem &_item) const;
|
---|
[2eeb21] | 30 |
|
---|
| 31 | private:
|
---|
| 32 | //!> such that we know that we need to check
|
---|
| 33 | const int view_column;
|
---|
[622f71] | 34 | };
|
---|
| 35 |
|
---|
| 36 | #endif /* UIELEMENTS_VIEWS_QT4_QTNUMERICALITEM_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.