aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <cordlandwehr@kde.org>2016-09-07 08:56:55 (GMT)
committerAndreas Cord-Landwehr <cordlandwehr@kde.org>2016-09-07 08:56:55 (GMT)
commit5282569fe23cec583e93c06a7eb2b758ade198e8 (patch)
treec8d345d067b2d7cfd10e2aa45e39d1b7b3e7ddab
parent69de35c675054c206b1d6347afc9cbe629811cfc (diff)
Port away from removed slots
-rw-r--r--src/editor/keyboardlayouteditor.cpp8
-rw-r--r--src/ui/keyboardlayouteditor.ui35
2 files changed, 9 insertions, 34 deletions
diff --git a/src/editor/keyboardlayouteditor.cpp b/src/editor/keyboardlayouteditor.cpp
index ce7b1a2..455e392 100644
--- a/src/editor/keyboardlayouteditor.cpp
+++ b/src/editor/keyboardlayouteditor.cpp
@@ -59,6 +59,14 @@ KeyboardLayoutEditor::KeyboardLayoutEditor(QWidget* parent):
connect(m_zoomSlider, SIGNAL(valueChanged(int)), SLOT(setZoomLevel(int)));
connect(m_deleteKeyToolButton, SIGNAL(clicked(bool)), SLOT(deleteSelectedKey()));
connect(m_view, SIGNAL(clicked()), SLOT(clearSelection()));
+
+ connect(m_zoomOutToolButton, &QToolButton::clicked, [=](){
+ m_zoomSlider->setValue(m_zoomSlider->value() - 1);
+ });
+ connect(m_zoomInToolButton, &QToolButton::clicked, [=](){
+ m_zoomSlider->setValue(m_zoomSlider->value() + 1);
+ });
+
}
void KeyboardLayoutEditor::openKeyboardLayout(DataIndexKeyboardLayout* dataIndexKeyboardLayout)
diff --git a/src/ui/keyboardlayouteditor.ui b/src/ui/keyboardlayouteditor.ui
index e9663b9..1854ff8 100644
--- a/src/ui/keyboardlayouteditor.ui
+++ b/src/ui/keyboardlayouteditor.ui
@@ -220,38 +220,5 @@
<tabstop>m_zoomInToolButton</tabstop>
</tabstops>
<resources/>
- <connections>
- <connection>
- <sender>m_zoomOutToolButton</sender>
- <signal>clicked()</signal>
- <receiver>m_zoomSlider</receiver>
- <slot>subtractStep()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>307</x>
- <y>28</y>
- </hint>
- <hint type="destinationlabel">
- <x>354</x>
- <y>26</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>m_zoomInToolButton</sender>
- <signal>clicked()</signal>
- <receiver>m_zoomSlider</receiver>
- <slot>addStep()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>470</x>
- <y>30</y>
- </hint>
- <hint type="destinationlabel">
- <x>411</x>
- <y>27</y>
- </hint>
- </hints>
- </connection>
- </connections>
+ <connections/>
</ui>