/** @file
 *
 * VBox frontends: Qt GUI ("VirtualBox"):
 * VirtualBox Qt extensions: QITabWidget class implementation
 */

/*
 * Copyright (C) 2010 Oracle Corporation
 *
 * This file is part of VirtualBox Open Source Edition (OSE), as
 * available from http://www.virtualbox.org. This file is free software;
 * you can redistribute it and/or modify it under the terms of the GNU
 * 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.
 */

#ifndef __QITabWidget_h__
#define __QITabWidget_h__

/* Qt includes */
#include <QTabWidget>

class QITabWidget: public QTabWidget
{
    Q_OBJECT;

public:

    QITabWidget(QWidget *pParent = 0)
      :QTabWidget(pParent)
    {
#ifdef Q_WS_MAC
        /* I don't know why, but for some languages there is ElideRight the
           default on Mac OS X. Fix this. */
        setElideMode(Qt::ElideNone);
#endif /* Q_WS_MAC */
    }
};

#endif /* __QITabWidget_h__ */

