[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/base/konq-plugins/domtreeviewer
From:       Pino Toscano <pino () kde ! org>
Date:       2008-02-29 17:08:22
Message-ID: 1204304902.544709.17675.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 780644 by pino:

when editing texts or values, we use plain text for them


 M  +3 -0      attributeeditwidget.ui  
 M  +3 -3      domtreeview.cpp  


--- trunk/extragear/base/konq-plugins/domtreeviewer/attributeeditwidget.ui #780643:780644
@@ -57,6 +57,9 @@
      <property name="tabChangesFocus" >
       <bool>true</bool>
      </property>
+     <property name="acceptRichText" >
+      <bool>false</bool>
+     </property>
     </widget>
    </item>
   </layout>
--- trunk/extragear/base/konq-plugins/domtreeviewer/domtreeview.cpp #780643:780644
@@ -965,7 +965,7 @@
 
     if (dlg.exec() != QDialog::Accepted) return;
 
-    text = dlg.textPane->text();
+    text = dlg.textPane->toPlainText();
   }
 
   DOM::Node curNode = item->node();
@@ -1205,7 +1205,7 @@
     res = dlg.exec();
 
     attrName = dlg.attrName->text();
-    attrValue = dlg.attrValue->text();
+    attrValue = dlg.attrValue->toPlainText();
   }
 
 //   kDebug(90180) << "name=" << attrName << " value=" << attrValue;
@@ -1235,7 +1235,7 @@
 
   if (cdata.isNull()) return;
 
-  ManipulationCommand *cmd = new ChangeCDataCommand(cdata, contentEditor->text());
+  ManipulationCommand *cmd = new ChangeCDataCommand(cdata, contentEditor->toPlainText());
   mainWindow()->executeAndAddCommand(cmd);
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic