Commit 8a03e6bf authored by Laurent Montel's avatar Laurent Montel 😁

Use KTextEdit in note so we can spell check and co

parent 4a88f813
......@@ -137,7 +137,8 @@ void Backend::entriesListed( const QList< KBlog::BlogPost > & posts )
kDebug() << "Blog Id: " << d->bBlog->id();
// DBMan::self()->clearPosts( d->bBlog->id() );
for ( int i = 0; i < posts.count(); i++ ) {
const int postCount(posts.count());
for ( int i = 0; i < postCount; ++i ) {
BilboPost tempPost( posts.at(i) );
if(Settings::changeNToBreak()) {
tempPost.setContent( tempPost.content().replace( QLatin1Char('\n'), QLatin1String("<br/>") ) );
......
......@@ -56,6 +56,7 @@
#include <kimagefilepreview.h>
#include "uploadmediadialog.h"
#include <QTimer>
#include <QKeyEvent>
#include <KToolInvocation>
#include <KMenu>
......
......@@ -27,7 +27,7 @@
<x>0</x>
<y>0</y>
<width>343</width>
<height>437</height>
<height>441</height>
</rect>
</property>
<attribute name="label">
......@@ -127,7 +127,7 @@
<x>0</x>
<y>0</y>
<width>343</width>
<height>437</height>
<height>441</height>
</rect>
</property>
<attribute name="label">
......@@ -154,7 +154,7 @@
<x>0</x>
<y>0</y>
<width>333</width>
<height>362</height>
<height>370</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
......@@ -238,7 +238,7 @@
<x>0</x>
<y>0</y>
<width>343</width>
<height>437</height>
<height>441</height>
</rect>
</property>
<attribute name="label">
......@@ -482,13 +482,16 @@
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="txtSummary">
<widget class="KTextEdit" name="txtSummary">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
</widget>
</item>
<item>
......@@ -511,8 +514,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>343</width>
<height>437</height>
<width>94</width>
<height>110</height>
</rect>
</property>
<attribute name="label">
......@@ -598,35 +601,40 @@
</widget>
<customwidgets>
<customwidget>
<class>KListWidget</class>
<extends>QListWidget</extends>
<header>klistwidget.h</header>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KDateWidget</class>
<extends>QWidget</extends>
<header>kdatewidget.h</header>
</customwidget>
<customwidget>
<class>KPushButton</class>
<extends>QPushButton</extends>
<header>kpushbutton.h</header>
</customwidget>
<customwidget>
<class>KLineEdit</class>
<extends>QLineEdit</extends>
<header>klineedit.h</header>
</customwidget>
<customwidget>
<class>KComboBox</class>
<extends>QComboBox</extends>
<header>kcombobox.h</header>
</customwidget>
<customwidget>
<class>KSeparator</class>
<extends>QFrame</extends>
<header>kseparator.h</header>
</customwidget>
<customwidget>
<class>KPushButton</class>
<extends>QPushButton</extends>
<header>kpushbutton.h</header>
</customwidget>
<customwidget>
<class>KTextEdit</class>
<extends>QTextEdit</extends>
<header>ktextedit.h</header>
</customwidget>
<customwidget>
<class>KListWidget</class>
<extends>QListWidget</extends>
<header>klistwidget.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>btnCatAdd</tabstop>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment