[yast-commit] r42736 - in /branches/tmp/coolo/qt4-port/src: YQLogView.cc YQLogView.h
Author: coolo Date: Wed Dec 5 19:41:58 2007 New Revision: 42736 URL: http://svn.opensuse.org/viewcvs/yast?rev=42736&view=rev Log: Qt3support-- Modified: branches/tmp/coolo/qt4-port/src/YQLogView.cc branches/tmp/coolo/qt4-port/src/YQLogView.h Modified: branches/tmp/coolo/qt4-port/src/YQLogView.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/YQLogView.cc?rev=42736&r1=42735&r2=42736&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/YQLogView.cc (original) +++ branches/tmp/coolo/qt4-port/src/YQLogView.cc Wed Dec 5 19:41:58 2007 @@ -20,6 +20,7 @@ #include <qlabel.h> #include <qstyle.h> #include <QVBoxLayout> +#include <QScrollBar> #define y2log_component "qt-ui" #include <ycp/y2log.h> @@ -49,7 +50,7 @@ YUI_CHECK_NEW( _caption ); layout->addWidget( _caption ); - _qt_text = new Q3MultiLineEdit( this ); + _qt_text = new QTextEdit( this ); YUI_CHECK_NEW( _qt_text ); layout->addWidget( _qt_text ); @@ -70,7 +71,8 @@ YQLogView::displayLogText( const string & text ) { _qt_text->setText( fromUTF8( text ) ); - _qt_text->scrollToBottom(); + QScrollBar *sb = _qt_text->verticalScrollBar(); + sb->setValue( sb->maximum() ); } Modified: branches/tmp/coolo/qt4-port/src/YQLogView.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/YQLogView.h?rev=42736&r1=42735&r2=42736&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/YQLogView.h (original) +++ branches/tmp/coolo/qt4-port/src/YQLogView.h Wed Dec 5 19:41:58 2007 @@ -21,7 +21,7 @@ #define YQLogView_h #include <QFrame> -#include <Qt3Support/Q3MultiLineEdit> +#include <QTextEdit> #include "YLogView.h" @@ -104,7 +104,7 @@ protected: YQWidgetCaption * _caption; - Q3MultiLineEdit * _qt_text; + QTextEdit * _qt_text; }; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
coolo@svn.opensuse.org