From 4c5a56dbaddb3ac6b587c61a8ba6841987cf60fa Mon Sep 17 00:00:00 2001 From: josef Date: Fri, 01 Nov 2002 11:12:54 +0000 Subject: - allow toggling of line wrap via menu, as requested If there was an icon, an entry in the menu bar could be made. --- (limited to 'noncore/apps/opie-console/emulation_handler.cpp') diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index e0f63cd..7924568 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp @@ -14,7 +14,7 @@ EmulationHandler::EmulationHandler( const Profile& prof, QWidget* parent,const c m_teWid = new TEWidget( parent, "TerminalMain"); // use setWrapAt(0) for classic behaviour (wrap at screen width, no scrollbar) // use setWrapAt(80) for normal console with scrollbar - m_teWid->setWrapAt(prof.readNumEntry("Wrap", 0) ? 0 : 80); + setWrap(prof.readNumEntry("Wrap", 0) ? 0 : 80); m_teWid->setMinimumSize(150, 70 ); m_script = 0; parent->resize( m_teWid->calcSize(80, 24 ) ); @@ -199,3 +199,8 @@ void EmulationHandler::copy() { void EmulationHandler::paste() { m_teWid->pasteClipboard(); } + +void EmulationHandler::setWrap(int columns) { + m_teWid->setWrapAt(columns); +} + -- cgit v0.9.0.2