]> git.sur5r.net Git - bacula/bacula/commit
Use a hash QHash<QTreeWidgetItem*,Pages*> instead of QHash<int,Pages*> m_pagehash
authorDirk H Bartley <dbartley@schupan.com>
Mon, 9 Apr 2007 01:47:56 +0000 (01:47 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Mon, 9 Apr 2007 01:47:56 +0000 (01:47 +0000)
commit72e6c6f5750406b593382b73e17f5963ae2147eb
treead19b33ebf82dfec663bf700353ecd7527053417
parent757ef7f26dbe0a88ea5f9bd57e901dcbd75c8f81
Use a hash QHash<QTreeWidgetItem*,Pages*> instead of QHash<int,Pages*> m_pagehash
This way, the integer stored in QT::UserRole is not needed at all.  The hash
directly allows for conversion from a known treeWidgetItem to a page.  Since
the integer is not required to be passed and held in subclasses of the pages
class, clean up the constructors of Subclasses to not get the integer value
and set back to nearly like they were before.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4528 91ce42f0-d328-0410-95d8-f526ca767f89
bacula/src/qt-console/console/console.cpp
bacula/src/qt-console/console/console.h
bacula/src/qt-console/mainwin.cpp
bacula/src/qt-console/mainwin.h
bacula/src/qt-console/medialist/medialist.cpp
bacula/src/qt-console/medialist/medialist.h
bacula/src/qt-console/pages.cpp
bacula/src/qt-console/pages.h
bacula/src/qt-console/restore/brestore.cpp
bacula/src/qt-console/restore/restore.h