2 Author: Marco Costalba (C) 2005-2007
4 Copyright: See COPYING file that comes with this distribution
10 #include <QElapsedTimer>
14 class SmartLabel
: public QLabel
{
17 SmartLabel(const QString
& text
, QWidget
* par
);
18 void paintEvent(QPaintEvent
* event
);
21 virtual void contextMenuEvent(QContextMenuEvent
* e
);
27 class SmartBrowse
: public QObject
{
30 SmartBrowse(RevsView
* par
);
33 bool eventFilter(QObject
*obj
, QEvent
*event
);
36 void updateVisibility();
37 void linkActivated(const QString
&);
38 void flagChanged(uint
);
41 QTextEdit
* curTextEdit(bool* isDiff
= NULL
);
42 void setVisible(bool b
);
43 void updatePosition();
44 int visibilityFlags(bool* isDiff
= NULL
);
45 bool wheelRolled(int delta
, int flags
);
48 SmartLabel
* logTopLbl
;
49 SmartLabel
* logBottomLbl
;
50 SmartLabel
* diffTopLbl
;
51 SmartLabel
* diffBottomLbl
;
52 QElapsedTimer scrollTimer
, switchTimer
, timeoutTimer
;