[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kate/interfaces
From:       Christoph Cullmann <crossfire () babylon2k ! de>
Date:       2003-05-04 22:00:47
[Download RAW message or body]

CVS commit by cullmann: 

2 shorter casts


  M +2 -0      document.h   1.61
  M +18 -1     interfaces.cpp   1.15
  M +3 -0      view.h   1.47


--- kdelibs/kate/interfaces/document.h  #1.60:1.61
@@ -228,4 +228,6 @@ class Document : public KTextEditor::Doc
 };
 
+Document *document (KTextEditor::Document *doc);
+
 };
 

--- kdelibs/kate/interfaces/interfaces.cpp  #1.14:1.15
@@ -66,3 +66,20 @@ void ConfigPage::slotChanged()
 }
 
+
+Document *document (KTextEditor::Document *doc)
+{
+  if (!doc)
+    return 0;
+
+  return static_cast<Document*>(doc->qt_cast("Kate::Document"));
+}
+
+View *view (KTextEditor::View *view)
+{
+  if (!view)
+    return 0;
+
+  return static_cast<View*>(view->qt_cast("Kate::View"));
+}
+
 };

--- kdelibs/kate/interfaces/view.h  #1.46:1.47
@@ -294,4 +294,7 @@ class View : public KTextEditor::View, p
     virtual bool isActive () = 0;
 };
+
+View *view (KTextEditor::View *view);
+
 };
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic