Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
0ac6bc13
Commit
0ac6bc13
authored
Dec 29, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Remove unneeded stuffs from qt4.hpp
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
f86dd941
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
60 additions
and
27 deletions
+60
-27
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+1
-0
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+1
-0
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+1
-0
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.cpp
+1
-0
modules/gui/qt4/dialogs/playlist.cpp
modules/gui/qt4/dialogs/playlist.cpp
+2
-0
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+1
-0
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-1
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+0
-23
modules/gui/qt4/util/input_slider.hpp
modules/gui/qt4/util/input_slider.hpp
+0
-1
modules/gui/qt4/util/qt_dirs.hpp
modules/gui/qt4/util/qt_dirs.hpp
+51
-0
modules/gui/qt4/util/qvlcapp.hpp
modules/gui/qt4/util/qvlcapp.hpp
+0
-1
No files found.
modules/gui/qt4/Modules.am
View file @
0ac6bc13
...
...
@@ -259,6 +259,7 @@ noinst_HEADERS = \
util/customwidgets.hpp \
util/qvlcframe.hpp \
util/qvlcapp.hpp \
util/qt_dirs.hpp \
util/registry.hpp
EXTRA_DIST += \
...
...
modules/gui/qt4/components/open_panels.cpp
View file @
0ac6bc13
...
...
@@ -34,6 +34,7 @@
#include "components/open_panels.hpp"
#include "dialogs/open.hpp"
#include "dialogs_provider.hpp"
/* Open Subtitle file */
#include "util/qt_dirs.hpp"
#include <QFileDialog>
#include <QDialogButtonBox>
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
0ac6bc13
...
...
@@ -36,6 +36,7 @@
#include "components/preferences_widgets.hpp"
#include "util/customwidgets.hpp"
#include "util/qt_dirs.hpp"
#include <vlc_keys.h>
#include <QString>
...
...
modules/gui/qt4/dialogs/help.cpp
View file @
0ac6bc13
...
...
@@ -27,6 +27,7 @@
#endif
#include "dialogs/help.hpp"
#include "util/qt_dirs.hpp"
#include <vlc_about.h>
#include <vlc_intf_strings.h>
...
...
modules/gui/qt4/dialogs/playlist.cpp
View file @
0ac6bc13
...
...
@@ -28,6 +28,8 @@
#include "components/playlist/playlist.hpp"
#include "util/qt_dirs.hpp"
#include <QUrl>
#include <QHBoxLayout>
...
...
modules/gui/qt4/dialogs/sout.cpp
View file @
0ac6bc13
...
...
@@ -32,6 +32,7 @@
#endif
#include "dialogs/sout.hpp"
#include "util/qt_dirs.hpp"
#include <QString>
#include <QFileDialog>
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
0ac6bc13
...
...
@@ -33,7 +33,7 @@
#include "input_manager.hpp"
/* Load Subtitles */
#include "menus.hpp"
#include "recents.hpp"
#include "util/q
vlcapp.hpp"
/* DialogEvent */
#include "util/q
t_dirs.hpp"
/* The dialogs */
#include "dialogs/playlist.hpp"
...
...
modules/gui/qt4/main_interface.cpp
View file @
0ac6bc13
...
...
@@ -33,7 +33,7 @@
#include "input_manager.hpp"
#include "util/customwidgets.hpp"
#include "util/q
vlcapp.hpp"
/* DialogEvent defintion */
#include "util/q
t_dirs.hpp"
#include "components/interface_widgets.hpp"
#include "components/controller.hpp"
...
...
modules/gui/qt4/qt4.hpp
View file @
0ac6bc13
...
...
@@ -115,27 +115,4 @@ struct intf_sys_t
#define getSettings() p_intf->p_sys->mainSettings
#include <QString>
/* Replace separators on Windows because Qt is always using / */
static
inline
QString
toNativeSeparators
(
QString
s
)
{
#ifdef WIN32
for
(
int
i
=
0
;
i
<
(
int
)
s
.
length
();
i
++
)
{
if
(
s
[
i
]
==
QLatin1Char
(
'/'
))
s
[
i
]
=
QLatin1Char
(
'\\'
);
}
#endif
return
s
;
}
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 ) )
#endif
modules/gui/qt4/util/input_slider.hpp
View file @
0ac6bc13
...
...
@@ -27,7 +27,6 @@
#include "qt4.hpp"
#include <QAbstractSlider>
#include <QSlider>
#include <QMouseEvent>
...
...
modules/gui/qt4/util/qt_dirs.hpp
0 → 100644
View file @
0ac6bc13
/*****************************************************************************
* dirs.hpp : String Directory helpers
****************************************************************************
* Copyright (C) 2006-2008 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb@videolan.org>
*
* 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef _QT_DIR_H_
#define _QT_DIR_H_
#include <QString>
/* Replace separators on Windows because Qt is always using / */
static
inline
QString
toNativeSeparators
(
QString
s
)
{
#ifdef WIN32
for
(
int
i
=
0
;
i
<
(
int
)
s
.
length
();
i
++
)
{
if
(
s
[
i
]
==
QLatin1Char
(
'/'
))
s
[
i
]
=
QLatin1Char
(
'\\'
);
}
#endif
return
s
;
}
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 ) )
#endif
modules/gui/qt4/util/qvlcapp.hpp
View file @
0ac6bc13
...
...
@@ -50,5 +50,4 @@ protected:
#endif
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment