Port some KCMs away from deprecated KShortcutsEditor::undoChanges()
undoChanges() has been deprecated in favor of undo() in KF 5.75.
This commit is contained in:
parent
102332df00
commit
70b18ae404
11 changed files with 14 additions and 14 deletions
|
@ -85,8 +85,8 @@ DesktopGridEffectConfig::DesktopGridEffectConfig(QWidget* parent, const QVariant
|
|||
|
||||
DesktopGridEffectConfig::~DesktopGridEffectConfig()
|
||||
{
|
||||
// If save() is called undoChanges() has no effect
|
||||
m_ui->shortcutEditor->undoChanges();
|
||||
// If save() is called undo() has no effect
|
||||
m_ui->shortcutEditor->undo();
|
||||
}
|
||||
|
||||
void DesktopGridEffectConfig::save()
|
||||
|
|
|
@ -60,7 +60,7 @@ InvertEffectConfig::InvertEffectConfig(QWidget* parent, const QVariantList& args
|
|||
InvertEffectConfig::~InvertEffectConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
mShortcutEditor->undoChanges();
|
||||
mShortcutEditor->undo();
|
||||
}
|
||||
|
||||
void InvertEffectConfig::load()
|
||||
|
|
|
@ -81,7 +81,7 @@ LookingGlassEffectConfig::LookingGlassEffectConfig(QWidget* parent, const QVaria
|
|||
LookingGlassEffectConfig::~LookingGlassEffectConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
m_ui->editor->undoChanges();
|
||||
m_ui->editor->undo();
|
||||
}
|
||||
|
||||
void LookingGlassEffectConfig::save()
|
||||
|
|
|
@ -83,7 +83,7 @@ MagnifierEffectConfig::MagnifierEffectConfig(QWidget* parent, const QVariantList
|
|||
MagnifierEffectConfig::~MagnifierEffectConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
m_ui->editor->undoChanges();
|
||||
m_ui->editor->undo();
|
||||
}
|
||||
|
||||
void MagnifierEffectConfig::save()
|
||||
|
|
|
@ -65,7 +65,7 @@ MouseClickEffectConfig::MouseClickEffectConfig(QWidget* parent, const QVariantLi
|
|||
MouseClickEffectConfig::~MouseClickEffectConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
m_ui->editor->undoChanges();
|
||||
m_ui->editor->undo();
|
||||
}
|
||||
|
||||
void MouseClickEffectConfig::save()
|
||||
|
|
|
@ -75,7 +75,7 @@ MouseMarkEffectConfig::MouseMarkEffectConfig(QWidget* parent, const QVariantList
|
|||
MouseMarkEffectConfig::~MouseMarkEffectConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
m_ui->editor->undoChanges();
|
||||
m_ui->editor->undo();
|
||||
}
|
||||
|
||||
void MouseMarkEffectConfig::save()
|
||||
|
|
|
@ -82,8 +82,8 @@ PresentWindowsEffectConfig::PresentWindowsEffectConfig(QWidget* parent, const QV
|
|||
|
||||
PresentWindowsEffectConfig::~PresentWindowsEffectConfig()
|
||||
{
|
||||
// If save() is called undoChanges() has no effect
|
||||
m_ui->shortcutEditor->undoChanges();
|
||||
// If save() is called undo() has no effect
|
||||
m_ui->shortcutEditor->undo();
|
||||
}
|
||||
|
||||
void PresentWindowsEffectConfig::save()
|
||||
|
|
|
@ -53,8 +53,8 @@ ShowPaintEffectConfig::ShowPaintEffectConfig(QWidget *parent, const QVariantList
|
|||
|
||||
ShowPaintEffectConfig::~ShowPaintEffectConfig()
|
||||
{
|
||||
// If save() is called, undoChanges() has no effect.
|
||||
m_ui->shortcutsEditor->undoChanges();
|
||||
// If save() is called, undo() has no effect.
|
||||
m_ui->shortcutsEditor->undo();
|
||||
|
||||
delete m_ui;
|
||||
}
|
||||
|
|
|
@ -72,7 +72,7 @@ ThumbnailAsideEffectConfig::ThumbnailAsideEffectConfig(QWidget* parent, const QV
|
|||
ThumbnailAsideEffectConfig::~ThumbnailAsideEffectConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
m_ui->editor->undoChanges();
|
||||
m_ui->editor->undo();
|
||||
}
|
||||
|
||||
void ThumbnailAsideEffectConfig::save()
|
||||
|
|
|
@ -61,7 +61,7 @@ WindowGeometryConfig::WindowGeometryConfig(QWidget* parent, const QVariantList&
|
|||
WindowGeometryConfig::~WindowGeometryConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
myUi->shortcuts->undoChanges();
|
||||
myUi->shortcuts->undo();
|
||||
}
|
||||
|
||||
void WindowGeometryConfig::save()
|
||||
|
|
|
@ -126,7 +126,7 @@ ZoomEffectConfig::ZoomEffectConfig(QWidget* parent, const QVariantList& args) :
|
|||
ZoomEffectConfig::~ZoomEffectConfig()
|
||||
{
|
||||
// Undo (only) unsaved changes to global key shortcuts
|
||||
m_ui->editor->undoChanges();
|
||||
m_ui->editor->undo();
|
||||
}
|
||||
|
||||
void ZoomEffectConfig::save()
|
||||
|
|
Loading…
Reference in a new issue