]> 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)
commit40fc0de86afb6d8f14ffd46f46109621b8820857
tree4722784c9b2c29d6dd0f6a72b3bbb0fcc33ad5e6
parentdaf54c0c4b19782e6223e2ad88193b72fba30d3d
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