CVS commit by mornfall: Push the CElemActor usage into CElemView as well, so it can propagate into dependency view and such. (note: i would make this commit message funny, but i'm in hurry, so you gotta put up with a boring one)
M +1 -0 kapture/kapture.cpp 1.40 M +4 -0 libkapture/celemview.h 1.11 M +7 -1 libkapture/pkgcelemview.cpp 1.16 M +1 -0 libkapture/pkgcelemview.h 1.11 --- kdenonbeta/kdedebian/kapture/kapture/kapture.cpp #1.39:1.40 @@ -159,4 +159,5 @@ void Kapture::newElemView (CElemPtr e) if (v) { v -> setUseHistory (true); + v -> setElemActor (this); m_elemTabs -> addTab (v, v -> caption ()); m_elemTabs -> showPage (v); --- kdenonbeta/kdedebian/kapture/libkapture/celemview.h #1.10:1.11 @@ -14,4 +14,5 @@ #include <libcapture/pkgmanager.h> #include <libcapture/celem.h> +#include <libcapture/celemactor.h> #include <libcapture/historymanager.h> @@ -37,8 +38,11 @@ namespace kapture { { Q_OBJECT + protected: + CElemActor *m_actor; public: CElemView (QWidget *parent = 0, const char *name = 0); ~CElemView (); virtual CElemPtr elem () = 0; + virtual void setElemActor (CElemActor *a) { m_actor = a; } public slots: virtual void histForward () { capture::HistoryManager::histForward (); } --- kdenonbeta/kdedebian/kapture/libkapture/pkgcelemview.cpp #1.15:1.16 @@ -96,5 +96,5 @@ void PkgCElemView::changeElem (capture:: } // m_revDepList -> setEnabled (true); - m_janus -> showPage (0); + // m_janus -> showPage (0); setCaption (m_pkg -> Name ()); setEnabled (true); @@ -145,4 +145,10 @@ void PkgCElemView::rebuild () } /* }}} */ +void PkgCElemView::setElemActor (CElemActor *a) +{ + CElemView::setElemActor (a); + m_depList -> setElemActor (a); + // m_revDepList -> setElemActor (a); +} /* {{{ */ --- kdenonbeta/kdedebian/kapture/libkapture/pkgcelemview.h #1.10:1.11 @@ -68,4 +68,5 @@ namespace kapture { virtual void changeElem (CElemPtr n); CElemPtr elem () { return m_pkg; }; + void setElemActor (CElemActor *a); public slots: void setVersion (capture::VerCElemPtr V);