Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3ad0ad05
Commit
3ad0ad05
authored
Apr 05, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Small modifications to messages dialog.
parent
19775ff8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
modules/gui/qt4/dialogs/messages.cpp
modules/gui/qt4/dialogs/messages.cpp
+5
-1
modules/gui/qt4/util/qvlcframe.hpp
modules/gui/qt4/util/qvlcframe.hpp
+12
-9
No files found.
modules/gui/qt4/dialogs/messages.cpp
View file @
3ad0ad05
...
...
@@ -45,12 +45,16 @@ MessagesDialog::MessagesDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
QPushButton
*
clearButton
=
new
QPushButton
(
qtr
(
"&Clear"
)
);
QPushButton
*
saveLogButton
=
new
QPushButton
(
qtr
(
"&Save as..."
)
);
closeButton
->
setDefault
(
true
);
verbosityBox
=
new
QSpinBox
();
verbosityBox
->
setRange
(
0
,
2
);
verbosityBox
->
setValue
(
config_GetInt
(
p_intf
,
"verbose"
)
);
verbosityBox
->
setWrapping
(
true
);
verbosityBox
->
setMaximumWidth
(
50
);
QLabel
*
verbosityLabel
=
new
QLabel
(
qtr
(
"Verbosity Level"
)
);
messages
=
new
QTextEdit
();
messages
->
setReadOnly
(
true
);
messages
->
setGeometry
(
0
,
0
,
440
,
600
);
...
...
@@ -142,7 +146,7 @@ void MessagesDialog::updateLog()
void
MessagesDialog
::
close
()
{
this
->
toggleVisibl
e
();
this
->
hid
e
();
}
void
MessagesDialog
::
clear
()
...
...
modules/gui/qt4/util/qvlcframe.hpp
View file @
3ad0ad05
...
...
@@ -114,17 +114,19 @@ protected:
{
hide
();
}
void
keyPressEvent
(
QKeyEvent
*
keyEvent
)
v
irtual
v
oid
keyPressEvent
(
QKeyEvent
*
keyEvent
)
{
if
(
keyEvent
->
key
()
==
Qt
::
Key_Escape
)
{
msg_Dbg
(
p_intf
,
"Escp Key pressed"
);
cancel
();
}
else
if
(
keyEvent
->
key
()
==
Qt
::
Key_
Enter
)
else
if
(
keyEvent
->
key
()
==
Qt
::
Key_
Return
)
{
msg_Dbg
(
p_intf
,
"Enter Key pressed"
);
close
();
}
msg_Dbg
(
p_intf
,
"Enter Key pressed"
);
close
();
}
}
};
...
...
@@ -152,16 +154,17 @@ protected:
{
hide
();
}
void
keyPressEvent
(
QKeyEvent
*
keyEvent
)
v
irtual
v
oid
keyPressEvent
(
QKeyEvent
*
keyEvent
)
{
if
(
keyEvent
->
key
()
==
Qt
::
Key_Escape
)
{
msg_Dbg
(
p_intf
,
"Escp Key pressed"
);
cancel
();
}
else
if
(
keyEvent
->
key
()
==
Qt
::
Key_
Enter
)
else
if
(
keyEvent
->
key
()
==
Qt
::
Key_
Return
)
{
msg_Dbg
(
p_intf
,
"Enter Key pressed"
);
close
();
msg_Dbg
(
p_intf
,
"Enter Key pressed"
);
close
();
}
}
};
...
...
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