removed unsued code

This commit is contained in:
Stefan Kögl 2014-04-27 15:45:58 +02:00
parent 720b7c00a9
commit a064715e38
1 changed files with 1 additions and 22 deletions

View File

@ -261,7 +261,6 @@ class MainWindow(KMainWindow, Ui_MainWindow):
self.publish_action.triggered.connect(self.slot_publish) self.publish_action.triggered.connect(self.slot_publish)
self.clear_live_action.triggered.connect(self.slot_clear_live) self.clear_live_action.triggered.connect(self.slot_clear_live)
self.clear_preview_action.triggered.connect(self.slot_clear_preview) self.clear_preview_action.triggered.connect(self.slot_clear_preview)
#self.remove_item_button.triggered.connect(self.slot_removeItem)
self.text_combo.triggered[int].connect(self.slot_load_preview_text) self.text_combo.triggered[int].connect(self.slot_load_preview_text)
app.focusChanged.connect(self.focusChanged) app.focusChanged.connect(self.focusChanged)
@ -535,13 +534,6 @@ class MainWindow(KMainWindow, Ui_MainWindow):
pass pass
def slot_toggleToolbox(self, index):
if index == 0:
self.toolBar.setEnabled(True)
else:
self.toolBar.setEnabled(False)
def slot_publish(self): def slot_publish(self):
if self.is_animate: if self.is_animate:
self.animation.start_animation(self.preview_text, self.live_text, 0) self.animation.start_animation(self.preview_text, self.live_text, 0)
@ -596,6 +588,7 @@ class MainWindow(KMainWindow, Ui_MainWindow):
self.preview_text.clear() self.preview_text.clear()
self.slot_set_preview_defaults() self.slot_set_preview_defaults()
def fill_combo_box(self): def fill_combo_box(self):
self.text_combo.clear() self.text_combo.clear()
for preview, text in self.model.text_db: for preview, text in self.model.text_db:
@ -605,20 +598,6 @@ class MainWindow(KMainWindow, Ui_MainWindow):
self.slot_load_preview_text(0) self.slot_load_preview_text(0)
def slot_removeItem(self):
text = self.edit_item_selection.currentText()
index = self.edit_item_selection.currentIndex()
title = text.split(": ")[1]
del self.items[title]
self.edit_item_selection.removeItem(index)
new_index = self.edit_item_selection.currentIndex()
if new_index != -1:
self.slot_editLoadItem()
else:
self.item_title.clear()
self.item_position_input.setValue(0)
def slot_load_preview_text(self, index): def slot_load_preview_text(self, index):
try: try:
preview, text = self.model.text_db[index] preview, text = self.model.text_db[index]