Logo Search packages:      
Sourcecode: zeiberbude version File versions

zbbutton.cc

/* zbbutton.cc
 * (c) 2002 Christian Töpp <c.toepp@gmx.de>
 */

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/


#include "zbbutton.hh"

zbbutton::zbbutton (QWidget * parent, const char *name):
QPushButton (parent, name)
{
  setFlat (true);
}

void
zbbutton::enterEvent (QEvent * e)
{
  if (!e->spontaneous ())
    {
      if (isEnabled ())
      setFlat (false);
    }
}

void
zbbutton::leaveEvent (QEvent * e)
{
  if (!e->spontaneous ())
    {
      setFlat (true);
    }
}

Generated by  Doxygen 1.6.0   Back to index