[rkward-cvs] rkward/rkward/plugin rkvarslot.cpp,1.26,1.27
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Wed Apr 12 18:02:08 UTC 2006
Update of /cvsroot/rkward/rkward/rkward/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1382
Modified Files:
rkvarslot.cpp
Log Message:
Fix requiredness logic for RKVarslot
Index: rkvarslot.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkvarslot.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** rkvarslot.cpp 5 Apr 2006 19:33:24 -0000 1.26
--- rkvarslot.cpp 12 Apr 2006 18:02:06 -0000 1.27
***************
*** 83,87 ****
// initialize filters
available->setClassFilter (QStringList::split (" ", xml->getStringAttribute (element, "classes", QString::null, DL_INFO)));
! available->setRequired (xml->getBoolAttribute (element, "required", false, DL_INFO));
available->setTypeFilter (QStringList::split (" ", xml->getStringAttribute (element, "types", QString::null, DL_INFO)));
--- 83,87 ----
// initialize filters
available->setClassFilter (QStringList::split (" ", xml->getStringAttribute (element, "classes", QString::null, DL_INFO)));
! setRequired (xml->getBoolAttribute (element, "required", false, DL_INFO));
available->setTypeFilter (QStringList::split (" ", xml->getStringAttribute (element, "types", QString::null, DL_INFO)));
***************
*** 152,156 ****
if (isEnabled ()) {
! if (!isValid ()) {
list->setPaletteBackgroundColor (QColor (255, 0, 0));
} else {
--- 152,156 ----
if (isEnabled ()) {
! if (!isSatisfied ()) {
list->setPaletteBackgroundColor (QColor (255, 0, 0));
} else {
***************
*** 158,162 ****
}
} else {
! if (!isValid ()) {
list->setPaletteBackgroundColor (QColor (200, 0, 0));
} else {
--- 158,162 ----
}
} else {
! if (!isSatisfied ()) {
list->setPaletteBackgroundColor (QColor (200, 0, 0));
} else {
More information about the rkward-tracker
mailing list