Qt3-to-Qt4 (Qt3 Compatibility), Remaining Source Code Issues Phil, 2-12-2008 (Tuesday). -------------------- DbDmi/DbDmi.Pair.cpp -------------------- DbDmi::Pair::resolve(RootSelMap& rootMap): Needs reworking. // ... This doesn't complile on Solaris: // ... The operation "RootSelMap[RootSelListItem::Obj]" is illegal. // RootSelMap::List& selList(rootList[rootObj]); --------------------- DbDmi/RootSelList.cpp --------------------- okstat RootSelList::getItems(const RootSelListItem::Obj& rootObj, RootSelMap::List& items) const ... Needs reworking: // Solaris Compilation Error: Formal argument key of type const // .. Qt::Key& in call to RootSelMap::getItems(const Qt::Key&) const // .. is being passed const RootSelListItem::Obj&. // items = _rootMap.getItems(rootObj); ------------------------- DbDmi/RootSelListItem.cpp ------------------------- void RootSelListItem::resolve(RootSelMap& rootMap): Needs reworking. // ... This doesn't complile on Solaris: // ... The operation "RootSelMap[RootSelListItem::Obj]" is illegal. // RootSelMap::List& selList(rootMap[rootObj]); --------------------------- Q3GUI/DateTimeQtSpinner.cpp --------------------------- QSpinBox no longer has a 'setValidator' method. We need to recode using, probably, this virutal method: QValidator::State QAbstractSpinBox::validate (QString& input, int& pos) const QSpinBox no longer supports an updateDisplay() method. Does update() provide the necessary behavior? ---------------------- Q3GUI/RwQtSettings.cpp ---------------------- Needs implementation: RwQtSettings::saveGeometry and restoreGeometry: The prior implementation made use of a QTextStream <<(QWidget*) operator, which is no longer available. ------------------- Q3GUI/RwQtUtils.cpp ------------------- RwQtUtils::removeMenuFromMenubar ... The old implementation makes use of QMenuItems in a way which is no longer supported. This method seems to be used only in one place. Maybe rework that client and remove this method. See: [Q3GUI] void OpenObjectDlg::initMenus(). -------------------------- Q3GUI/SimObjPaletteDlg.cpp -------------------------- SimObjPaletteDlg::addObject ... QIconSet was replaced with QIcon, which seem to support different sizes. Is something needed here? ------------------------- Q3GUI/SlotPlot.cpp Q3GUI/SlotQDlgTable.cpp Q3GUI/WorkspaceCanvas.cpp QtSCT/SctQTable.cpp ------------------------- SlotPlot::PlotToolTip QToolTip needs to be recoded. The Qt4 QToolTip has only a static interface -- i.e. QToolTips are not instantiated. ... Same with SlotQDlgTable::TableToolTip. ... Same with WorkspaceCanvas::CanvasTip. ... Same with SctQTable::TableToolTip. Check the operation of the Drop-Down style attribute menus. QActionGroups used to be QActions, but are now just QObjects. ----------------------------- QtAccounting/SupplyEditor.cpp ----------------------------- void SupplyEditor::substituteFixedSourceLabels() ... Needs reworking ... // Note: The uic3 compiler no longer creates well-named pointers // for layouts. So this technique is not supportable. // // // Insert this widget in the same grid cell which contained // // the _supplyTypeCombo widget. // _splyPropGridLayout->addWidget (_fixedSupplyTypeLabel, 1, 1); ... and a second similar usage. --------------------- QtDmi/RadioBtnDlg.cpp --------------------- bool RadioBtnDlg::selection(QWidget* parent, ... // Note: The uic3 compiler no longer creates well-named pointers // for layouts. So this technique is not supportable. // // dlg._buttonGroupLayout->addWidget(button); // // dlg._buttonGroup->insert(button, id++); ----------------------- QtRpl/RplPaletteDlg.cpp ----------------------- void RplPaletteDlg::initConnections() ... Needs reworking ... void RplPaletteDlg::updatePaletteItems() QObjectList *RplPaletteDlg::getAllButtons() QObjectLists (which were QPtrLists) are not supported in Qt4. --- (end) ---