You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
492 B
33 lines
492 B
15 years ago
|
|
||
|
#ifndef SCROLLVIEW_H
|
||
|
#define SCROLLVIEW_H
|
||
|
|
||
|
#include <qscrollview.h>
|
||
|
|
||
|
#include "kformuladefs.h"
|
||
|
|
||
|
class KFormulaWidget;
|
||
|
|
||
|
using namespace KFormula;
|
||
|
|
||
|
|
||
|
class ScrollView : public QScrollView {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
ScrollView();
|
||
|
|
||
|
virtual void addChild(KFormulaWidget* c, int x=0, int y=0);
|
||
|
|
||
|
protected:
|
||
|
virtual void focusInEvent(QFocusEvent* event);
|
||
|
|
||
|
protected slots:
|
||
|
|
||
|
void cursorChanged(bool visible, bool selecting);
|
||
|
|
||
|
private:
|
||
|
KFormulaWidget* child;
|
||
|
};
|
||
|
|
||
|
#endif // SCROLLVIEW_H
|