-static inline QString removeTrailingSlash( QString s )
-{
- if( ( s.length() > 1 ) && ( s[s.length()-1] == QLatin1Char( '/' ) ) )
- s.remove( s.length() - 1, 1 );
- return s;
-}
-
-#define toNativeSepNoSlash( a ) toNativeSeparators( removeTrailingSlash( a ) )
-
-static const int DialogEvent_Type = QEvent::User + DialogEventType + 1;
-//static const int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
-//static const int PLDockEvent_Type = QEvent::User + DialogEventType + 3;
-static const int SetVideoOnTopEvent_Type = QEvent::User + DialogEventType + 4;
-
-class DialogEvent : public QEvent
-{
-public:
- DialogEvent( int _i_dialog, int _i_arg, intf_dialog_args_t *_p_arg ) :
- QEvent( (QEvent::Type)(DialogEvent_Type) )
- {
- i_dialog = _i_dialog;
- i_arg = _i_arg;
- p_arg = _p_arg;
- };
- virtual ~DialogEvent() {};
-
- int i_arg, i_dialog;
- intf_dialog_args_t *p_arg;
-};
-