mudbox::MirrorComboBox Class Reference

#include <widgets.h>

List of all members.


Detailed Description

MirrorComboBox is a QComboBox that emits a signal when it loses keyboard focus.

This is useful when creating menus (such as the Mirror Mode menu found in the property window of several tools) that provide previews as the user scrolls through them.


Signals

void  departed (int)
  This signal is emitted when the MirrorComboBox loses keyboard focus.

Public Member Functions

  MirrorComboBox (QWidget *parent=0, const char *name=0)
  Constructor (the same as QComboBox).
  ~MirrorComboBox ()
  Destructor.

Protected Member Functions

void  focusOutEvent (QFocusEvent *)
  This QWidget method is overridden here to emit the "departed" signal.

Constructor & Destructor Documentation

mudbox::MirrorComboBox::MirrorComboBox QWidget *  parent = 0,
const char *  name = 0
[inline]
 

Constructor (the same as QComboBox).

00485         :QComboBox(parent){ setObjectName(name); }
mudbox::MirrorComboBox::~MirrorComboBox  )  [inline]
 

Destructor.

00488 {}

Member Function Documentation

void mudbox::MirrorComboBox::departed int   )  [signal]
 

This signal is emitted when the MirrorComboBox loses keyboard focus.

The value of its parameter is always 0.

void mudbox::MirrorComboBox::focusOutEvent QFocusEvent *   )  [inline, protected]
 

This QWidget method is overridden here to emit the "departed" signal.

00498         {
00499             emit departed(0);
00500         }

mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox
mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox mudbox::MirrorComboBox