31 #include <QTreeWidget>
37 #define FIXME_TOOLTIP 0
41 class QY2ListViewToolTip;
111 QTreeWidgetItem * item,
113 const QPoint & pos );
119 QTreeWidgetItem * item,
121 const QPoint & pos );
137 virtual QString
toolTip( QTreeWidgetItem * item,
int column );
167 virtual bool eventFilter( QObject * obj, QEvent * event );
215 QTreeWidgetItem * _mousePressedItem;
216 int _mousePressedCol;
217 Qt::MouseButton _mousePressedButton;
219 std::vector<int> _savedColumnWidth;
220 bool _sortByInsertionSequence;
223 QY2ListViewToolTip * _toolTip;
224 bool _mouseButton1PressedInHeader;
225 bool _finalSizeChangeExpected;
241 const QString & text = QString::null );
248 const QString & text = QString::null );
275 virtual bool operator< (
const QTreeWidgetItem & other )
const;
289 virtual QString
toolTip(
int column ) {
return QString::null; }
301 QColor _backgroundColor;
317 const QString & text );
324 const QString & text );
358 { _textColor = col; }
365 { _backgroundColor = col; }
373 virtual QString
toolTip(
int column ) {
return QString(); }
392 class QY2ListViewToolTip :
public QToolTip
400 : QToolTip( parent->viewport() )
401 , _listView( parent ) {}
406 virtual ~QY2ListViewToolTip() {}
416 virtual void maybeTip(
const QPoint & p );
427 #endif // ifndef QY2ListView_h