summaryrefslogtreecommitdiffstats
path: root/kommander/widgets/table.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-12-21 11:50:29 +0900
committerMichele Calgaro <[email protected]>2023-12-27 11:42:47 +0900
commit86fed9b788837a7f02086639225c66ecd83065e1 (patch)
tree610edf3b7e43182a7e200a84e2fba357369a1d13 /kommander/widgets/table.cpp
parent8954d7640bd43ba663a75334b5d30d3f5f62174b (diff)
downloadtdewebdev-86fed9b788837a7f02086639225c66ecd83065e1.tar.gz
tdewebdev-86fed9b788837a7f02086639225c66ecd83065e1.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 9e553028bac0f0d934926318a7b13aa4d8474b27)
Diffstat (limited to 'kommander/widgets/table.cpp')
-rw-r--r--kommander/widgets/table.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kommander/widgets/table.cpp b/kommander/widgets/table.cpp
index 252dbcee..6a8abc4b 100644
--- a/kommander/widgets/table.cpp
+++ b/kommander/widgets/table.cpp
@@ -48,7 +48,7 @@ enum Functions {
Table::Table(TQWidget *a_parent, const char *a_name)
- : TQTable(a_parent, a_name), KommanderWidget(TQT_TQOBJECT(this))
+ : TQTable(a_parent, a_name), KommanderWidget(this)
{
TQStringList states;
states << "default";
@@ -131,7 +131,7 @@ void Table::setCellWidget(int row, int col, const TQString & _widgetName)
KommanderWidget *w = widgetByName(_widgetName);
if (w)
{
- TQWidget *widget = TQT_TQWIDGET(w->object());
+ TQWidget *widget = static_cast<TQWidget*>(w->object());
if (TQTable::cellWidget(row, col) != widget)
{
setCurrentCell(-1, -1); //hack to not delete the cellwidget after clicking away to another cell.