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
8b04e33a
Commit
8b04e33a
authored
Sep 08, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Errors: cleanup, trailing spaces and (). Public => private.
parent
e4b84859
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
modules/gui/qt4/dialogs/errors.cpp
modules/gui/qt4/dialogs/errors.cpp
+6
-6
modules/gui/qt4/dialogs/errors.hpp
modules/gui/qt4/dialogs/errors.hpp
+1
-1
No files found.
modules/gui/qt4/dialogs/errors.cpp
View file @
8b04e33a
/*****************************************************************************
* errors.cpp : Errors
****************************************************************************
* Copyright (
C
) 2006 the VideoLAN team
* Copyright (
C
) 2006 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
...
...
@@ -9,7 +9,7 @@
* 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.
* (
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
...
...
@@ -40,12 +40,12 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
setWindowModality
(
Qt
::
ApplicationModal
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
QPushButton
*
clearButton
=
new
QPushButton
(
qtr
(
"&Clear"
)
);
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
QPushButton
*
clearButton
=
new
QPushButton
(
qtr
(
"&Clear"
)
);
messages
=
new
QTextEdit
();
messages
->
setReadOnly
(
true
);
messages
->
setHorizontalScrollBarPolicy
(
Qt
::
ScrollBarAlwaysOff
);
stopShowing
=
new
QCheckBox
(
qtr
(
"Hide future errors"
)
);
stopShowing
=
new
QCheckBox
(
qtr
(
"Hide future errors"
)
);
layout
->
addWidget
(
messages
,
0
,
0
,
1
,
3
);
layout
->
addWidget
(
stopShowing
,
1
,
0
);
...
...
@@ -73,7 +73,7 @@ void ErrorsDialog::add( bool error, QString title, QString text )
if
(
stopShowing
->
isChecked
()
)
return
;
messages
->
textCursor
().
movePosition
(
QTextCursor
::
End
);
messages
->
setTextColor
(
error
?
"red"
:
"yellow"
);
messages
->
insertPlainText
(
title
+
QString
(
":
\n
"
));
messages
->
insertPlainText
(
title
+
QString
(
":
\n
"
)
);
messages
->
setTextColor
(
"black"
);
messages
->
insertPlainText
(
text
+
QString
(
"
\n
"
)
);
messages
->
ensureCursorVisible
();
...
...
modules/gui/qt4/dialogs/errors.hpp
View file @
8b04e33a
...
...
@@ -51,7 +51,7 @@ private:
QCheckBox
*
stopShowing
;
QTextEdit
*
messages
;
p
ublic
slots
:
p
rivate
slots
:
void
close
();
void
clear
();
void
dontShow
();
...
...
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