~siretart/vlc/ubuntu

« back to all changes in this revision

Viewing changes to modules/gui/qt4/qt4.hpp

  • Committer: Reinhard Tartler
  • Date: 2008-09-26 06:45:40 UTC
  • mto: (21.2.1 vlc-0.9.3)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: siretart@tauware.de-20080926064540-0sd8zwmig33ksmy4
Tags: upstream-ubuntu-0.9.3
Import upstream version 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * qt4.hpp : QT4 interface
3
3
 ****************************************************************************
4
4
 * Copyright (C) 2006-2007 the VideoLAN team
5
 
 * $Id$
 
5
 * $Id: 2a0e00420523594bcb04a4d6ece8af79e46f20a9 $
6
6
 *
7
7
 * Authors: Clément Stenac <zorglub@videolan.org>
8
8
 *          Jean-Baptiste Kempf <jb@videolan.org>
132
132
    return s;
133
133
}
134
134
 
 
135
static inline QString removeTrailingSlash( QString s )
 
136
{
 
137
    if( ( s.length() > 1 ) && ( s[s.length()-1] == QLatin1Char( '/' ) ) )
 
138
        s.remove( s.length() - 1, 1 );
 
139
    return s;
 
140
}
 
141
 
 
142
#define toNativeSepNoSlash( a ) toNativeSeparators( removeTrailingSlash( a ) )
 
143
 
135
144
static const int DialogEvent_Type = QEvent::User + DialogEventType + 1;
136
145
//static const int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
137
146
//static const int PLDockEvent_Type = QEvent::User + DialogEventType + 3;