Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d317831d
Commit
d317831d
authored
May 10, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Qt, recents: elipse on the left the mrl"
This reverts commit
7e1526b9
.
parent
3ae42e74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
modules/gui/qt4/recents.cpp
modules/gui/qt4/recents.cpp
+3
-5
No files found.
modules/gui/qt4/recents.cpp
View file @
d317831d
...
...
@@ -31,7 +31,6 @@
#include <QSettings>
#include <QRegExp>
#include <QSignalMapper>
#include <QFontMetrics>
#ifdef WIN32
#include <shlobj.h>
...
...
@@ -43,7 +42,7 @@
SHARD_APPIDINFOIDLIST = 0x00000005,
SHARD_LINK = 0x00000006,
SHARD_APPIDINFOLINK = 0x00000007,
SHARD_SHELLITEM = 0x00000008
SHARD_SHELLITEM = 0x00000008
} SHARD; */
#define SHARD_PATHW 0x00000003
#endif
...
...
@@ -91,9 +90,8 @@ void RecentsMRL::addRecent( const QString &mrl )
/* Add to the Windows 7 default list in taskbar */
SHAddToRecentDocs
(
SHARD_PATHW
,
qtu
(
mrl
)
);
#endif
QString
mrl2
=
QApplication
::
fontMetrics
().
elidedText
(
mrl
,
Qt
::
ElideLeft
,
400
);
int
i_index
=
stack
->
indexOf
(
mrl
2
);
int
i_index
=
stack
->
indexOf
(
mrl
);
if
(
0
<=
i_index
)
{
/* move to the front */
...
...
@@ -101,7 +99,7 @@ void RecentsMRL::addRecent( const QString &mrl )
}
else
{
stack
->
prepend
(
mrl
2
);
stack
->
prepend
(
mrl
);
if
(
stack
->
size
()
>
RECENTS_LIST_SIZE
)
stack
->
takeLast
();
}
...
...
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