forked from qt-creator/qt-creator
QmlDesigner: Fix warnings about deprecated operator+
Use operator| instead. Change-Id: I34392de11a9430922a644851602d5cce4c72df42 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -153,7 +153,7 @@ ItemLibraryWidget::ItemLibraryWidget(AsynchronousImageCache &imageCache)
|
||||
setStyleSheet(Theme::replaceCssColors(
|
||||
QString::fromUtf8(::Utils::FileReader::fetchQrc(":/qmldesigner/stylesheet.css"))));
|
||||
|
||||
m_qmlSourceUpdateShortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_F5), this);
|
||||
m_qmlSourceUpdateShortcut = new QShortcut(QKeySequence(Qt::CTRL | Qt::Key_F5), this);
|
||||
connect(m_qmlSourceUpdateShortcut, &QShortcut::activated, this, &ItemLibraryWidget::reloadQmlSource);
|
||||
|
||||
connect(&m_compressionTimer, &QTimer::timeout, this, &ItemLibraryWidget::updateModel);
|
||||
|
||||
@@ -324,12 +324,11 @@ void TimelineToolBar::createCenterControls()
|
||||
|
||||
addSpacing(10);
|
||||
|
||||
auto *loopAnimation = createAction(
|
||||
TimelineConstants::C_LOOP_PLAYBACK,
|
||||
Theme::iconFromName(Theme::Icon::loopPlayback_medium),
|
||||
tr("Loop Playback"),
|
||||
QKeySequence((Qt::ControlModifier | Qt::ShiftModifier)
|
||||
+ Qt::Key_Space)); // TODO: Toggles looping. Select shortcut for this QDS-4941
|
||||
// TODO: Toggles looping. Select shortcut for this QDS-4941
|
||||
auto *loopAnimation = createAction(TimelineConstants::C_LOOP_PLAYBACK,
|
||||
Theme::iconFromName(Theme::Icon::loopPlayback_medium),
|
||||
tr("Loop Playback"),
|
||||
Qt::ControlModifier | Qt::ShiftModifier | Qt::Key_Space);
|
||||
|
||||
loopAnimation->setCheckable(true);
|
||||
connect(loopAnimation, &QAction::toggled, [&](bool value) { emit loopPlaybackToggled(value);} );
|
||||
|
||||
Reference in New Issue
Block a user