Diffstat (limited to 'noncore/apps/opie-sheet/sheet.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/sheet.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/opie-sheet/sheet.cpp b/noncore/apps/opie-sheet/sheet.cpp index e1e4744..f303d33 100644 --- a/noncore/apps/opie-sheet/sheet.cpp +++ b/noncore/apps/opie-sheet/sheet.cpp | |||
@@ -1,41 +1,40 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | 9 | ||
10 | /* | 10 | /* |
11 | * Opie Sheet (formerly Sheet/Qt) | 11 | * Opie Sheet (formerly Sheet/Qt) |
12 | * by Serdar Ozler <sozler@sitebest.com> | 12 | * by Serdar Ozler <sozler@sitebest.com> |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "sheet.h" | 15 | #include "sheet.h" |
16 | 16 | ||
17 | #include <qmainwindow.h> | ||
18 | #include <qmessagebox.h> | 17 | #include <qmessagebox.h> |
19 | #include <math.h> | 18 | #include <math.h> |
20 | #include <stdlib.h> | 19 | #include <stdlib.h> |
21 | #include <stdio.h> | 20 | #include <stdio.h> |
22 | #include <time.h> | 21 | #include <time.h> |
23 | 22 | ||
24 | #define DEFAULT_COL_WIDTH 50 | 23 | #define DEFAULT_COL_WIDTH 50 |
25 | 24 | ||
26 | Sheet::Sheet(int numRows, int numCols, QWidget *parent) | 25 | Sheet::Sheet(int numRows, int numCols, QWidget *parent) |
27 | :QTable(numRows, numCols, parent) | 26 | :QTable(numRows, numCols, parent) |
28 | { | 27 | { |
29 | defaultBorders.right=defaultBorders.bottom=QPen(Qt::gray, 1, Qt::SolidLine); | 28 | defaultBorders.right=defaultBorders.bottom=QPen(Qt::gray, 1, Qt::SolidLine); |
30 | defaultCellData.data=""; | 29 | defaultCellData.data=""; |
31 | defaultCellData.background=QBrush(Qt::white, Qt::SolidPattern); | 30 | defaultCellData.background=QBrush(Qt::white, Qt::SolidPattern); |
32 | defaultCellData.alignment=(Qt::AlignmentFlags)(Qt::AlignLeft | Qt::AlignTop); | 31 | defaultCellData.alignment=(Qt::AlignmentFlags)(Qt::AlignLeft | Qt::AlignTop); |
33 | defaultCellData.fontColor=Qt::black; | 32 | defaultCellData.fontColor=Qt::black; |
34 | defaultCellData.font=font(); | 33 | defaultCellData.font=font(); |
35 | defaultCellData.borders=defaultBorders; | 34 | defaultCellData.borders=defaultBorders; |
36 | 35 | ||
37 | clicksLocked=FALSE; | 36 | clicksLocked=FALSE; |
38 | selectionNo=-1; | 37 | selectionNo=-1; |
39 | setSelectionMode(QTable::Single); | 38 | setSelectionMode(QTable::Single); |
40 | 39 | ||
41 | sheetData.setAutoDelete(TRUE); | 40 | sheetData.setAutoDelete(TRUE); |