-rw-r--r-- | noncore/apps/opie-sheet/ChangeLog | 4 | ||||
-rw-r--r-- | noncore/apps/opie-sheet/sheet.cpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/opie-sheet/ChangeLog b/noncore/apps/opie-sheet/ChangeLog index d3c5c84..c12a6db 100644 --- a/noncore/apps/opie-sheet/ChangeLog +++ b/noncore/apps/opie-sheet/ChangeLog | |||
@@ -1,16 +1,20 @@ | |||
1 | October 05, 2002 | ||
2 | |||
3 | - Fixed bug #252. (by thufir) | ||
4 | |||
1 | August 31, 2002 | 5 | August 31, 2002 |
2 | 6 | ||
3 | - Fixed and updated opie-sheet.pro file. (by cniehaus) | 7 | - Fixed and updated opie-sheet.pro file. (by cniehaus) |
4 | 8 | ||
5 | August 01, 2002 | 9 | August 01, 2002 |
6 | 10 | ||
7 | - Fixed gcc3 compile problems. (by harlekin) | 11 | - Fixed gcc3 compile problems. (by harlekin) |
8 | 12 | ||
9 | July 06, 2002 | 13 | July 06, 2002 |
10 | 14 | ||
11 | - Fixed DocLnk management to save documents correctly. (by leseb) | 15 | - Fixed DocLnk management to save documents correctly. (by leseb) |
12 | 16 | ||
13 | July 04, 2002 | 17 | July 04, 2002 |
14 | 18 | ||
15 | * Release 1.0.1 (by thufir) | 19 | * Release 1.0.1 (by thufir) |
16 | - Sheet/Qt is now a part of Opie, so its name is changed to Opie Sheet. (by thufir) | 20 | - Sheet/Qt is now a part of Opie, so its name is changed to Opie Sheet. (by thufir) |
diff --git a/noncore/apps/opie-sheet/sheet.cpp b/noncore/apps/opie-sheet/sheet.cpp index 2279191..be4046b 100644 --- a/noncore/apps/opie-sheet/sheet.cpp +++ b/noncore/apps/opie-sheet/sheet.cpp | |||
@@ -18,32 +18,33 @@ | |||
18 | #include <qmessagebox.h> | 18 | #include <qmessagebox.h> |
19 | #include <math.h> | 19 | #include <math.h> |
20 | 20 | ||
21 | #define DEFAULT_COL_WIDTH 50 | 21 | #define DEFAULT_COL_WIDTH 50 |
22 | 22 | ||
23 | Sheet::Sheet(int numRows, int numCols, QWidget *parent) | 23 | Sheet::Sheet(int numRows, int numCols, QWidget *parent) |
24 | :QTable(numRows, numCols, parent) | 24 | :QTable(numRows, numCols, parent) |
25 | { | 25 | { |
26 | defaultBorders.right=defaultBorders.bottom=QPen(Qt::gray, 1, Qt::SolidLine); | 26 | defaultBorders.right=defaultBorders.bottom=QPen(Qt::gray, 1, Qt::SolidLine); |
27 | defaultCellData.data=""; | 27 | defaultCellData.data=""; |
28 | defaultCellData.background=QBrush(Qt::white, Qt::SolidPattern); | 28 | defaultCellData.background=QBrush(Qt::white, Qt::SolidPattern); |
29 | defaultCellData.alignment=(Qt::AlignmentFlags)(Qt::AlignLeft | Qt::AlignTop); | 29 | defaultCellData.alignment=(Qt::AlignmentFlags)(Qt::AlignLeft | Qt::AlignTop); |
30 | defaultCellData.fontColor=Qt::black; | 30 | defaultCellData.fontColor=Qt::black; |
31 | defaultCellData.font=font(); | 31 | defaultCellData.font=font(); |
32 | defaultCellData.borders=defaultBorders; | 32 | defaultCellData.borders=defaultBorders; |
33 | 33 | ||
34 | clicksLocked=FALSE; | ||
34 | selectionNo=-1; | 35 | selectionNo=-1; |
35 | setSelectionMode(QTable::Single); | 36 | setSelectionMode(QTable::Single); |
36 | 37 | ||
37 | sheetData.setAutoDelete(TRUE); | 38 | sheetData.setAutoDelete(TRUE); |
38 | clipboardData.setAutoDelete(TRUE); | 39 | clipboardData.setAutoDelete(TRUE); |
39 | for (int i=0; i<numCols; ++i) | 40 | for (int i=0; i<numCols; ++i) |
40 | horizontalHeader()->setLabel(i, getHeaderString(i+1), DEFAULT_COL_WIDTH); | 41 | horizontalHeader()->setLabel(i, getHeaderString(i+1), DEFAULT_COL_WIDTH); |
41 | 42 | ||
42 | connect(this, SIGNAL(currentChanged(int, int)), this, SLOT(slotCellSelected(int, int))); | 43 | connect(this, SIGNAL(currentChanged(int, int)), this, SLOT(slotCellSelected(int, int))); |
43 | connect(this, SIGNAL(valueChanged(int, int)), this, SLOT(slotCellChanged(int, int))); | 44 | connect(this, SIGNAL(valueChanged(int, int)), this, SLOT(slotCellChanged(int, int))); |
44 | } | 45 | } |
45 | 46 | ||
46 | Sheet::~Sheet() | 47 | Sheet::~Sheet() |
47 | { | 48 | { |
48 | } | 49 | } |
49 | 50 | ||