Adjusted to latest TQVariant::TQVariant(bool) function.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/2/head
Michele Calgaro 6 years ago
parent 81adb23d82
commit 7004f06df8
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -90,8 +90,8 @@ void KviFileTransferManager::invokeTransferWindow(KviWindow * pWnd,bool bCreateM
{ {
KviPointerHashTable<TQString,TQVariant> d(7,false); KviPointerHashTable<TQString,TQVariant> d(7,false);
d.setAutoDelete(true); d.setAutoDelete(true);
d.replace("bCreateMinimized",new TQVariant(bCreateMinimized,0)); d.replace("bCreateMinimized",new TQVariant(bCreateMinimized));
d.replace("bNoRaise",new TQVariant(bNoRaise,0)); d.replace("bNoRaise",new TQVariant(bNoRaise));
KviModuleExtensionManager::instance()->allocateExtension( KviModuleExtensionManager::instance()->allocateExtension(
"tool", "tool",

@ -90,7 +90,7 @@ KviCanvasPolygon::KviCanvasPolygon(TQCanvas * c,int x,int y,TQPointArray &pnts,d
m_properties.insert("uLineWidth",TQVariant((unsigned int)0)); m_properties.insert("uLineWidth",TQVariant((unsigned int)0));
m_properties.insert("clrBackground",TQVariant(TQColor(0,0,0))); m_properties.insert("clrBackground",TQVariant(TQColor(0,0,0)));
m_properties.insert("bHasBackground",TQVariant(false,1)); m_properties.insert("bHasBackground",TQVariant(false));
m_dScaleFactor = dScaleFactor; m_dScaleFactor = dScaleFactor;
m_points = pnts; m_points = pnts;
@ -193,7 +193,7 @@ KviCanvasEllipticItem::KviCanvasEllipticItem(TQCanvas * c,int x,int y,int w,int
m_properties.insert("uLineWidth",TQVariant((unsigned int)0)); m_properties.insert("uLineWidth",TQVariant((unsigned int)0));
m_properties.insert("clrBackground",TQVariant(TQColor(0,0,0))); m_properties.insert("clrBackground",TQVariant(TQColor(0,0,0)));
m_properties.insert("bHasBackground",TQVariant(false,1)); m_properties.insert("bHasBackground",TQVariant(false));
// m_properties.insert("iStartAngle",TQVariant(0)); // m_properties.insert("iStartAngle",TQVariant(0));
// m_properties.insert("iEndAngle",TQVariant(360)); // m_properties.insert("iEndAngle",TQVariant(360));
@ -339,7 +339,7 @@ KviCanvasRectangle::KviCanvasRectangle(TQCanvas * c,int x,int y,int w,int h)
m_properties.insert("uLineWidth",TQVariant((unsigned int)0)); m_properties.insert("uLineWidth",TQVariant((unsigned int)0));
m_properties.insert("clrBackground",TQVariant(TQColor(0,0,0))); m_properties.insert("clrBackground",TQVariant(TQColor(0,0,0)));
m_properties.insert("bHasBackground",TQVariant(false,1)); m_properties.insert("bHasBackground",TQVariant(false));
} }
KviCanvasRectangle::~KviCanvasRectangle() KviCanvasRectangle::~KviCanvasRectangle()
@ -1325,7 +1325,7 @@ void KviVariantTableItem::setContentFromEditor(TQWidget * w)
m_property = TQVariant(((TQLineEdit *)w)->text().toUInt()); m_property = TQVariant(((TQLineEdit *)w)->text().toUInt());
break; break;
case TQVariant::Bool: case TQVariant::Bool:
m_property = TQVariant(((TQComboBox *)w)->currentItem(),1); m_property = TQVariant(((TQComboBox *)w)->currentItem());
break; break;
case TQVariant::Color: case TQVariant::Color:
m_property.asColor().setNamedColor(((TQLineEdit *)w)->text()); m_property.asColor().setNamedColor(((TQLineEdit *)w)->text());

Loading…
Cancel
Save