QIStatusBar.h revision e2de40b4b54a8ea51348be768ddcd3ecd753d7b6
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync/** @file
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync *
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync * VBox frontends: Qt GUI ("VirtualBox"):
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync * VirtualBox Qt extensions: QIStatusBar class declaration
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync */
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync/*
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync *
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync * available from http://www.virtualbox.org. This file is free software;
c58f1213e628a545081c70e26c6b67a841cff880vboxsync * you can redistribute it and/or modify it under the terms of the GNU
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync * General Public License (GPL) as published by the Free Software
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync *
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
82bcaaf8077ba892f39afb721dca149353c63d2cvboxsync * additional information or have any questions.
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync */
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync#ifndef __QIStatusBar_h__
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync#define __QIStatusBar_h__
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync/* Qt includes */
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync#include <QStatusBar>
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
43747b1f0bc8302a238fb35e55857a5e9aa1933dvboxsync/**
ee271ac5f5a0f262528a59171392bffd9108509bvboxsync * The QIStatusBar class is a replacement of QStatusBar with disabling
d0e467f88aeb4288b409908dbe1b96d07c7133b2vboxsync * drawing of sunken borders around every widget on the status bar.
b79e974bbebf5c83f3277b8f3a54ad98f2496caavboxsync */
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsyncclass QIStatusBar : public QStatusBar
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync{
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync Q_OBJECT;
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsyncpublic:
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync QIStatusBar (QWidget *aParent = 0);
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsyncprotected slots:
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync void rememberLastMessage (const QString &aMsg) { mMessage = aMsg; }
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsyncprotected:
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync QString mMessage;
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync};
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync#endif // __QIStatusBar_h__
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync
cb4a18edeb5422163b264fe5a66276769cfe864dvboxsync