Author: tgoettlicher
Date: Mon Feb 4 14:49:29 2008
New Revision: 44123
URL: http://svn.opensuse.org/viewcvs/yast?rev=44123&view=rev
Log:
added debugging to console
Modified:
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcategorizedview.cpp
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmoduleinfo.cpp
branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmodulemodel.cpp
branches/tmp/tgoettlicher/yast2cc_rewrite/src/main_window.cpp
branches/tmp/tgoettlicher/yast2cc_rewrite/src/main_window.h
branches/tmp/tgoettlicher/yast2cc_rewrite/src/menuitem.cpp
branches/tmp/tgoettlicher/yast2cc_rewrite/src/moduleiconitem.cpp
Modified: branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcategorizedview.cpp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcategorizedview.cpp?rev=44123&r1=44122&r2=44123&view=diff
==============================================================================
--- branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcategorizedview.cpp (original)
+++ branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcategorizedview.cpp Mon Feb 4 14:49:29 2008
@@ -58,6 +58,8 @@
const QModelIndexList &KCategorizedView::Private::intersectionSet(const QRect &rect)
{
+ std::cout << "&KCategorizedView::Private::intersectionSet" << std::endl;
+
QModelIndex index;
QRect indexVisualRect;
@@ -80,6 +82,7 @@
int middle = (top + bottom) / 2;
while (bottom <= top)
{
+ std::cout << "bottom <= top" << std::endl;
middle = (top + bottom) / 2;
index = proxyModel->index(middle, 0);
@@ -548,6 +551,9 @@
void KCategorizedView::setModel(QAbstractItemModel *model)
{
+
+ std::cout << "KCategorizedView::setModel" << std::endl;
+
d->lastSelection = QItemSelection();
d->forcedSelectionPosition = 0;
d->elementsInfo.clear();
@@ -563,6 +569,8 @@
if (d->proxyModel)
{
+ std::cout << "d->proxyModel1" << std::endl;
+
QObject::disconnect(d->proxyModel,
SIGNAL(layoutChanged()),
this, SLOT(slotLayoutChanged()));
@@ -582,6 +590,8 @@
if (d->proxyModel)
{
+ std::cout << "d->proxyModel2" << std::endl;
+
d->modelSortRole = d->proxyModel->sortRole();
d->modelSortColumn = d->proxyModel->sortColumn();
d->modelSortOrder = d->proxyModel->sortOrder();
@@ -602,6 +612,8 @@
if (d->proxyModel->rowCount())
{
+ std::cout << "rowCount()" << std::endl;
+
d->layoutChanged(true);
}
}
@@ -750,6 +762,8 @@
option.features |= QStyleOptionViewItemV2::WrapText;
}
+ std::cout << ".";
+
QPainter painter(viewport());
QRect area = event->rect();
const bool focus = (hasFocus() || viewport()->hasFocus()) &&
@@ -758,10 +772,12 @@
const bool enabled = (state & QStyle::State_Enabled) != 0;
painter.save();
+ std::cout << ",";
QModelIndexList dirtyIndexes = d->intersectionSet(area);
foreach (const QModelIndex &index, dirtyIndexes)
{
+ std::cout << "foreach QModelIndex..." << std::endl;
option.state = state;
option.rect = visualRect(index);
@@ -803,6 +819,8 @@
itemDelegate(index)->paint(&painter, option, index);
}
+ std::cout << "-";
+
// Redraw categories
QStyleOptionViewItem otherOption;
bool intersectedInThePast = false;
@@ -829,6 +847,7 @@
// this is doable because we know that categories are correctly ordered on the list
}
}
+ std::cout << "+";
if ((selectionMode() != SingleSelection) && (selectionMode() != NoSelection))
{
@@ -871,6 +890,8 @@
}
painter.restore();
+
+ std::cout << "!" << std::endl;
}
void KCategorizedView::resizeEvent(QResizeEvent *event)
Modified: branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmoduleinfo.cpp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmoduleinfo.cpp?rev=44123&r1=44122&r2=44123&view=diff
==============================================================================
--- branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmoduleinfo.cpp (original)
+++ branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmoduleinfo.cpp Mon Feb 4 14:49:29 2008
@@ -133,6 +133,8 @@
{
allLoaded = true;
+ std::cout << "KCModuleInfo::Private::loadAll" << std::endl;
+
// if( !service ) /* We have a bogus service. All get functions will return empty/zero values */
return;
Modified: branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmodulemodel.cpp
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmodulemodel.cpp?rev=44123&r1=44122&r2=44123&view=diff
==============================================================================
--- branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmodulemodel.cpp (original)
+++ branches/tmp/tgoettlicher/yast2cc_rewrite/src/kcmodulemodel.cpp Mon Feb 4 14:49:29 2008
@@ -59,6 +59,9 @@
bool SystemSettingsProxyModel::filterAcceptsRow( int source_row, const QModelIndex & source_parent ) const
{
+
+std::cout << "SystemSettingsProxyModel::filterAcceptsRow" << std::endl;
+
QModelIndex index = sourceModel()->index( source_row, 0, source_parent );
MenuItem * mItem = index.data( Qt::UserRole ).value