~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to kjots/kjotsedit.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
{
68
68
    setAcceptRichText(true);
69
69
    setWordWrapMode(QTextOption::WordWrap);
 
70
    setCheckSpellingEnabled(true);
70
71
    setRichTextSupport( FullTextFormattingSupport
71
72
            | FullListSupport
72
73
            | SupportAlignment
83
84
{
84
85
}
85
86
 
 
87
#ifndef HAVE_MOUSEPOPUPMENUIMPLEMENTATION
86
88
void KJotsEdit::contextMenuEvent( QContextMenuEvent *event )
87
89
{
88
90
    QMenu *popup = createStandardContextMenu();
105
107
    popup->exec( event->globalPos() );
106
108
    delete popup;
107
109
}
 
110
#endif
 
111
 
 
112
void KJotsEdit::mousePopupMenuImplementation(const QPoint& pos)
 
113
{
 
114
   QMenu *popup = mousePopupMenu();
 
115
   if ( popup ) {
 
116
        popup->addSeparator();
 
117
    QAction * act = actionCollection->action("copyIntoTitle");
 
118
    popup->addAction(act);
 
119
    act = actionCollection->action("insert_checkmark");
 
120
    act->setEnabled( !isReadOnly() );
 
121
    popup->addAction(act);
 
122
 
 
123
    if (!KApplication::kApplication()->clipboard()->text().isEmpty())
 
124
    {
 
125
      act = actionCollection->action("paste_plain_text");
 
126
      act->setEnabled( !isReadOnly() );
 
127
      popup->addAction( act );
 
128
    }
 
129
 
 
130
     aboutToShowContextMenu(popup);
 
131
     popup->exec( pos );
 
132
     delete popup;
 
133
   }
 
134
}
108
135
 
109
136
void KJotsEdit::delayedInitialization ( KActionCollection *collection )
110
137
{