]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt3/QWorkArea.C
clean up Abdel's cleanup
[lyx.git] / src / frontends / qt3 / QWorkArea.C
index 9fe3273d42e215da6a642398cb6a683da83f3602..24d8a110b1f7e416b314acb7e119216ab04c31e6 100644 (file)
 #include <Carbon/Carbon.h>
 #endif
 
-#include <support/lstrings.h>
-
-using lyx::support::internalLineEnding;
-using lyx::support::externalLineEnding;
 using std::endl;
 using std::string;
 
@@ -55,7 +51,7 @@ namespace lyx {
 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);
@@ -88,6 +84,7 @@ QWorkArea::~QWorkArea()
 
 void QWorkArea::setScrollbarParams(int h, int pos, int line_h)
 {
+       scrollbar_->setTracking(false);
        // do what cursor movement does (some grey)
        h += height() / 4;
 
@@ -99,6 +96,8 @@ void QWorkArea::setScrollbarParams(int h, int pos, int line_h)
        content_->trackScrollbar(true);
        scrollbar_->setLineStep(line_h);
        scrollbar_->setPageStep(height());
+
+       scrollbar_->setTracking(true);
 }
 
 } // namespace frontend