author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/cellitem.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/cellitem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/korganizer/cellitem.h b/korganizer/cellitem.h index 72773d0..b917bd5 100644 --- a/korganizer/cellitem.h +++ b/korganizer/cellitem.h | |||
@@ -12,55 +12,55 @@ | |||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | #ifndef KORG_CELLITEM_H | 24 | #ifndef KORG_CELLITEM_H |
25 | #define KORG_CELLITEM_H | 25 | #define KORG_CELLITEM_H |
26 | 26 | ||
27 | #include <qstring.h> | 27 | #include <qstring.h> |
28 | #include <qptrlist.h> | 28 | #include <q3ptrlist.h> |
29 | 29 | ||
30 | namespace KOrg { | 30 | namespace KOrg { |
31 | 31 | ||
32 | class CellItem | 32 | class CellItem |
33 | { | 33 | { |
34 | public: | 34 | public: |
35 | CellItem() | 35 | CellItem() |
36 | : mSubCells( 0 ), mSubCell( -1 ) | 36 | : mSubCells( 0 ), mSubCell( -1 ) |
37 | { | 37 | { |
38 | } | 38 | } |
39 | 39 | ||
40 | void setSubCells( int v ) { mSubCells = v; } | 40 | void setSubCells( int v ) { mSubCells = v; } |
41 | int subCells() const { return mSubCells; } | 41 | int subCells() const { return mSubCells; } |
42 | 42 | ||
43 | void setSubCell( int v ) { mSubCell = v; } | 43 | void setSubCell( int v ) { mSubCell = v; } |
44 | int subCell() const { return mSubCell; } | 44 | int subCell() const { return mSubCell; } |
45 | 45 | ||
46 | virtual bool overlaps( CellItem *other ) const = 0; | 46 | virtual bool overlaps( CellItem *other ) const = 0; |
47 | 47 | ||
48 | virtual QString label() const; | 48 | virtual QString label() const; |
49 | 49 | ||
50 | /** | 50 | /** |
51 | Place item \arg placeItem into stripe containing items \arg cells in a | 51 | Place item \arg placeItem into stripe containing items \arg cells in a |
52 | way that items don't overlap. | 52 | way that items don't overlap. |
53 | 53 | ||
54 | \return Placed items | 54 | \return Placed items |
55 | */ | 55 | */ |
56 | static QPtrList<CellItem> placeItem( QPtrList<CellItem> cells, | 56 | static Q3PtrList<CellItem> placeItem( Q3PtrList<CellItem> cells, |
57 | CellItem *placeItem ); | 57 | CellItem *placeItem ); |
58 | 58 | ||
59 | private: | 59 | private: |
60 | int mSubCells; | 60 | int mSubCells; |
61 | int mSubCell; | 61 | int mSubCell; |
62 | }; | 62 | }; |
63 | 63 | ||
64 | } | 64 | } |
65 | 65 | ||
66 | #endif | 66 | #endif |