/****************************************************************************
** $Id: qfocusdata.h,v 2.5 1998/07/03 00:09:32 hanord Exp $
**
** Definition of internal QFocusData class
**
** Created : 980405
**
** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
**
** This file is part of Qt Free Edition, version 1.40.
**
** See the file LICENSE included in the distribution for the usage
** and distribution terms, or http://www.troll.no/free-license.html.
**
** IMPORTANT NOTE: You may NOT copy this file or any part of it into
** your own programs or libraries.
**
** Please see http://www.troll.no/pricing.html for information about
** Qt Professional Edition, which is this same library but with a
** license which allows creation of commercial/proprietary software.
**
*****************************************************************************/
#ifndef QFOCUSDATA_H
#define QFOCUSDATA_H
#ifndef QT_H
#include "qlist.h"
#include "qwidget.h"
#endif // QT_H
class QFocusData {
public:
QWidget* focusWidget() const { return it.current(); }
// List-iteration
QWidget* home();
QWidget* next();
QWidget* prev();
int count() const { return focusWidgets.count(); }
private:
friend class QWidget;
QFocusData()
: it(focusWidgets) {}
QList<QWidget> focusWidgets;
QListIterator<QWidget> it;
};
#endif // QFOCUSDATA_H
| Copyright © 1998 Troll Tech | Trademarks | Qt version 1.40
|