File: ScrollKeeper.h

package info (click to toggle)
psi-plugins 1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,368 kB
  • sloc: cpp: 42,063; xml: 714; ansic: 84; makefile: 61; sh: 12
file content (30 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * ScrollKeeper.h
 *
 *  Created on: 30 Oct 2016
 *      Author: rkfg
 */

#ifndef SRC_PLUGINS_GENERIC_IMAGEPREVIEWPLUGIN_SCROLLKEEPER_H_
#define SRC_PLUGINS_GENERIC_IMAGEPREVIEWPLUGIN_SCROLLKEEPER_H_

#include <QWidget>
#include <QTextEdit>

class QWebFrame;

class ScrollKeeper {
private:
	QWidget* chatView_;
	int scrollPos_;
	bool scrollToEnd_;
	QTextEdit* ted_;
#ifdef HAVE_WEBKIT
	QWebFrame* mainFrame_;
#endif
public:
	ScrollKeeper(QWidget* chatView);
	virtual ~ScrollKeeper();
};

#endif /* SRC_PLUGINS_GENERIC_IMAGEPREVIEWPLUGIN_SCROLLKEEPER_H_ */