-rw-r--r-- | noncore/apps/tinykate/mainwindow/tinykate.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/apps/tinykate/mainwindow/tinykate.cpp b/noncore/apps/tinykate/mainwindow/tinykate.cpp index 30c07fc..8d19c71 100644 --- a/noncore/apps/tinykate/mainwindow/tinykate.cpp +++ b/noncore/apps/tinykate/mainwindow/tinykate.cpp | |||
@@ -213,37 +213,37 @@ void TinyKate::open(const QString & filename) | |||
213 | 213 | ||
214 | kd->setDocName( filenamed); | 214 | kd->setDocName( filenamed); |
215 | kd->open( realFileName ); | 215 | kd->open( realFileName ); |
216 | viewCount++; | 216 | viewCount++; |
217 | } | 217 | } |
218 | 218 | ||
219 | void TinyKate::setDocument(const QString& fileref) | 219 | void TinyKate::setDocument(const QString& fileref) |
220 | { | 220 | { |
221 | open( fileref ); | 221 | open( fileref ); |
222 | } | 222 | } |
223 | 223 | ||
224 | void TinyKate::slotCurrentChanged( QWidget * view) | 224 | void TinyKate::slotCurrentChanged( QWidget * view) |
225 | { | 225 | { |
226 | if (currentView) | 226 | if (currentView) |
227 | { | 227 | { |
228 | 228 | ||
229 | disconnect(editCopy,SIGNAL(activated()),currentView,SLOT(copy())); | 229 | disconnect(editCopy,SIGNAL(clicked()),currentView,SLOT(copy())); |
230 | disconnect(editCut,SIGNAL(activated()),currentView,SLOT(cut())); | 230 | disconnect(editCut,SIGNAL(clicked()),currentView,SLOT(cut())); |
231 | disconnect(editPaste,SIGNAL(activated()),currentView,SLOT(paste())); | 231 | disconnect(editPaste,SIGNAL(clicked()),currentView,SLOT(paste())); |
232 | disconnect(editUndo,SIGNAL(activated()),currentView,SLOT(undo())); | 232 | disconnect(editUndo,SIGNAL(clicked()),currentView,SLOT(undo())); |
233 | disconnect(editRedo,SIGNAL(activated()),currentView,SLOT(redo())); | 233 | disconnect(editRedo,SIGNAL(clicked()),currentView,SLOT(redo())); |
234 | disconnect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes())); | 234 | disconnect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes())); |
235 | disconnect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes())); | 235 | disconnect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes())); |
236 | disconnect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int))); | 236 | disconnect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int))); |
237 | disconnect(utilSettings,SIGNAL(activated()), currentView,SLOT(configDialog())); | 237 | disconnect(utilSettings,SIGNAL(activated()), currentView,SLOT(configDialog())); |
238 | } | 238 | } |
239 | 239 | ||
240 | currentView=(KTextEditor::View*)view; | 240 | currentView=(KTextEditor::View*)view; |
241 | 241 | ||
242 | connect(editCopy,SIGNAL(clicked()),currentView,SLOT(copy())); | 242 | connect(editCopy,SIGNAL(clicked()),currentView,SLOT(copy())); |
243 | connect(editCut,SIGNAL(clicked()),currentView,SLOT(cut())); | 243 | connect(editCut,SIGNAL(clicked()),currentView,SLOT(cut())); |
244 | connect(editPaste,SIGNAL(clicked()),currentView,SLOT(paste())); | 244 | connect(editPaste,SIGNAL(clicked()),currentView,SLOT(paste())); |
245 | connect(editUndo,SIGNAL(clicked()),currentView,SLOT(undo())); | 245 | connect(editUndo,SIGNAL(clicked()),currentView,SLOT(undo())); |
246 | connect(editRedo,SIGNAL(clicked()),currentView,SLOT(redo())); | 246 | connect(editRedo,SIGNAL(clicked()),currentView,SLOT(redo())); |
247 | connect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes())); | 247 | connect(viewIncFontSizes,SIGNAL(activated()), currentView,SLOT(slotIncFontSizes())); |
248 | connect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes())); | 248 | connect(viewDecFontSizes,SIGNAL(activated()), currentView,SLOT(slotDecFontSizes())); |
249 | connect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int))); | 249 | connect(hlmenu,SIGNAL(activated(int)), currentView,SLOT(setHl(int))); |