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
1464d905
Commit
1464d905
authored
Jan 14, 2016
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt: display the default username in login dialog
parent
06b23fcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/gui/qt4/dialogs/external.cpp
modules/gui/qt4/dialogs/external.cpp
+6
-0
No files found.
modules/gui/qt4/dialogs/external.cpp
View file @
1464d905
...
...
@@ -111,6 +111,8 @@ void DialogHandler::requestLogin (void *value)
grid
->
addWidget
(
new
QLabel
(
qfu
(
data
->
message
)),
0
,
0
,
1
,
2
);
QLineEdit
*
userLine
=
new
QLineEdit
;
if
(
data
->
default_username
!=
NULL
)
userLine
->
setText
(
qtr
(
data
->
default_username
));
grid
->
addWidget
(
new
QLabel
(
qtr
(
"Username"
)),
1
,
0
);
grid
->
addWidget
(
userLine
,
1
,
1
);
...
...
@@ -131,6 +133,10 @@ void DialogHandler::requestLogin (void *value)
panel
->
setLayout
(
grid
);
layout
->
addWidget
(
panel
);
/* focus on passLine if the username is already set */
if
(
data
->
default_username
!=
NULL
)
passLine
->
setFocus
();
/* OK, Cancel buttons */
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
;
QPushButton
*
okButton
=
new
QPushButton
(
"&Ok"
);
...
...
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