OSSP CVS Repository

ossp - Check-in [3832]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3832
Date: 2002-Dec-04 18:31:20 (local)
2002-Dec-04 17:31:20 (UTC)
User:ms
Branch:
Comment: Fix event handling problem with TiTable, and explicitly state scope of method calls in TiTable.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/as_assist.cpp      1.46 -> 1.47     1 inserted, 1 deleted
ossp-pkg/as/as-gui/as_table.h      1.4 -> 1.5     2 inserted, 2 deleted

ossp-pkg/as/as-gui/as_assist.cpp 1.46 -> 1.47

--- as_assist.cpp        2002/12/04 16:17:02     1.46
+++ as_assist.cpp        2002/12/04 17:31:20     1.47
@@ -497,7 +497,7 @@
     // Table update signals
     connect(m_pMaintable, SIGNAL(currentChanged(int, int)), this, SLOT(updEdit(int, int)));
     connect(m_pMaintable, SIGNAL(doubleClicked(int, int, int, const QPoint&)), this, SLOT(inplaceEdit(int, int, int, const QPoint&)));
-    connect(m_pMaintable->horizontalHeader(), SIGNAL(sizeChange(int, int, int)), this, SLOT(updSizes(int, int, int)));
+    connect(m_pTablehead, SIGNAL(sizeChange(int, int, int)), this, SLOT(updSizes(int, int, int)));
 //    connect(m_pMaintable, SIGNAL(valueChanged(int, int)), this, SLOT(tableChanged(int, int)));
 }
 


ossp-pkg/as/as-gui/as_table.h 1.4 -> 1.5

--- as_table.h   2002/12/03 17:05:11     1.4
+++ as_table.h   2002/12/04 17:31:20     1.5
@@ -42,8 +42,8 @@
     // Try to match QTable's default constructor with an initializer list
     TiTable(QWidget *pParent = 0, const char *szName = 0) : QTable(pParent, szName)
     {
-        horizontalHeader()->installEventFilter(this);
-        setEdition();   // Reset edition state
+        this->installEventFilter(this);
+        this->setEdition(); // Reset edition state
     };
 
     bool eventFilter(QObject *, QEvent *);

CVSTrac 2.0.1