QILabel.h revision 7deb074e6e8aa00629a25f2c7f369f1f876d0342
/** @file
*
* VBox frontends: Qt GUI ("VirtualBox"):
* VirtualBox Qt extensions: QILabel class declaration
*/
/*
* Copyright (C) 2006-2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*
* This class is based on the original QLabel implementation.
*/
#ifndef __QILabel_h__
#define __QILabel_h__
/* Global includes */
#include <QLabel>
{
/* Focusing extensions */
bool fullSizeSelection() const;
void setFullSizeSelection (bool aEnabled);
/* Size-Hint extensions */
void useSizeHintForWidth (int aWidthHint) const;
QSize minimumSizeHint() const;
/* Default QLabel methods */
void clear();
void copy();
void init();
void updateSizeHint() const;
void updateText();
bool mFullSizeSelection;
static const QRegExp mCopyRegExp;
static QRegExp mElideRegExp;
mutable bool mIsHintValid;
mutable int mWidthHint;
bool mStartDragging;
};
#endif // __QILabel_h__