summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index b160604..15290ce 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -143,5 +143,6 @@ void MainWindow::initUI() {
143 */ 143 */
144 m_isWrapped = false; 144 m_isWrapped = true;
145 m_wrap = new QAction( tr("Line wrap"), Resource::loadPixmap( "linewrap" ), QString::null, 0, this, 0 ); 145 m_wrap = new QAction( tr("Line wrap"), Resource::loadPixmap( "linewrap" ), QString::null, 0, this, 0, true );
146 m_wrap->addTo( m_console ); 146 m_wrap->addTo( m_console );
147 m_wrap->setOn( true );
147 connect( m_wrap, SIGNAL( activated() ), SLOT( slotWrap() ) ); 148 connect( m_wrap, SIGNAL( activated() ), SLOT( slotWrap() ) );
@@ -154,3 +155,3 @@ void MainWindow::initUI() {
154 m_fullscreen = new QAction( tr("Full screen"), Resource::loadPixmap( "fullscreen" ) 155 m_fullscreen = new QAction( tr("Full screen"), Resource::loadPixmap( "fullscreen" )
155 , QString::null, 0, this, 0); 156 , QString::null, 0, this, 0, true );
156 m_fullscreen->addTo( m_console ); 157 m_fullscreen->addTo( m_console );
@@ -536,3 +537,2 @@ void MainWindow::create( const Profile& prof ) {
536 537
537
538 QWidget *w = currentSession()->widget(); 538 QWidget *w = currentSession()->widget();
@@ -636,12 +636,4 @@ void MainWindow::slotWrap()
636 { 636 {
637 if(m_isWrapped) 637 e->setWrap( m_isWrapped ? 80:0 );
638 { 638 m_isWrapped = !m_isWrapped;
639 e->setWrap(80);
640 m_isWrapped = false;
641 }
642 else
643 {
644 e->setWrap(0);
645 m_isWrapped = true;
646 }
647 } 639 }