Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
a0d528ca
Commit
a0d528ca
authored
Oct 30, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix info messages not displayed
parent
9900c13b
Changes
3
Show whitespace changes
Inline
Side-by-side
src/lib/qtimerWithTime.cpp
View file @
a0d528ca
...
...
@@ -29,3 +29,8 @@ qint64 QTimerWithTime::elapsed() const
{
return
m_time
.
elapsed
();
}
bool
QTimerWithTime
::
isValid
()
const
{
return
m_time
.
isValid
();
}
src/lib/qtimerWithTime.h
View file @
a0d528ca
...
...
@@ -29,6 +29,7 @@ class QTimerWithTime : public QTimer
public:
virtual
void
start
(
int
msec
);
qint64
elapsed
()
const
;
bool
isValid
()
const
;
private:
QElapsedTimer
m_time
;
...
...
src/statusbarmessagelabel.cpp
View file @
a0d528ca
...
...
@@ -149,10 +149,9 @@ void StatusBarMessageLabel::setMessage(const QString &text, MessageType type, in
int
delay
=
800
*
static_cast
<
int
>
(
m_currentMessage
.
type
==
ErrorMessage
||
m_currentMessage
.
type
==
MltError
);
m_queueTimer
.
start
(
delay
);
}
else
{
// Message with normal priority
m_messageQueue
.
push_back
(
item
);
if
(
m_queueTimer
.
elapsed
()
>=
m_currentMessage
.
timeoutMillis
)
{
if
(
!
m_queueTimer
.
isValid
()
||
m_queueTimer
.
elapsed
()
>=
m_currentMessage
.
timeoutMillis
)
{
m_queueTimer
.
start
(
0
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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