~ubuntu-branches/ubuntu/saucy/xxdiff/saucy

« back to all changes in this revision

Viewing changes to src/text.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Tomas Pospisek
  • Date: 2006-12-03 21:41:08 UTC
  • mfrom: (3.1.3 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203214108-l7d3sleqmf1uu1is
Tags: 1:3.2-2
* oops /usr/man slipped in again. Re-re-re-moving it.
* fix doc-base reference problems reported by lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- c-file-style: "xxdiff" -*- */
2
2
/******************************************************************************\
3
 
 * $RCSfile: text.cpp,v $
 
3
 * $RCSfile$
4
4
 *
5
5
 * Copyright (C) 1999-2003  Martin Blais <blais@furius.ca>
6
6
 *
228
228
   // We do this multiple times for nothing, but I'd rather have it here
229
229
   // localized where it is implemented. This doesn't hurt.
230
230
   QClipboard* cb = QkApplication::clipboard();
231
 
   cb->setSelectionMode( true );
232
231
 
233
232
   // Bind clear to change signal.
234
233
   connect( cb, SIGNAL(selectionChanged()), this, SLOT(clearRegionSelect()) );
538
537
            QRect brect = fm.boundingRect(
539
538
               -128, -128, 8192, 2048,
540
539
               Qt::AlignLeft | Qt::AlignTop | Qt::SingleLine,
541
 
               chunk, rlen
 
540
               chunk, rlen, 0, 0
542
541
            );
543
542
 
544
543
            if ( (xpx + brect.width()) > 0 ) {
782
781
         _grabDeltaLineNo = dlineno;
783
782
 
784
783
         QClipboard* cb = QkApplication::clipboard();
785
 
         cb->clear();
 
784
         cb->clear( QClipboard::Selection );
786
785
 
787
786
         _regionSelect[0] = _grabTopLine + dlineno;
788
787
         _regionSelect[1] = -1;
883
882
   }
884
883
 
885
884
   QClipboard* cb = QkApplication::clipboard();
886
 
   cb->setText( textCopy );
 
885
   cb->setText( textCopy, QClipboard::Selection );
887
886
 
888
887
   if ( event->button() == LeftButton ||
889
888
        event->button() == MidButton ) {
997
996
 
998
997
            _dontClearOnce = true;
999
998
            QClipboard* cb = QkApplication::clipboard();
1000
 
            cb->setText( textCopy );
 
999
            cb->setText( textCopy, QClipboard::Selection );
1001
1000
         }
1002
1001
      }
1003
1002
   }