~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to kchart/table.cc

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/****************************************************************************
2
 
** $Id: table.cc,v 1.11 2000/12/21 07:59:47 mlaurent Exp $
3
2
**
4
3
** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
5
4
**
19
18
#include "table.h"
20
19
#include "table.moc"
21
20
 
22
 
#include <kapp.h>
 
21
#include <kapplication.h>
23
22
 
24
23
SheetTable::SheetTable( int cols, int rows, QWidget *parent,
25
24
                          int flags, const char *name, bool _editable)
26
 
    :QTableView(parent,name)
 
25
    :QtTableView(parent,name)
27
26
{
28
27
    editable = _editable;
29
28
    if ( flags < 0 )
70
69
void SheetTable::setText( int row, int col, QString s, bool paint )
71
70
{
72
71
  //table[index(row,col)].operator=( s.copy() );
73
 
  
 
72
 
74
73
  table.remove(table.at(index(row,col)));
75
74
  table.insert(table.at(index(row,col)), s);
76
 
  
 
75
 
77
76
  int x,y;
78
77
    if ( paint && rowYPos( row, &y ) && colXPos( col, &x ))
79
78
        repaint( x,y, cellWidth(col), cellHeight(row));
145
144
    inCol_inRow_initialization = FALSE;
146
145
    moveInput( r, c );
147
146
}
148
 
  
 
147
 
149
148
void SheetTable::moveInput( int row, int col )
150
149
{
151
150
    if ( col < 0 || row < 0 )