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
e0193bf2
Commit
e0193bf2
authored
Mar 19, 2020
by
Jean-Baptiste Mardelle
Browse files
Add large warning in statusbar if movit enabled
parent
78aed6b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mainwindow.cpp
View file @
e0193bf2
...
...
@@ -1189,18 +1189,19 @@ void MainWindow::setupActions()
connect
(
m_zoomSlider
,
&
QAbstractSlider
::
sliderMoved
,
this
,
&
MainWindow
::
slotShowZoomSliderToolTip
);
connect
(
m_buttonFitZoom
,
&
QAction
::
triggered
,
this
,
&
MainWindow
::
slotFitZoom
);
m_trimLabel
=
new
QLabel
(
QStringLiteral
(
" "
),
this
);
m_trimLabel
->
setFont
(
QFontDatabase
::
systemFont
(
QFontDatabase
::
SmallestReadableFont
));
// m_trimLabel->setAutoFillBackground(true);
m_trimLabel
->
setAlignment
(
Qt
::
AlignHCenter
);
m_trimLabel
->
setStyleSheet
(
QStringLiteral
(
"QLabel { background-color :red; }"
));
KToolBar
*
toolbar
=
new
KToolBar
(
QStringLiteral
(
"statusToolBar"
),
this
,
Qt
::
BottomToolBarArea
);
toolbar
->
setMovable
(
false
);
toolbar
->
setToolButtonStyle
(
Qt
::
ToolButtonIconOnly
);
if
(
KdenliveSettings
::
gpu_accel
())
{
/*QString styleBorderless = QStringLiteral("QToolButton { border-width: 0px;margin: 1px 3px 0px;padding: 0px;}");*/
toolbar
->
addWidget
(
m_trimLabel
);
m_trimLabel
=
new
QLabel
(
i18n
(
"Experimental GPU processing enabled - not for production"
),
this
);
m_trimLabel
->
setFont
(
QFontDatabase
::
systemFont
(
QFontDatabase
::
SmallestReadableFont
));
// m_trimLabel->setAutoFillBackground(true);
m_trimLabel
->
setAlignment
(
Qt
::
AlignHCenter
);
m_trimLabel
->
setStyleSheet
(
QStringLiteral
(
"QLabel { background-color :red; color:black;padding-left:2px;padding-right:2px}"
));
toolbar
->
addWidget
(
m_trimLabel
);
}
toolbar
->
addAction
(
m_buttonAutomaticTransition
);
toolbar
->
addAction
(
m_buttonVideoThumbs
);
toolbar
->
addAction
(
m_buttonAudioThumbs
);
...
...
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