Hello community, here is the log from the commit of package cutecom for openSUSE:Factory checked in at Wed May 18 15:07:11 CEST 2011.
-------- New Changes file: --- /dev/null 2010-08-26 16:28:41.000000000 +0200 +++ /mounts/work_src_done/STABLE/cutecom/cutecom.changes 2011-05-11 18:04:17.000000000 +0200 @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 26 18:39:52 CEST 2011 - [email protected] + +- fix line breaking issue (patch copied from Debian) + +------------------------------------------------------------------- +Tue Jan 27 12:00:00 CEST 2009 - [email protected] + +- initial setup calling whatdependson for head-i586 New: ---- cutecom-0.22.0-nolinebreak.diff cutecom-0.22.0.tar.gz cutecom.changes cutecom.desktop cutecom.png cutecom.spec ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cutecom.spec ++++++ # # spec file for package cutecom # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: cutecom Version: 0.22.0 Release: 1 Url: http://cutecom.sourceforge.net/ License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake gcc-c++ libqt4-devel Group: Applications/Communications Summary: Serial terminal Source: %{name}-%{version}.tar.gz Source3: %{name}.desktop Source4: %{name}.png Patch: cutecom-0.22.0-nolinebreak.diff %if 0%{?suse_version} # for >= 11.1 validity tests BuildRequires: gnome-icon-theme kdelibs3 %endif %description Qt based serial terminal %prep %setup %patch -p1 %build cmake . make %install mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 install -s -m 755 %{name} $RPM_BUILD_ROOT/%{_bindir}/ gzip %{name}.1 install -m 644 %{name}.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1/ install -d 755 $RPM_BUILD_ROOT%{_datadir}/applications install -m 644 %SOURCE3 $RPM_BUILD_ROOT%{_datadir}/applications/ install -d 755 $RPM_BUILD_ROOT%{_datadir}/pixmaps install -m 644 %SOURCE4 $RPM_BUILD_ROOT%{_datadir}/pixmaps/ %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %doc Changelog TODO COPYING README %changelog ++++++ cutecom-0.22.0-nolinebreak.diff ++++++ diff -ruN cutecom-0.22.0/qcppdialogimpl.cpp cutecom-0.22.0-nolinebreak/qcppdialogimpl.cpp --- cutecom-0.22.0/qcppdialogimpl.cpp 2009-06-25 21:10:49.000000000 +0100 +++ cutecom-0.22.0-nolinebreak/qcppdialogimpl.cpp 2010-08-04 15:57:15.951009886 +0100 @@ -18,6 +18,7 @@ #include "qcppdialogimpl.h" +#include <qscrollbar.h> #include <qcombobox.h> #include <qpushbutton.h> #include <qcheckbox.h> @@ -1362,13 +1363,23 @@ void QCPPDialogImpl::doOutput() { - if (m_outputBuffer.isEmpty()) - { - return; - } + QScrollBar* vScrollBar; + bool scrollWithText; + + if (m_outputBuffer.isEmpty()) + return; + + vScrollBar = m_outputView->verticalScrollBar(); + scrollWithText = (vScrollBar->value() == vScrollBar->maximum()); + + QTextCursor cursor(m_outputView->document()); + cursor.movePosition(QTextCursor::End); + cursor.insertText(m_outputBuffer); + + if ((scrollWithText)) + vScrollBar->setValue(vScrollBar->maximum()); - m_outputView->append(m_outputBuffer); - m_outputBuffer.clear(); + m_outputBuffer.clear(); } void QCPPDialogImpl::hexOutputClicked(bool /* on */) ++++++ cutecom.desktop ++++++ [Desktop Entry] Encoding=UTF-8 Name=CuteCom GenericName=Serial Terminal Exec=cutecom Icon=cutecom Type=Application Terminal=0 X-KDE-StartupNotify=false X-SuSE-translate=false Categories=System;TerminalEmulator; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
