#include <Carbon/Carbon.h>
#endif
-#include <support/lstrings.h>
-
-using lyx::support::internalLineEnding;
-using lyx::support::externalLineEnding;
using std::endl;
using std::string;
namespace frontend {
QWorkArea::QWorkArea(LyXView & owner, int, int)
- : QWidget(qApp->mainWidget()), owner_(owner), painter_(*this)
+ : QWidget(qApp->mainWidget()), owner_(owner), painter_(*this)
{
scrollbar_ = new QScrollBar(QScrollBar::Vertical, this);
content_ = new QContentPane(this);
void QWorkArea::setScrollbarParams(int h, int pos, int line_h)
{
+ scrollbar_->setTracking(false);
// do what cursor movement does (some grey)
h += height() / 4;
content_->trackScrollbar(true);
scrollbar_->setLineStep(line_h);
scrollbar_->setPageStep(height());
+
+ scrollbar_->setTracking(true);
}
} // namespace frontend