---------------------------- DbDmi/DbDmi.Pair.cpp ---------------------------- // virtual void DbDmi::Pair::resolve(RootSelMap& rootMap) { ... // [Tag] NeedsQt4Solution [Phil, 2-6-2008] // ... This doesn't complile on Solaris: // ... The operation "RootSelMap[RootSelListItem::Obj]" is illegal. // RootSelMap::List& selList(rootList[rootObj]); RootSelMap::List selList; // DUMMY LIST ... } ---------------------------- DbDmi/RootSelList.cpp ---------------------------- okstat RootSelList::getItems(const RootSelListItem::Obj& rootObj, RootSelMap::List& items) const { // [Tag] NeedsQt4Solution [Phil, 2-6-2008] // 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); items.clear(); // DUMMY return okstat(items.size() != 0); } ---------------------------- DbDmi/RootSelListItem.cpp ---------------------------- // virtual void RootSelListItem::resolve(RootSelMap& rootMap) { ... // [Tag] NeedsQt4Solution [Phil, 2-6-2008] // ... This doesn't complile on Solaris: // ... The operation "RootSelMap[RootSelListItem::Obj]" is illegal. // RootSelMap::List& selList(rootMap[rootObj]); RootSelMap::List selList; // DUMMY LIST ... } ---------------------------- Q3GUI/DateTimeQtSpinner.cpp ---------------------------- DateTimeQtSpinner::DateTimeQtSpinner (QWidget* parent, const char* name, const int* format) : QSpinBox (parent, name), ... { _validator = new DateTimeValidator(this, "DateTime Validator"); // [Tag] NeedsQt4Solution [Phil, 2-6-2008] // This method doesn't seem to exist in Qt4. Maybe the validator is // automatically set on the parent, when the validator is created. // -- setValidator(_validator); ... } void DateTimeQtSpinner::updateDisplay() { if (_updateDisplayEnabled) { // [Tag] NeedsQt4Solution [Phil, 2-6-2008] // QSpinBox::updateDisplay() is no longer defined. // Is it sufficient to just call QWidget update? update(); } } ---------------------------- Q3GUI/RwQtSettings.cpp ---------------------------- void RwQtSettings::saveGeometry (Q3MainWindow* dlg, const QString& groupName) { saveGeometry ((QWidget*) dlg, groupName); // [Tag] NeedsQt4Solution [Phil, 2-7-2008] // // // // // Docked window settings // // // QSettings settings; // RwQtSettings::initSettings (settings); // // const QString dockGroupName (groupName + DOCK_GROUPNAME_SUFFIX); // beginCustomGroup (settings, dockGroupName); // // QString dockSettings; // QTextStream textStream(dockSettings, IO_WriteOnly); // textStream << *dlg; // // settings.writeEntry(DOCK_SETTINGS, dockSettings); // settings.endGroup(); } bool RwQtSettings::restoreGeometry (Q3MainWindow* dlg, const QString& groupName, bool doSizeToo /*=true*/) { ... // [Tag] NeedsQt4Solution [Phil, 2-7-2008] // if (dockOk) // { // Q3TextStream textStream(dockSettings, QIODevice::ReadOnly); // textStream >> *dlg; // } ... } ---------------------------- Q3GUI/SimObjPaletteDlg.cpp ---------------------------- void SimObjPaletteDlg::addObject(SimObj *proto, const char *description, int buttonId) { // [Tag] NeedsQt4Solution [Phil, 2-8-2008] -- How to set Icon Size? // QIcon icons(RwQtIcons::pixmap(proto), QIcon::Large); QIcon icons (RwQtIcons::pixmap(proto)); ... } ---------------------------- Q3GUI/SlotPlot.cpp ---------------------------- // [Tag] NeedsQt4Solution [Phil, 2-11-2008] -- QToolTip cannot be instantiated. // // SlotPlot::PlotToolTip::PlotToolTip( SlotPlot *parent ) // : QToolTip(parent), // _slotPlot(parent) // { // // no explicit initialization needed // } // [Tag] NeedsQt4Solution [Phil, 2-11-2008] -- QToolTip cannot be instantiated. // // void SlotPlot::PlotToolTip::maybeTip( const QPoint & point ) // { // rwAssert(_slotPlot); // // // Don't display plot tooltips if they are disabled. // if (!PlotDlgSettings::instance()->getToolTipShown()) // return; // // QString tipString; // if (_slotPlot->getPlotToolTip(point, tipString)) // { // QRect r(point, QSize(3, 3)); // QToolTip::tip( r, tipString ); // } // } SlotPlot::SlotPlot (QWidget *parent) { ... // [Tag] NeedsQt4Solution [Phil, 2-12-2008] ToolTips cannot be instantiated. // _plotToolTip = new PlotToolTip(this); } void SlotPlot::initMenus() { ... // [Tag] NeedsQt4Solution [Phil, 2-11-2008] // _lineStyleGroup->setText("Line Style"); // _lineStyleGroup->setUsesDropDown( TRUE ); _lineStyleGroup->setExclusive( TRUE ); ... // [Tag] NeedsQt4Solution [Phil, 2-11-2008] // _symbolStyleGroup->setText("Symbol Style"); // _symbolStyleGroup->setUsesDropDown( TRUE ); _symbolStyleGroup->setExclusive( TRUE ); ... // [Tag] NeedsQt4Solution [Phil, 2-11-2008] // _curveStyleGroup->setText("Curve Style"); // _curveStyleGroup->setUsesDropDown( TRUE ); _curveStyleGroup->setExclusive( TRUE ); ... } ---------------------------- Q3GUI/SlotQDlgTable.hpp Q3GUI/SlotQDlgTable.cpp ---------------------------- class SlotQDlgTable : public rwQTable, public SctClipboardExportDlg_Listener, public FloatValueEditorListener { Q_OBJECT ... // *********************************** // *** TableToolTip Internal Class *** // *********************************** // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // // class TableToolTip : public QToolTip // { // private: // SlotQDlgTable* _table; // // public: // TableToolTip (SlotQDlgTable* table, QToolTipGroup *group = 0); // // protected: // void maybeTip (const QPoint &p); // }; // // friend class TableToolTip; ... } // ***************************************** // *** class SlotQDlgTable::TableToolTip *** // ***************************************** // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // // SlotQDlgTable::TableToolTip::TableToolTip (SlotQDlgTable* table, // QToolTipGroup *group) // : QToolTip (table->viewport(), group), // _table (table) // { // } // // void SlotQDlgTable::TableToolTip::maybeTip (const QPoint &p) // { // QPoint cp = _table->viewportToContents (p); // int row = _table->rowAt (cp.y()); // int col = _table->columnAt (cp.x()); // // QString tipStr (""); // // AnnoGroup* dummyGrp (NULL); // const char* annoTipStr = _table->cellAnnoNote (row, col, dummyGrp); // if ((annoTipStr != NULL) && (*annoTipStr != NULL)) // { // // if (!tipStr.isEmpty()) // // tipStr += "\n"; // // tipStr += annoTipStr; // } // // const QString comprTip = // _table->displayCompressCellToolTipText (row, col); // if (!comprTip.isEmpty()) // { // if (!tipStr.isEmpty()) // tipStr += "\n"; // // tipStr += comprTip; // } // // if (!tipStr.isEmpty()) // { // QRect cr = _table->cellGeometry (row, col); // cr.moveTopLeft (_table->contentsToViewport (cr.topLeft())); // tip (cr, tipStr); // } // } SlotQDlgTable::SlotQDlgTable (QWidget* parent, const char* name) ... // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // _cellTip = new TableToolTip (this, NULL); ... } SlotQDlgTable::~SlotQDlgTable() { ... // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // // if (_cellTip) // { // delete _cellTip; // _cellTip = NULL; // } ... } ---------------------------- Q3GUI/WorkspaceCanvas.cpp ---------------------------- void WorkspaceCanvas::initWidgets() { ... // [Tag] NeedsQt4Solution [Phil, 2-12-2008] ToolTips cannot be instantiated. // _toolTip = new CanvasTip(this); ... } void WorkspaceCanvas::addMenuObject(SimObj *proto, const char *description, int menuId) { // [Tag] NeedsQt4Solution [Phil, 2-8-2008] -- How do we do the size thing? // QIcon icons(RwQtIcons::pixmap(proto), QIcon::Large); QIcon icons (RwQtIcons::pixmap(proto)); ... } // [Tag] NeedsQt4Solution [Phil, 2-8-2008] // // WorkspaceCanvas::CanvasTip::CanvasTip(WorkspaceCanvas *parent) : // // [Tag] NeedsQt4Solution [Phil, 2-8-2008] // // QToolTip(parent), -- QToolTip cannot be instantiated in Qt4 // _canvasScene(parent) // { // } void WorkspaceCanvas::CanvasTip::maybeTip(const QPoint &point) { QRect rect; QString text; if (_canvasScene->itemTip(point, rect, text)) { // [Tag] NeedsQt4Solution [Phil, 2-8-2008] // tip(rect, text); -- What to do? } } ----------------------------- QtAccounting/SupplyEditor.cpp ----------------------------- void SupplyEditor::substituteFixedSourceLabels() { ... // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // 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); ... // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // 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 _sourceAcctCombo widget. // _acctPropGrid->addWidget (_fixedSourceAcctNameLabel, 1, 2); } ---------------------------- QtDmi/RadioBtnDlg.cpp ---------------------------- bool RadioBtnDlg::selection(QWidget* parent, const QString& caption, const QString& message, const QString& title, const QStringList& list, QString& selection) { ... int id(0); QStringList::const_iterator iter; for (iter = list.begin() ; iter != list.end() ; ++iter) { QRadioButton* button = new QRadioButton(dlg._buttonGroup); button->setText(*iter); // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // 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() { ... // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // Note: QObjectLists (which were QPtrLists) are not supported in Qt4. // // // Connect the button handler to all the palette buttons // QObjectList *buttonList = getAllButtons(); // for (QObjectListIterator it = *buttonList; // it.current() != 0; // ++it) // { // rwAssert (connect (it.current(), SIGNAL (clicked()), // this, SLOT (fnButtonHandler()))); // // // Cache the compatible types for each button // QPushButton *button (qobject_cast(it.current())); // cwSet *types = new cwSet(); // cwSet *subExprTypes = // new cwSet(); // getTypes(button, *types, *subExprTypes); // _buttonTypes[button] = types; // _buttonSubTypes[button] = subExprTypes; // } // delete buttonList; // delete the list, not the objects } void RplPaletteDlg::updatePaletteItems() { Selection *selection (RplFrame::selection()); // [Tag] NeedsQt4Solution [Phil, 2-4-2008] // Note: QObjectLists (which were QPtrLists) are not supported in Qt4. // // // Update the enabledness of all the palette items // QObjectList *buttonList = getAllButtons(); // for (QObjectListIterator it = *buttonList; // it.current() != 0; // ++it) // { // QPushButton *button (qobject_cast(it.current())); // button->setEnabled(isCompatible(selection, button)); // } // delete buttonList; // delete the list, not the objects } ---------------------------- QtSCT/SctQTable.hpp QtSCT/SctQTable.cpp ---------------------------- // *********************************** // *** SctQTable :: TableToolTip *** // *********************************** // [Tag] NeedsQt4Solution [Phil, 2-5-2008] // // class TableToolTip : public QToolTip // { // private: // SctQTable* _table; // // public: // TableToolTip (SctQTable* table, QToolTipGroup *group = 0); // // protected: // void maybeTip (const QPoint &p); // }; // // friend class TableToolTip; // ***************************************** // *** class SctQTable :: TableToolTip *** // ***************************************** // [Tag] NeedsQt4Solution [Phil, 2-5-2008] // // SctQTable::TableToolTip::TableToolTip (SctQTable* table, // QToolTipGroup *group) // : QToolTip (table->viewport(), group), // _table (table) // { // } // // void SctQTable::TableToolTip::maybeTip (const QPoint &p) // { // QPoint cp = _table->viewportToContents (p); // int row = _table->rowAt (cp.y()); // int col = _table->columnAt (cp.x()); // // AnnoGroup* dummyGrp (NULL); // const char* tipStr = _table->cellAnnoNote (row, col, dummyGrp); // // if ((tipStr != NULL) && (*tipStr != NULL)) // { // QRect cr = _table->cellGeometry (row, col); // cr.moveTopLeft (_table->contentsToViewport (cr.topLeft())); // tip (cr, tipStr); // } // } SctQTable::SctQTable (SctDialog* dlg, SctView* view, bool isSctTable, QWidget* parent, const char* name) : rwQTable (parent, name), ... // [Tag] NeedsQt4Solution [Phil, 2-5-2008] // _cellTip = new TableToolTip (this, NULL); ... } SctQTable::~SctQTable() { ... // [Tag] NeedsQt4Solution [Phil, 2-5-2008] // if (_cellTip) // { // delete _cellTip; // _cellTip = NULL; // } } --- (end) ---