/* $Id$ */
/** @file
* VBox Qt GUI - QIArrowButtonSwitch class implementation.
*/
/*
* Copyright (C) 2006-2014 Oracle Corporation
*
* 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.
*/
# include <precomp.h>
#else /* !VBOX_WITH_PRECOMPILED_HEADERS */
/* Qt includes: */
# include <QKeyEvent>
/* GUI includes: */
# include "QIArrowButtonSwitch.h"
#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
{
/* Update icon: */
updateIcon();
}
void QIArrowButtonSwitch::setIconForButtonState(QIArrowButtonSwitch::ButtonState buttonState, const QIcon &icon)
{
/* Assign icon: */
/* Update icon: */
updateIcon();
}
{
/* Toggle button-state: */
/* Update icon: */
updateIcon();
}
{
/* Handle different keys: */
{
/* Animate-click for the Space key: */
default: break;
}
/* Call to base-class: */
}
{
}