Author: dmacvicar
Date: Thu Apr 10 18:50:37 2008
New Revision: 46370
URL: http://svn.opensuse.org/viewcvs/yast?rev=46370&view=rev
Log:
pattern contents work
Modified:
trunk/qt-pkg/src/YQPkgPatchList.cc
Modified: trunk/qt-pkg/src/YQPkgPatchList.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt-pkg/src/YQPkgPatchList.cc?rev=46370&r1=46369&r2=46370&view=diff
==============================================================================
--- trunk/qt-pkg/src/YQPkgPatchList.cc (original)
+++ trunk/qt-pkg/src/YQPkgPatchList.cc Thu Apr 10 18:50:37 2008
@@ -25,6 +25,7 @@
#include <QAction>
#include <QEvent>
#include <QHeaderView>
+#include
#include
#include <set>
@@ -289,6 +290,8 @@
if ( patch )
{
zypp::Patch::Contents c(patch->contents());
+ MIL << c << endl;
+
for ( zypp::Patch::Contents::Selectable_iterator it = c.selectableBegin();
it != c.selectableEnd();
++it )
@@ -300,7 +303,15 @@
}
}
}
+ else
+ {
+ MIL << "patch is bogus" << endl;
+
+ }
+
}
+ else
+ WAR << "selection empty" << endl;
emit filterFinished();
}
@@ -324,19 +335,16 @@
YQPkgPatchListItem *
YQPkgPatchList::selection() const
{
-#if FIXME
- QTreeWidgetItem * item = selectedItem();
+ QTreeWidgetItem * item = currentItem();
if ( ! item )
- return 0;
+ return 0;
return dynamic_cast (item);
-#else
- return 0;
-#endif
}
+
void
YQPkgPatchList::createNotInstalledContextMenu()
{
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org