-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
mlview has a GotoEnd but has no GotoTop (or GotoHome?)
- --
Buenos Aires, Argentina
-----BEGIN PGP SIGNATURE-----
iD8DBQE9zGcfUMlRieHkprgRAsg0AKDAIRKHa/XK8Fw4J+rWFNIwCZ/YAACgggB8
azGrLkJatQf/OCHbOrlIRww=
=Ukwf
-----END PGP SIGNATURE-----
diff -u -d -p -r1.3 mlview2.cpp
--- plugins/qt-gui/src//mlview2.cpp 23 Aug 2002 05:24:40 -0000 1.3
+++ plugins/qt-gui/src//mlview2.cpp 9 Nov 2002 01:33:22 -0000
@@ -61,6 +61,12 @@ void MLView::GotoEnd()
#endif
}
+void MLView::GotoTop()
+{
+#if QT_VERSION < 300
+ setCursorPosition(0,0);
+#endif
+}
void MLView::setBackground(const QColor& c)
{
diff -u -d -p -r1.3 mlview2.h
--- plugins/qt-gui/src//mlview2.h 23 Aug 2002 05:24:40 -0000 1.3
+++ plugins/qt-gui/src//mlview2.h 9 Nov 2002 01:33:22 -0000
@@ -13,6 +13,7 @@ public:
void appendNoNewLine(const QString& s);
void append(const QString& s);
void GotoEnd();
+ void GotoTop();
using QMultiLineEdit::hasMarkedText;
using QMultiLineEdit::markedText;
diff -u -d -p -r1.8 mlview3.cpp
--- plugins/qt-gui/src//mlview3.cpp 16 Sep 2002 23:25:44 -0000 1.8
+++ plugins/qt-gui/src//mlview3.cpp 9 Nov 2002 01:33:22 -0000
@@ -128,6 +128,11 @@ void MLView::GotoEnd()
moveCursor(QTextBrowser::MoveEnd, false);
}
+void MLView::GotoTop()
+{
+ moveCursor(QTextBrowser::MoveHome,false);
+}
+
void MLView::setBackground(const QColor& c)
{
setPaper(QBrush(c));
diff -u -d -p -r1.3 mlview3.h
--- plugins/qt-gui/src//mlview3.h 23 Aug 2002 05:24:40 -0000 1.3
+++ plugins/qt-gui/src//mlview3.h 9 Nov 2002 01:33:22 -0000
@@ -15,6 +15,7 @@ public:
void appendNoNewLine(const QString& s);
void append(const QString& s);
void GotoEnd();
+ void GotoTop();
bool hasMarkedText() const;
QString markedText() const;
diff -u -d -p -r1.58 userinfodlg.cpp
--- plugins/qt-gui/src//userinfodlg.cpp 5 Nov 2002 06:26:02 -0000 1.58
+++ plugins/qt-gui/src//userinfodlg.cpp 9 Nov 2002 01:33:23 -0000
@@ -1198,7 +1198,7 @@ void UserInfoDlg::ShowHistory()
if(!m_bHistoryReverse)
mlvHistory->GotoEnd();
else
- mlvHistory->setCursorPosition(0, 0);
+ mlvHistory->GotoTop();
barFiltering->reset();
}
-----BEGIN PGP SIGNATURE-----
iD8DBQA9zGbnUMlRieHkprgRAuX1AJoCdiA6YHJU1m3l0rS/EsYWnewk4gCfVHE0
yflT3QKq6le/Z36O0LgbBRk=
=+MDk
-----END PGP SIGNATURE-----