aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Fabio Bas2008-09-14 16:50:26 +0000
committerGravatar Fabio Bas2008-09-14 16:50:26 +0000
commitf9f2e2d9cc7a4c7d09a6553b86375f7d83e32cc5 (patch)
tree27cf3dfbdd6d0571880fc2bfdfa3fe8a8a8a8897 /src
parentfixed windowlist position after change from classic->tree and viceversa (diff)
downloadKVIrc-f9f2e2d9cc7a4c7d09a6553b86375f7d83e32cc5.tar.gz
KVIrc-f9f2e2d9cc7a4c7d09a6553b86375f7d83e32cc5.tar.bz2
KVIrc-f9f2e2d9cc7a4c7d09a6553b86375f7d83e32cc5.zip
fixes for win32
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2463 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/ui/kvi_windowlist_tree.cpp34
1 files changed, 4 insertions, 30 deletions
diff --git a/src/kvirc/ui/kvi_windowlist_tree.cpp b/src/kvirc/ui/kvi_windowlist_tree.cpp
index b06597b75..ecfd66451 100644
--- a/src/kvirc/ui/kvi_windowlist_tree.cpp
+++ b/src/kvirc/ui/kvi_windowlist_tree.cpp
@@ -163,6 +163,7 @@ void KviTreeWindowListItem::refreshBrush()
if(this == treeWidget()->currentItem())
{
setForeground(0, KVI_OPTION_COLOR(KviOption_colorTreeWindowListActiveForeground));
+ setBackground(0, KVI_OPTION_COLOR(KviOption_colorTreeWindowListActiveBackground));
} else {
int iLevel;
switch(m_iHighlightLevel)
@@ -175,6 +176,7 @@ void KviTreeWindowListItem::refreshBrush()
default: iLevel = KviOption_colorTreeWindowListForeground; break;
}
setForeground(0, KVI_OPTION_COLOR(iLevel));
+ setBackground(0, Qt::transparent);
}
}
@@ -270,9 +272,10 @@ void KviTreeWindowListTreeWidget::mousePressEvent(QMouseEvent *e)
pPopup->insertItem(__tr2qs("Sort"),this,SLOT(sort()));
pPopup->insertItem(__tr2qs("Reverse Sort"),this,SLOT(reverseSort()));
pPopup->popup(QCursor::pos());
+ } else {
+ QTreeWidget::mousePressEvent(e);
}
}
- QTreeWidget::mousePressEvent(e);
}
void KviTreeWindowListTreeWidget::sort()
@@ -497,35 +500,6 @@ void KviTreeWindowList::applyOptions()
m_pTreeWidget->update();
}
-/*
-void KviTreeWindowListItemWidget::paintEvent(QPaintEvent * e)
-{
- // paint the channel activity meter
- if(KVI_OPTION_BOOL(KviOption_boolUseWindowListActivityMeter))
- {
- unsigned int uActivityValue;
- unsigned int uActivityTemperature;
- if(pWindow->activityMeter(&uActivityValue,&uActivityTemperature))
- {
- p->drawPixmap(cRect.left(),yPixmap,*g_pActivityMeterPixmap,uActivityValue * 5,uActivityTemperature * 16,5,16);
- cRect.setLeft(cRect.left() + 7);
- }
- }
-
- // paint the progress bar
- if(iProgress >= 0)
- {
- int wdth = (iProgress * cRect.width()) / 100;
- p->fillRect(cRect.x(),cRect.y(),wdth,cRect.height(),KVI_OPTION_COLOR(KviOption_colorTreeWindowListProgress));
- }
-
- //choose window name font color (highlighting)
- if (option.state & QStyle::State_Selected)
- {
- p->setPen(KVI_OPTION_COLOR(KviOption_colorTreeWindowListActiveForeground));
- }
-}
-*/
#ifndef COMPILE_USE_STANDALONE_MOC_SOURCES
#include "kvi_windowlist_tree.moc"
#endif //!COMPILE_USE_STANDALONE_MOC_SOURCES