]> git.sesse.net Git - vlc/commitdiff
Qt4 - move the VISIBLE() define to qt4.hpp to use it everywhere.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 31 Aug 2007 10:29:48 +0000 (10:29 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 31 Aug 2007 10:29:48 +0000 (10:29 +0000)
modules/gui/qt4/qt4.hpp

index afbf7e5c52c40870abb859aaed5ffaf9a3f7236e..0643f86f79395b2027b49f4fd514c97b8a45c22c 100644 (file)
@@ -88,6 +88,8 @@ struct intf_sys_t
     BUTTON_SET_IMG( button, text, image, tooltip );                \
     BUTTONACT( button, thisslot );
 
+#define VISIBLE(i) (i && i->isVisible())
+
 static int DialogEvent_Type = QEvent::User + 1;
 static int PLUndockEvent_Type = QEvent::User + 2;
 static int PLDockEvent_Type = QEvent::User + 3;