|
Last change
on this file since 176 was 2, checked in by dmik, 20 years ago |
|
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | /****************************************************************************
|
|---|
| 2 | ** $Id: card.h 2 2005-11-16 15:49:26Z dmik $
|
|---|
| 3 | **
|
|---|
| 4 | ** Definition of simple flow layout for custom layout example
|
|---|
| 5 | **
|
|---|
| 6 | ** Created : 979899
|
|---|
| 7 | **
|
|---|
| 8 | ** Copyright (C) 1997 by Trolltech AS. All rights reserved.
|
|---|
| 9 | **
|
|---|
| 10 | ** This file is part of an example program for Qt. This example
|
|---|
| 11 | ** program may be used, distributed and modified without limitation.
|
|---|
| 12 | **
|
|---|
| 13 | *****************************************************************************/
|
|---|
| 14 |
|
|---|
| 15 | #ifndef CARD_H
|
|---|
| 16 | #define CARD_H
|
|---|
| 17 |
|
|---|
| 18 | #include <qlayout.h>
|
|---|
| 19 | #include <qptrlist.h>
|
|---|
| 20 |
|
|---|
| 21 | class CardLayout : public QLayout
|
|---|
| 22 | {
|
|---|
| 23 | public:
|
|---|
| 24 | CardLayout( QWidget *parent, int dist )
|
|---|
| 25 | : QLayout( parent, 0, dist ) {}
|
|---|
| 26 | CardLayout( QLayout* parent, int dist)
|
|---|
| 27 | : QLayout( parent, dist ) {}
|
|---|
| 28 | CardLayout( int dist )
|
|---|
| 29 | : QLayout( dist ) {}
|
|---|
| 30 | ~CardLayout();
|
|---|
| 31 |
|
|---|
| 32 | void addItem( QLayoutItem *item );
|
|---|
| 33 | QSize sizeHint() const;
|
|---|
| 34 | QSize minimumSize() const;
|
|---|
| 35 | QLayoutIterator iterator();
|
|---|
| 36 | void setGeometry( const QRect &rect );
|
|---|
| 37 |
|
|---|
| 38 | private:
|
|---|
| 39 | QPtrList<QLayoutItem> list;
|
|---|
| 40 |
|
|---|
| 41 | };
|
|---|
| 42 |
|
|---|
| 43 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.