summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-29 14:46:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-29 14:46:06 +0900
commit7004f06df8a38a4a955034ca30f3b6784a31e770 (patch)
tree7105547766aae1ac18aa277f3fb89ccd0c2cb8b9 /src
parent81adb23d82722ebd16552d521fc1a4b9b27e8f12 (diff)
downloadkvirc-7004f06df8a38a4a955034ca30f3b6784a31e770.tar.gz
kvirc-7004f06df8a38a4a955034ca30f3b6784a31e770.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/kernel/kvi_filetransfer.cpp4
-rw-r--r--src/modules/dcc/canvaswidget.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/kvirc/kernel/kvi_filetransfer.cpp b/src/kvirc/kernel/kvi_filetransfer.cpp
index 64411fec..35d84287 100644
--- a/src/kvirc/kernel/kvi_filetransfer.cpp
+++ b/src/kvirc/kernel/kvi_filetransfer.cpp
@@ -90,8 +90,8 @@ void KviFileTransferManager::invokeTransferWindow(KviWindow * pWnd,bool bCreateM
{
KviPointerHashTable<TQString,TQVariant> d(7,false);
d.setAutoDelete(true);
- d.replace("bCreateMinimized",new TQVariant(bCreateMinimized,0));
- d.replace("bNoRaise",new TQVariant(bNoRaise,0));
+ d.replace("bCreateMinimized",new TQVariant(bCreateMinimized));
+ d.replace("bNoRaise",new TQVariant(bNoRaise));
KviModuleExtensionManager::instance()->allocateExtension(
"tool",
diff --git a/src/modules/dcc/canvaswidget.cpp b/src/modules/dcc/canvaswidget.cpp
index 8eadbaf9..e18231a5 100644
--- a/src/modules/dcc/canvaswidget.cpp
+++ b/src/modules/dcc/canvaswidget.cpp
@@ -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("clrBackground",TQVariant(TQColor(0,0,0)));
- m_properties.insert("bHasBackground",TQVariant(false,1));
+ m_properties.insert("bHasBackground",TQVariant(false));
m_dScaleFactor = dScaleFactor;
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("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("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("clrBackground",TQVariant(TQColor(0,0,0)));
- m_properties.insert("bHasBackground",TQVariant(false,1));
+ m_properties.insert("bHasBackground",TQVariant(false));
}
KviCanvasRectangle::~KviCanvasRectangle()
@@ -1325,7 +1325,7 @@ void KviVariantTableItem::setContentFromEditor(TQWidget * w)
m_property = TQVariant(((TQLineEdit *)w)->text().toUInt());
break;
case TQVariant::Bool:
- m_property = TQVariant(((TQComboBox *)w)->currentItem(),1);
+ m_property = TQVariant(((TQComboBox *)w)->currentItem());
break;
case TQVariant::Color:
m_property.asColor().setNamedColor(((TQLineEdit *)w)->text());